Skip to content

Upgrading torchvision 0.14 to 0.15

Unknown0.14.1 → 0.15.2

Fetching 3 releases from GitHub…0 / 3
UnknownUpgrade verdict

DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.

  • DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
  • This page updates as the notes come in.
Still reading release notes

DepDelta is still reading the release notes in this range. This updates as they come in.

Python requirement changed in 0.15.0: >=3.7 → >=3.8.

Drops typing-extensions.

Installs 30 packages in all (was 16).

Also installs filelock, jinja2, markupsafe, mpmath, networkx, nvidia-cuda-cupti-cu11, nvidia-cufft-cu11, nvidia-curand-cu11, nvidia-cusolver-cu11, nvidia-cusparse-cu11, nvidia-nccl-cu11, nvidia-nvtx-cu11, sympy, triton.

Moves torch 1.13.1 → 2.0.1. Your build may pick other versions.

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • added: function disable_beta_transforms_warning()
  • added: export BoundingBox
  • added: export BoundingBoxFormat
  • added: export Image
  • added: export Mask
  • added: export Video
  • changed: constructor LFWPairs(root: str, split: str=…, image_set: str=…, transform: Optional[Callable]=…, target_transform: Optional[Callable]=…, download: bool=…) → constructor LFWPairs(root: str, split: str=…, image_set: str=…, transform: Optional[Callable]=…, target_transform: Optional[Callable]=…, download: bool=…) -> None
  • changed: constructor LFWPeople(root: str, split: str=…, image_set: str=…, transform: Optional[Callable]=…, target_transform: Optional[Callable]=…, download: bool=…) → constructor LFWPeople(root: str, split: str=…, image_set: str=…, transform: Optional[Callable]=…, target_transform: Optional[Callable]=…, download: bool=…) -> None
  • added: class MovingMNIST(VisionDataset)
  • added: constructor MovingMNIST(root: str, split: Optional[str]=…, split_ratio: int=…, download: bool=…, transform: Optional[Callable]=…) -> None
  • added: method MovingMNIST.download() -> None
  • removed: function gen_bar_updater() -> Callable[[int, int, int], None]
  • changed: constructor VideoReader(path: str, stream: str=…, num_threads: int=…, device: str=…) -> None → constructor VideoReader(src: str=…, stream: str=…, num_threads: int=…, path: Optional[str]=…) -> None
  • added: variable av
  • added: export Weights
  • added: export WeightsEnum
  • changed: method AnchorGenerator.generate_anchors(scales: List[int], aspect_ratios: List[float], dtype: torch.dtype=…, device: torch.device=…) → method AnchorGenerator.generate_anchors(scales: List[int], aspect_ratios: List[float], dtype: torch.dtype=…, device: torch.device=…) -> Tensor
  • changed: method AnchorGenerator.num_anchors_per_location() → method AnchorGenerator.num_anchors_per_location() -> List[int]
  • changed: method DefaultBoxGenerator.num_anchors_per_location() → method DefaultBoxGenerator.num_anchors_per_location() -> List[int]
  • changed: constructor EfficientNet(inverted_residual_setting: Sequence[Union[MBConvConfig, FusedMBConvConfig]], dropout: float, stochastic_depth_prob: float=…, num_classes: int=…, norm_layer: Optional[Callable[..., nn.Module]]=…, last_channel: Optional[int]=…, **kwargs: Any) -> None → constructor EfficientNet(inverted_residual_setting: Sequence[Union[MBConvConfig, FusedMBConvConfig]], dropout: float, stochastic_depth_prob: float=…, num_classes: int=…, norm_layer: Optional[Callable[..., nn.Module]]=…, last_channel: Optional[int]=…) -> None
  • added: class Swin3D_B_Weights(WeightsEnum)
  • added: class Swin3D_S_Weights(WeightsEnum)
  • added: class Swin3D_T_Weights(WeightsEnum)
  • added: class SwinTransformer3d(nn.Module)
  • added: constructor SwinTransformer3d(patch_size: List[int], embed_dim: int, depths: List[int], num_heads: List[int], window_size: List[int], mlp_ratio: float=…, dropout: float=…, attention_dropout: float=…, stochastic_depth_prob: float=…, num_classes: int=…, norm_layer: Optional[Callable[..., nn.Module]]=…, block: Optional[Callable[..., nn.Module]]=…, downsample_layer: Callable[..., nn.Module]=…, patch_…
  • added: field Swin3D_B_Weights.DEFAULT
  • added: field Swin3D_B_Weights.KINETICS400_IMAGENET22K_V1
  • added: field Swin3D_B_Weights.KINETICS400_V1
  • added: field Swin3D_S_Weights.DEFAULT
  • added: field Swin3D_S_Weights.KINETICS400_V1
  • added: field Swin3D_T_Weights.DEFAULT
  • added: field Swin3D_T_Weights.KINETICS400_V1
  • added: function swin3d_b(*, weights: Optional[Swin3D_B_Weights]=…, progress: bool=…, **kwargs: Any) -> SwinTransformer3d
  • added: function swin3d_s(*, weights: Optional[Swin3D_S_Weights]=…, progress: bool=…, **kwargs: Any) -> SwinTransformer3d
  • added: function swin3d_t(*, weights: Optional[Swin3D_T_Weights]=…, progress: bool=…, **kwargs: Any) -> SwinTransformer3d
  • added: method SwinTransformer3d.forward(x: Tensor) -> Tensor
  • changed: function resize(img: Tensor, size: List[int], interpolation: InterpolationMode=…, max_size: Optional[int]=…, antialias: Optional[bool]=…) -> Tensor → function resize(img: Tensor, size: List[int], interpolation: InterpolationMode=…, max_size: Optional[int]=…, antialias: Optional[Union[str, bool]]=…) -> Tensor
  • changed: function resized_crop(img: Tensor, top: int, left: int, height: int, width: int, size: List[int], interpolation: InterpolationMode=…, antialias: Optional[bool]=…) -> Tensor → function resized_crop(img: Tensor, top: int, left: int, height: int, width: int, size: List[int], interpolation: InterpolationMode=…, antialias: Optional[Union[str, bool]]=…) -> Tensor
  • changed: function ten_crop(img: Tensor, size: List[int], vertical_flip: bool=…) -> List[Tensor] → function ten_crop(img: Tensor, size: List[int], vertical_flip: bool=…) -> Tuple[Tensor, Tensor, Tensor, Tensor, Tensor, Tensor, Tensor, Tensor, Tensor, Tensor]
  • added: field InterpolationMode.NEAREST_EXACT
  • removed: function adjust_brightness(img: Image.Image, brightness_factor: float) -> Image.Image
  • removed: function adjust_contrast(img: Image.Image, contrast_factor: float) -> Image.Image
  • removed: function adjust_gamma(img: Image.Image, gamma: float, gain: float=…) -> Image.Image
  • removed: function adjust_hue(img: Image.Image, hue_factor: float) -> Image.Image
  • removed: function adjust_saturation(img: Image.Image, saturation_factor: float) -> Image.Image
  • removed: function adjust_sharpness(img: Image.Image, sharpness_factor: float) -> Image.Image
  • removed: function affine(img: Image.Image, matrix: List[float], interpolation: int=…, fill: Optional[Union[int, float, Sequence[int], Sequence[float]]]=…) -> Image.Image
  • removed: function autocontrast(img: Image.Image) -> Image.Image
  • removed: function crop(img: Image.Image, top: int, left: int, height: int, width: int) -> Image.Image
  • removed: function equalize(img: Image.Image) -> Image.Image
  • removed: function get_dimensions(img: Any) -> List[int]
  • removed: function get_image_num_channels(img: Any) -> int
  • removed: function get_image_size(img: Any) -> List[int]
  • removed: function hflip(img: Image.Image) -> Image.Image
  • removed: function invert(img: Image.Image) -> Image.Image
  • removed: function pad(img: Image.Image, padding: Union[int, List[int], Tuple[int, ...]], fill: Optional[Union[float, List[float], Tuple[float, ...]]]=…, padding_mode: Literal['constant', 'edge', 'reflect', 'symmetric']=…) -> Image.Image
  • removed: function perspective(img: Image.Image, perspective_coeffs: List[float], interpolation: int=…, fill: Optional[Union[int, float, Sequence[int], Sequence[float]]]=…) -> Image.Image
  • removed: function posterize(img: Image.Image, bits: int) -> Image.Image
  • removed: function resize(img: Image.Image, size: Union[List[int], int], interpolation: int=…) -> Image.Image
  • removed: function rotate(img: Image.Image, angle: float, interpolation: int=…, expand: bool=…, center: Optional[Tuple[int, int]]=…, fill: Optional[Union[int, float, Sequence[int], Sequence[float]]]=…) -> Image.Image
  • removed: function solarize(img: Image.Image, threshold: int) -> Image.Image
  • removed: function to_grayscale(img: Image.Image, num_output_channels: int) -> Image.Image
  • removed: function vflip(img: Image.Image) -> Image.Image
  • removed: variable accimage
  • removed: function adjust_brightness(img: Tensor, brightness_factor: float) -> Tensor
  • removed: function adjust_contrast(img: Tensor, contrast_factor: float) -> Tensor
  • removed: function adjust_gamma(img: Tensor, gamma: float, gain: float=…) -> Tensor
  • removed: function adjust_hue(img: Tensor, hue_factor: float) -> Tensor
  • removed: function adjust_saturation(img: Tensor, saturation_factor: float) -> Tensor
  • removed: function adjust_sharpness(img: Tensor, sharpness_factor: float) -> Tensor
  • removed: function affine(img: Tensor, matrix: List[float], interpolation: str=…, fill: Optional[Union[int, float, List[float]]]=…) -> Tensor
  • removed: function autocontrast(img: Tensor) -> Tensor
  • removed: function convert_image_dtype(image: torch.Tensor, dtype: torch.dtype=…) -> torch.Tensor
  • removed: function crop(img: Tensor, top: int, left: int, height: int, width: int) -> Tensor
  • removed: function elastic_transform(img: Tensor, displacement: Tensor, interpolation: str=…, fill: Optional[Union[int, float, List[float]]]=…) -> Tensor
  • removed: function equalize(img: Tensor) -> Tensor
  • removed: function erase(img: Tensor, i: int, j: int, h: int, w: int, v: Tensor, inplace: bool=…) -> Tensor
  • removed: function gaussian_blur(img: Tensor, kernel_size: List[int], sigma: List[float]) -> Tensor
  • removed: function get_dimensions(img: Tensor) -> List[int]
  • removed: function get_image_num_channels(img: Tensor) -> int
  • removed: function get_image_size(img: Tensor) -> List[int]
  • removed: function hflip(img: Tensor) -> Tensor
  • removed: function invert(img: Tensor) -> Tensor
  • removed: function normalize(tensor: Tensor, mean: List[float], std: List[float], inplace: bool=…) -> Tensor
  • removed: function pad(img: Tensor, padding: Union[int, List[int]], fill: Optional[Union[int, float]]=…, padding_mode: str=…) -> Tensor
  • removed: function perspective(img: Tensor, perspective_coeffs: List[float], interpolation: str=…, fill: Optional[Union[int, float, List[float]]]=…) -> Tensor
  • removed: function posterize(img: Tensor, bits: int) -> Tensor
  • removed: function resize(img: Tensor, size: List[int], interpolation: str=…, antialias: Optional[bool]=…) -> Tensor
  • removed: function rgb_to_grayscale(img: Tensor, num_output_channels: int=…) -> Tensor
  • removed: function rotate(img: Tensor, matrix: List[float], interpolation: str=…, expand: bool=…, fill: Optional[Union[int, float, List[float]]]=…) -> Tensor
  • removed: function solarize(img: Tensor, threshold: float) -> Tensor
  • removed: function vflip(img: Tensor) -> Tensor
  • changed: constructor ColorJitter(brightness=…, contrast=…, saturation=…, hue=…) → constructor ColorJitter(brightness: Union[float, Tuple[float, float]]=…, contrast: Union[float, Tuple[float, float]]=…, saturation: Union[float, Tuple[float, float]]=…, hue: Union[float, Tuple[float, float]]=…) -> None
  • changed: constructor RandomResizedCrop(size, scale=…, ratio=…, interpolation=…, antialias: Optional[bool]=…) → constructor RandomResizedCrop(size, scale=…, ratio=…, interpolation=…, antialias: Optional[Union[str, bool]]=…)
  • added: export AugMix
  • added: export AutoAugment
  • added: export AutoAugmentPolicy
  • added: export CenterCrop
  • added: export ClampBoundingBox
  • added: export ColorJitter
  • added: export Compose
  • added: export ConvertBoundingBoxFormat
  • added: export ConvertDtype
  • added: export ConvertImageDtype
  • added: export ElasticTransform
  • added: export FiveCrop
  • added: export GaussianBlur
  • added: export Grayscale
  • added: export Identity
  • added: export InterpolationMode
  • added: export Lambda
  • added: export LinearTransformation
  • added: export Normalize
  • added: export PILToTensor
  • added: export Pad
  • added: export RandAugment
  • added: export RandomAdjustSharpness
  • added: export RandomAffine
  • added: export RandomApply
  • added: export RandomAutocontrast
  • added: export RandomChoice
  • added: export RandomCrop
  • added: export RandomEqualize
  • added: export RandomErasing
  • added: export RandomGrayscale
  • added: export RandomHorizontalFlip
  • added: export RandomInvert
  • added: export RandomIoUCrop
  • added: export RandomOrder
  • added: export RandomPerspective
  • added: export RandomPhotometricDistort
  • added: export RandomPosterize
  • added: export RandomResize
  • added: export RandomResizedCrop
  • added: export RandomRotation
  • added: export RandomShortestSize
  • added: export RandomSolarize
  • added: export RandomVerticalFlip
  • added: export RandomZoomOut
  • added: export Resize
  • added: export SanitizeBoundingBox
  • added: export ScaleJitter
  • added: export TenCrop
  • added: export ToDtype
  • added: export ToImagePIL
  • added: export ToImageTensor
  • added: export ToPILImage
  • added: export ToTensor
  • added: export Transform
  • added: export TrivialAugmentWide
  • added: export UniformTemporalSubsample
  • added: export functional
  • added: export utils
  • added: export InterpolationMode
  • added: export adjust_brightness
  • added: export adjust_brightness_image_pil
  • added: export adjust_brightness_image_tensor
  • added: export adjust_brightness_video
  • added: export adjust_contrast
  • added: export adjust_contrast_image_pil
  • added: export adjust_contrast_image_tensor
  • added: export adjust_contrast_video
  • added: export adjust_gamma
  • added: export adjust_gamma_image_pil
  • added: export adjust_gamma_image_tensor
  • added: export adjust_gamma_video
  • added: export adjust_hue
  • added: export adjust_hue_image_pil
  • added: export adjust_hue_image_tensor
  • added: export adjust_hue_video
  • added: export adjust_saturation
  • added: export adjust_saturation_image_pil
  • added: export adjust_saturation_image_tensor
  • added: export adjust_saturation_video
  • added: export adjust_sharpness
  • added: export adjust_sharpness_image_pil
  • added: export adjust_sharpness_image_tensor
  • added: export adjust_sharpness_video
  • added: export affine
  • added: export affine_bounding_box
  • added: export affine_image_pil
  • added: export affine_image_tensor
  • added: export affine_mask
  • added: export affine_video
  • added: export autocontrast
  • added: export autocontrast_image_pil
  • added: export autocontrast_image_tensor
  • added: export autocontrast_video
  • added: export center_crop
  • added: export center_crop_bounding_box
  • added: export center_crop_image_pil
  • added: export center_crop_image_tensor
  • added: export center_crop_mask
  • added: export center_crop_video
  • added: export clamp_bounding_box
  • added: export convert_dtype
  • added: export convert_dtype_image_tensor
  • added: export convert_dtype_video
  • added: export convert_format_bounding_box
  • added: export convert_image_dtype
  • added: export crop
  • added: export crop_bounding_box
  • added: export crop_image_pil
  • added: export crop_image_tensor
  • added: export crop_mask
  • added: export crop_video
  • added: export elastic
  • added: export elastic_bounding_box
  • added: export elastic_image_pil
  • added: export elastic_image_tensor
  • added: export elastic_mask
  • added: export elastic_transform
  • added: export elastic_video
  • added: export equalize
  • added: export equalize_image_pil
  • added: export equalize_image_tensor
  • added: export equalize_video
  • added: export erase
  • added: export erase_image_pil
  • added: export erase_image_tensor
  • added: export erase_video
  • added: export five_crop
  • added: export five_crop_image_pil
  • added: export five_crop_image_tensor
  • added: export five_crop_video
  • added: export gaussian_blur
  • added: export gaussian_blur_image_pil
  • added: export gaussian_blur_image_tensor
  • added: export gaussian_blur_video
  • added: export get_dimensions
  • added: export get_dimensions_image_pil
  • added: export get_dimensions_image_tensor
  • added: export get_image_num_channels
  • added: export get_image_size
  • added: export get_num_channels
  • added: export get_num_channels_image_pil
  • added: export get_num_channels_image_tensor
  • added: export get_num_channels_video
  • added: export get_num_frames
  • added: export get_num_frames_video
  • added: export get_spatial_size
  • added: export get_spatial_size_bounding_box
  • added: export get_spatial_size_image_pil
  • added: export get_spatial_size_image_tensor
  • added: export get_spatial_size_mask
  • added: export get_spatial_size_video
  • added: export hflip
  • added: export horizontal_flip
  • added: export horizontal_flip_bounding_box
  • added: export horizontal_flip_image_pil
  • added: export horizontal_flip_image_tensor
  • added: export horizontal_flip_mask
  • added: export horizontal_flip_video
  • added: export invert
  • added: export invert_image_pil
  • added: export invert_image_tensor
  • added: export invert_video
  • added: export is_simple_tensor
  • added: export normalize
  • added: export normalize_image_tensor
  • added: export normalize_video
  • added: export pad
  • added: export pad_bounding_box
  • added: export pad_image_pil
  • added: export pad_image_tensor
  • added: export pad_mask
  • added: export pad_video
  • added: export perspective
  • added: export perspective_bounding_box
  • added: export perspective_image_pil
  • added: export perspective_image_tensor
  • added: export perspective_mask
  • added: export perspective_video
  • added: export pil_to_tensor
  • added: export posterize
  • added: export posterize_image_pil
  • added: export posterize_image_tensor
  • added: export posterize_video
  • added: export resize
  • added: export resize_bounding_box
  • added: export resize_image_pil
  • added: export resize_image_tensor
  • added: export resize_mask
  • added: export resize_video
  • added: export resized_crop
  • added: export resized_crop_bounding_box
  • added: export resized_crop_image_pil
  • added: export resized_crop_image_tensor
  • added: export resized_crop_mask
  • added: export resized_crop_video
  • added: export rgb_to_grayscale
  • added: export rgb_to_grayscale_image_pil
  • added: export rgb_to_grayscale_image_tensor
  • added: export rotate
  • added: export rotate_bounding_box
  • added: export rotate_image_pil
  • added: export rotate_image_tensor
  • added: export rotate_mask
  • added: export rotate_video
  • added: export solarize
  • added: export solarize_image_pil
  • added: export solarize_image_tensor
  • added: export solarize_video
  • added: export ten_crop
  • added: export ten_crop_image_pil
  • added: export ten_crop_image_tensor
  • added: export ten_crop_video
  • added: export to_grayscale
  • added: export to_image_pil
  • added: export to_image_tensor
  • added: export to_pil_image
  • added: export to_tensor
  • added: export uniform_temporal_subsample
  • added: export uniform_temporal_subsample_video
  • added: export vertical_flip
  • added: export vertical_flip_bounding_box
  • added: export vertical_flip_image_pil
  • added: export vertical_flip_image_tensor
  • added: export vertical_flip_mask
  • added: export vertical_flip_video
  • added: export vflip
  • added: function check_type(obj: Any, types_or_checks: Tuple[Union[Type, Callable[[Any], bool]], ...]) -> bool
  • added: function has_all(flat_inputs: List[Any], *types_or_checks: Union[Type, Callable[[Any], bool]]) -> bool
  • added: function has_any(flat_inputs: List[Any], *types_or_checks: Union[Type, Callable[[Any], bool]]) -> bool
  • added: function query_bounding_box(flat_inputs: List[Any]) -> datapoints.BoundingBox
  • added: function query_chw(flat_inputs: List[Any]) -> Tuple[int, int, int]
  • added: function query_spatial_size(flat_inputs: List[Any]) -> Tuple[int, int]