Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- lib/python3.12/site-packages/torchvision/__init__.py +105 -0
- lib/python3.12/site-packages/torchvision/_internally_replaced_utils.py +51 -0
- lib/python3.12/site-packages/torchvision/_meta_registrations.py +225 -0
- lib/python3.12/site-packages/torchvision/_utils.py +32 -0
- lib/python3.12/site-packages/torchvision/datasets/__init__.py +147 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/__init__.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/_optical_flow.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/_stereo_matching.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/caltech.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/celeba.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/cifar.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/cityscapes.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/clevr.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/coco.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/country211.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/dtd.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/eurosat.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/fakedata.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/fer2013.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/fgvc_aircraft.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/flickr.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/flowers102.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/folder.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/food101.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/gtsrb.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/hmdb51.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/imagenet.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/imagenette.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/inaturalist.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/kinetics.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/kitti.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/lfw.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/lsun.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/mnist.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/moving_mnist.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/omniglot.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/oxford_iiit_pet.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/pcam.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/phototour.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/places365.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/rendered_sst2.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/sbd.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/sbu.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/semeion.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/stanford_cars.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/stl10.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/sun397.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/svhn.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/ucf101.cpython-312.pyc +0 -0
- lib/python3.12/site-packages/torchvision/datasets/__pycache__/usps.cpython-312.pyc +0 -0
lib/python3.12/site-packages/torchvision/__init__.py
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import warnings
|
| 3 |
+
from modulefinder import Module
|
| 4 |
+
|
| 5 |
+
import torch
|
| 6 |
+
|
| 7 |
+
# Don't re-order these, we need to load the _C extension (done when importing
|
| 8 |
+
# .extensions) before entering _meta_registrations.
|
| 9 |
+
from .extension import _HAS_OPS # usort:skip
|
| 10 |
+
from torchvision import _meta_registrations, datasets, io, models, ops, transforms, utils # usort:skip
|
| 11 |
+
|
| 12 |
+
try:
|
| 13 |
+
from .version import __version__ # noqa: F401
|
| 14 |
+
except ImportError:
|
| 15 |
+
pass
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
# Check if torchvision is being imported within the root folder
|
| 19 |
+
if not _HAS_OPS and os.path.dirname(os.path.realpath(__file__)) == os.path.join(
|
| 20 |
+
os.path.realpath(os.getcwd()), "torchvision"
|
| 21 |
+
):
|
| 22 |
+
message = (
|
| 23 |
+
"You are importing torchvision within its own root folder ({}). "
|
| 24 |
+
"This is not expected to work and may give errors. Please exit the "
|
| 25 |
+
"torchvision project source and relaunch your python interpreter."
|
| 26 |
+
)
|
| 27 |
+
warnings.warn(message.format(os.getcwd()))
|
| 28 |
+
|
| 29 |
+
_image_backend = "PIL"
|
| 30 |
+
|
| 31 |
+
_video_backend = "pyav"
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
def set_image_backend(backend):
|
| 35 |
+
"""
|
| 36 |
+
Specifies the package used to load images.
|
| 37 |
+
|
| 38 |
+
Args:
|
| 39 |
+
backend (string): Name of the image backend. one of {'PIL', 'accimage'}.
|
| 40 |
+
The :mod:`accimage` package uses the Intel IPP library. It is
|
| 41 |
+
generally faster than PIL, but does not support as many operations.
|
| 42 |
+
"""
|
| 43 |
+
global _image_backend
|
| 44 |
+
if backend not in ["PIL", "accimage"]:
|
| 45 |
+
raise ValueError(f"Invalid backend '{backend}'. Options are 'PIL' and 'accimage'")
|
| 46 |
+
_image_backend = backend
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
def get_image_backend():
|
| 50 |
+
"""
|
| 51 |
+
Gets the name of the package used to load images
|
| 52 |
+
"""
|
| 53 |
+
return _image_backend
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
def set_video_backend(backend):
|
| 57 |
+
"""
|
| 58 |
+
Specifies the package used to decode videos.
|
| 59 |
+
|
| 60 |
+
Args:
|
| 61 |
+
backend (string): Name of the video backend. one of {'pyav', 'video_reader'}.
|
| 62 |
+
The :mod:`pyav` package uses the 3rd party PyAv library. It is a Pythonic
|
| 63 |
+
binding for the FFmpeg libraries.
|
| 64 |
+
The :mod:`video_reader` package includes a native C++ implementation on
|
| 65 |
+
top of FFMPEG libraries, and a python API of TorchScript custom operator.
|
| 66 |
+
It generally decodes faster than :mod:`pyav`, but is perhaps less robust.
|
| 67 |
+
|
| 68 |
+
.. note::
|
| 69 |
+
Building with FFMPEG is disabled by default in the latest `main`. If you want to use the 'video_reader'
|
| 70 |
+
backend, please compile torchvision from source.
|
| 71 |
+
"""
|
| 72 |
+
global _video_backend
|
| 73 |
+
if backend not in ["pyav", "video_reader", "cuda"]:
|
| 74 |
+
raise ValueError("Invalid video backend '%s'. Options are 'pyav', 'video_reader' and 'cuda'" % backend)
|
| 75 |
+
if backend == "video_reader" and not io._HAS_CPU_VIDEO_DECODER:
|
| 76 |
+
# TODO: better messages
|
| 77 |
+
message = "video_reader video backend is not available. Please compile torchvision from source and try again"
|
| 78 |
+
raise RuntimeError(message)
|
| 79 |
+
elif backend == "cuda" and not io._HAS_GPU_VIDEO_DECODER:
|
| 80 |
+
# TODO: better messages
|
| 81 |
+
message = "cuda video backend is not available."
|
| 82 |
+
raise RuntimeError(message)
|
| 83 |
+
else:
|
| 84 |
+
_video_backend = backend
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
def get_video_backend():
|
| 88 |
+
"""
|
| 89 |
+
Returns the currently active video backend used to decode videos.
|
| 90 |
+
|
| 91 |
+
Returns:
|
| 92 |
+
str: Name of the video backend. one of {'pyav', 'video_reader'}.
|
| 93 |
+
"""
|
| 94 |
+
|
| 95 |
+
return _video_backend
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
def _is_tracing():
|
| 99 |
+
return torch._C._get_tracing_state()
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
def disable_beta_transforms_warning():
|
| 103 |
+
# Noop, only exists to avoid breaking existing code.
|
| 104 |
+
# See https://github.com/pytorch/vision/issues/7896
|
| 105 |
+
pass
|
lib/python3.12/site-packages/torchvision/_internally_replaced_utils.py
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import importlib.machinery
|
| 2 |
+
import os
|
| 3 |
+
|
| 4 |
+
from torch.hub import _get_torch_home
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
_HOME = os.path.join(_get_torch_home(), "datasets", "vision")
|
| 8 |
+
_USE_SHARDED_DATASETS = False
|
| 9 |
+
IN_FBCODE = False
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
def _download_file_from_remote_location(fpath: str, url: str) -> None:
|
| 13 |
+
pass
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def _is_remote_location_available() -> bool:
|
| 17 |
+
return False
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
try:
|
| 21 |
+
from torch.hub import load_state_dict_from_url # noqa: 401
|
| 22 |
+
except ImportError:
|
| 23 |
+
from torch.utils.model_zoo import load_url as load_state_dict_from_url # noqa: 401
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
def _get_extension_path(lib_name):
|
| 27 |
+
|
| 28 |
+
lib_dir = os.path.dirname(__file__)
|
| 29 |
+
if os.name == "nt":
|
| 30 |
+
# Register the main torchvision library location on the default DLL path
|
| 31 |
+
import ctypes
|
| 32 |
+
|
| 33 |
+
kernel32 = ctypes.WinDLL("kernel32.dll", use_last_error=True)
|
| 34 |
+
with_load_library_flags = hasattr(kernel32, "AddDllDirectory")
|
| 35 |
+
prev_error_mode = kernel32.SetErrorMode(0x0001)
|
| 36 |
+
|
| 37 |
+
if with_load_library_flags:
|
| 38 |
+
kernel32.AddDllDirectory.restype = ctypes.c_void_p
|
| 39 |
+
|
| 40 |
+
os.add_dll_directory(lib_dir)
|
| 41 |
+
|
| 42 |
+
kernel32.SetErrorMode(prev_error_mode)
|
| 43 |
+
|
| 44 |
+
loader_details = (importlib.machinery.ExtensionFileLoader, importlib.machinery.EXTENSION_SUFFIXES)
|
| 45 |
+
|
| 46 |
+
extfinder = importlib.machinery.FileFinder(lib_dir, loader_details)
|
| 47 |
+
ext_specs = extfinder.find_spec(lib_name)
|
| 48 |
+
if ext_specs is None:
|
| 49 |
+
raise ImportError
|
| 50 |
+
|
| 51 |
+
return ext_specs.origin
|
lib/python3.12/site-packages/torchvision/_meta_registrations.py
ADDED
|
@@ -0,0 +1,225 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import functools
|
| 2 |
+
|
| 3 |
+
import torch
|
| 4 |
+
import torch._custom_ops
|
| 5 |
+
import torch.library
|
| 6 |
+
|
| 7 |
+
# Ensure that torch.ops.torchvision is visible
|
| 8 |
+
import torchvision.extension # noqa: F401
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
@functools.lru_cache(None)
|
| 12 |
+
def get_meta_lib():
|
| 13 |
+
return torch.library.Library("torchvision", "IMPL", "Meta")
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def register_meta(op_name, overload_name="default"):
|
| 17 |
+
def wrapper(fn):
|
| 18 |
+
if torchvision.extension._has_ops():
|
| 19 |
+
get_meta_lib().impl(getattr(getattr(torch.ops.torchvision, op_name), overload_name), fn)
|
| 20 |
+
return fn
|
| 21 |
+
|
| 22 |
+
return wrapper
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
@register_meta("roi_align")
|
| 26 |
+
def meta_roi_align(input, rois, spatial_scale, pooled_height, pooled_width, sampling_ratio, aligned):
|
| 27 |
+
torch._check(rois.size(1) == 5, lambda: "rois must have shape as Tensor[K, 5]")
|
| 28 |
+
torch._check(
|
| 29 |
+
input.dtype == rois.dtype,
|
| 30 |
+
lambda: (
|
| 31 |
+
"Expected tensor for input to have the same type as tensor for rois; "
|
| 32 |
+
f"but type {input.dtype} does not equal {rois.dtype}"
|
| 33 |
+
),
|
| 34 |
+
)
|
| 35 |
+
num_rois = rois.size(0)
|
| 36 |
+
channels = input.size(1)
|
| 37 |
+
return input.new_empty((num_rois, channels, pooled_height, pooled_width))
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
@register_meta("_roi_align_backward")
|
| 41 |
+
def meta_roi_align_backward(
|
| 42 |
+
grad, rois, spatial_scale, pooled_height, pooled_width, batch_size, channels, height, width, sampling_ratio, aligned
|
| 43 |
+
):
|
| 44 |
+
torch._check(
|
| 45 |
+
grad.dtype == rois.dtype,
|
| 46 |
+
lambda: (
|
| 47 |
+
"Expected tensor for grad to have the same type as tensor for rois; "
|
| 48 |
+
f"but type {grad.dtype} does not equal {rois.dtype}"
|
| 49 |
+
),
|
| 50 |
+
)
|
| 51 |
+
return grad.new_empty((batch_size, channels, height, width))
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
@register_meta("ps_roi_align")
|
| 55 |
+
def meta_ps_roi_align(input, rois, spatial_scale, pooled_height, pooled_width, sampling_ratio):
|
| 56 |
+
torch._check(rois.size(1) == 5, lambda: "rois must have shape as Tensor[K, 5]")
|
| 57 |
+
torch._check(
|
| 58 |
+
input.dtype == rois.dtype,
|
| 59 |
+
lambda: (
|
| 60 |
+
"Expected tensor for input to have the same type as tensor for rois; "
|
| 61 |
+
f"but type {input.dtype} does not equal {rois.dtype}"
|
| 62 |
+
),
|
| 63 |
+
)
|
| 64 |
+
channels = input.size(1)
|
| 65 |
+
torch._check(
|
| 66 |
+
channels % (pooled_height * pooled_width) == 0,
|
| 67 |
+
"input channels must be a multiple of pooling height * pooling width",
|
| 68 |
+
)
|
| 69 |
+
|
| 70 |
+
num_rois = rois.size(0)
|
| 71 |
+
out_size = (num_rois, channels // (pooled_height * pooled_width), pooled_height, pooled_width)
|
| 72 |
+
return input.new_empty(out_size), torch.empty(out_size, dtype=torch.int32, device="meta")
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
@register_meta("_ps_roi_align_backward")
|
| 76 |
+
def meta_ps_roi_align_backward(
|
| 77 |
+
grad,
|
| 78 |
+
rois,
|
| 79 |
+
channel_mapping,
|
| 80 |
+
spatial_scale,
|
| 81 |
+
pooled_height,
|
| 82 |
+
pooled_width,
|
| 83 |
+
sampling_ratio,
|
| 84 |
+
batch_size,
|
| 85 |
+
channels,
|
| 86 |
+
height,
|
| 87 |
+
width,
|
| 88 |
+
):
|
| 89 |
+
torch._check(
|
| 90 |
+
grad.dtype == rois.dtype,
|
| 91 |
+
lambda: (
|
| 92 |
+
"Expected tensor for grad to have the same type as tensor for rois; "
|
| 93 |
+
f"but type {grad.dtype} does not equal {rois.dtype}"
|
| 94 |
+
),
|
| 95 |
+
)
|
| 96 |
+
return grad.new_empty((batch_size, channels, height, width))
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
@register_meta("roi_pool")
|
| 100 |
+
def meta_roi_pool(input, rois, spatial_scale, pooled_height, pooled_width):
|
| 101 |
+
torch._check(rois.size(1) == 5, lambda: "rois must have shape as Tensor[K, 5]")
|
| 102 |
+
torch._check(
|
| 103 |
+
input.dtype == rois.dtype,
|
| 104 |
+
lambda: (
|
| 105 |
+
"Expected tensor for input to have the same type as tensor for rois; "
|
| 106 |
+
f"but type {input.dtype} does not equal {rois.dtype}"
|
| 107 |
+
),
|
| 108 |
+
)
|
| 109 |
+
num_rois = rois.size(0)
|
| 110 |
+
channels = input.size(1)
|
| 111 |
+
out_size = (num_rois, channels, pooled_height, pooled_width)
|
| 112 |
+
return input.new_empty(out_size), torch.empty(out_size, device="meta", dtype=torch.int32)
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
@register_meta("_roi_pool_backward")
|
| 116 |
+
def meta_roi_pool_backward(
|
| 117 |
+
grad, rois, argmax, spatial_scale, pooled_height, pooled_width, batch_size, channels, height, width
|
| 118 |
+
):
|
| 119 |
+
torch._check(
|
| 120 |
+
grad.dtype == rois.dtype,
|
| 121 |
+
lambda: (
|
| 122 |
+
"Expected tensor for grad to have the same type as tensor for rois; "
|
| 123 |
+
f"but type {grad.dtype} does not equal {rois.dtype}"
|
| 124 |
+
),
|
| 125 |
+
)
|
| 126 |
+
return grad.new_empty((batch_size, channels, height, width))
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
@register_meta("ps_roi_pool")
|
| 130 |
+
def meta_ps_roi_pool(input, rois, spatial_scale, pooled_height, pooled_width):
|
| 131 |
+
torch._check(rois.size(1) == 5, lambda: "rois must have shape as Tensor[K, 5]")
|
| 132 |
+
torch._check(
|
| 133 |
+
input.dtype == rois.dtype,
|
| 134 |
+
lambda: (
|
| 135 |
+
"Expected tensor for input to have the same type as tensor for rois; "
|
| 136 |
+
f"but type {input.dtype} does not equal {rois.dtype}"
|
| 137 |
+
),
|
| 138 |
+
)
|
| 139 |
+
channels = input.size(1)
|
| 140 |
+
torch._check(
|
| 141 |
+
channels % (pooled_height * pooled_width) == 0,
|
| 142 |
+
"input channels must be a multiple of pooling height * pooling width",
|
| 143 |
+
)
|
| 144 |
+
num_rois = rois.size(0)
|
| 145 |
+
out_size = (num_rois, channels // (pooled_height * pooled_width), pooled_height, pooled_width)
|
| 146 |
+
return input.new_empty(out_size), torch.empty(out_size, device="meta", dtype=torch.int32)
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
@register_meta("_ps_roi_pool_backward")
|
| 150 |
+
def meta_ps_roi_pool_backward(
|
| 151 |
+
grad, rois, channel_mapping, spatial_scale, pooled_height, pooled_width, batch_size, channels, height, width
|
| 152 |
+
):
|
| 153 |
+
torch._check(
|
| 154 |
+
grad.dtype == rois.dtype,
|
| 155 |
+
lambda: (
|
| 156 |
+
"Expected tensor for grad to have the same type as tensor for rois; "
|
| 157 |
+
f"but type {grad.dtype} does not equal {rois.dtype}"
|
| 158 |
+
),
|
| 159 |
+
)
|
| 160 |
+
return grad.new_empty((batch_size, channels, height, width))
|
| 161 |
+
|
| 162 |
+
|
| 163 |
+
@torch.library.register_fake("torchvision::nms")
|
| 164 |
+
def meta_nms(dets, scores, iou_threshold):
|
| 165 |
+
torch._check(dets.dim() == 2, lambda: f"boxes should be a 2d tensor, got {dets.dim()}D")
|
| 166 |
+
torch._check(dets.size(1) == 4, lambda: f"boxes should have 4 elements in dimension 1, got {dets.size(1)}")
|
| 167 |
+
torch._check(scores.dim() == 1, lambda: f"scores should be a 1d tensor, got {scores.dim()}")
|
| 168 |
+
torch._check(
|
| 169 |
+
dets.size(0) == scores.size(0),
|
| 170 |
+
lambda: f"boxes and scores should have same number of elements in dimension 0, got {dets.size(0)} and {scores.size(0)}",
|
| 171 |
+
)
|
| 172 |
+
ctx = torch._custom_ops.get_ctx()
|
| 173 |
+
num_to_keep = ctx.create_unbacked_symint()
|
| 174 |
+
return dets.new_empty(num_to_keep, dtype=torch.long)
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
@register_meta("deform_conv2d")
|
| 178 |
+
def meta_deform_conv2d(
|
| 179 |
+
input,
|
| 180 |
+
weight,
|
| 181 |
+
offset,
|
| 182 |
+
mask,
|
| 183 |
+
bias,
|
| 184 |
+
stride_h,
|
| 185 |
+
stride_w,
|
| 186 |
+
pad_h,
|
| 187 |
+
pad_w,
|
| 188 |
+
dil_h,
|
| 189 |
+
dil_w,
|
| 190 |
+
n_weight_grps,
|
| 191 |
+
n_offset_grps,
|
| 192 |
+
use_mask,
|
| 193 |
+
):
|
| 194 |
+
|
| 195 |
+
out_height, out_width = offset.shape[-2:]
|
| 196 |
+
out_channels = weight.shape[0]
|
| 197 |
+
batch_size = input.shape[0]
|
| 198 |
+
return input.new_empty((batch_size, out_channels, out_height, out_width))
|
| 199 |
+
|
| 200 |
+
|
| 201 |
+
@register_meta("_deform_conv2d_backward")
|
| 202 |
+
def meta_deform_conv2d_backward(
|
| 203 |
+
grad,
|
| 204 |
+
input,
|
| 205 |
+
weight,
|
| 206 |
+
offset,
|
| 207 |
+
mask,
|
| 208 |
+
bias,
|
| 209 |
+
stride_h,
|
| 210 |
+
stride_w,
|
| 211 |
+
pad_h,
|
| 212 |
+
pad_w,
|
| 213 |
+
dilation_h,
|
| 214 |
+
dilation_w,
|
| 215 |
+
groups,
|
| 216 |
+
offset_groups,
|
| 217 |
+
use_mask,
|
| 218 |
+
):
|
| 219 |
+
|
| 220 |
+
grad_input = input.new_empty(input.shape)
|
| 221 |
+
grad_weight = weight.new_empty(weight.shape)
|
| 222 |
+
grad_offset = offset.new_empty(offset.shape)
|
| 223 |
+
grad_mask = mask.new_empty(mask.shape)
|
| 224 |
+
grad_bias = bias.new_empty(bias.shape)
|
| 225 |
+
return grad_input, grad_weight, grad_offset, grad_mask, grad_bias
|
lib/python3.12/site-packages/torchvision/_utils.py
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import enum
|
| 2 |
+
from typing import Sequence, Type, TypeVar
|
| 3 |
+
|
| 4 |
+
T = TypeVar("T", bound=enum.Enum)
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
class StrEnumMeta(enum.EnumMeta):
|
| 8 |
+
auto = enum.auto
|
| 9 |
+
|
| 10 |
+
def from_str(self: Type[T], member: str) -> T: # type: ignore[misc]
|
| 11 |
+
try:
|
| 12 |
+
return self[member]
|
| 13 |
+
except KeyError:
|
| 14 |
+
# TODO: use `add_suggestion` from torchvision.prototype.utils._internal to improve the error message as
|
| 15 |
+
# soon as it is migrated.
|
| 16 |
+
raise ValueError(f"Unknown value '{member}' for {self.__name__}.") from None
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
class StrEnum(enum.Enum, metaclass=StrEnumMeta):
|
| 20 |
+
pass
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
def sequence_to_str(seq: Sequence, separate_last: str = "") -> str:
|
| 24 |
+
if not seq:
|
| 25 |
+
return ""
|
| 26 |
+
if len(seq) == 1:
|
| 27 |
+
return f"'{seq[0]}'"
|
| 28 |
+
|
| 29 |
+
head = "'" + "', '".join([str(item) for item in seq[:-1]]) + "'"
|
| 30 |
+
tail = f"{'' if separate_last and len(seq) == 2 else ','} {separate_last}'{seq[-1]}'"
|
| 31 |
+
|
| 32 |
+
return head + tail
|
lib/python3.12/site-packages/torchvision/datasets/__init__.py
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from ._optical_flow import FlyingChairs, FlyingThings3D, HD1K, KittiFlow, Sintel
|
| 2 |
+
from ._stereo_matching import (
|
| 3 |
+
CarlaStereo,
|
| 4 |
+
CREStereo,
|
| 5 |
+
ETH3DStereo,
|
| 6 |
+
FallingThingsStereo,
|
| 7 |
+
InStereo2k,
|
| 8 |
+
Kitti2012Stereo,
|
| 9 |
+
Kitti2015Stereo,
|
| 10 |
+
Middlebury2014Stereo,
|
| 11 |
+
SceneFlowStereo,
|
| 12 |
+
SintelStereo,
|
| 13 |
+
)
|
| 14 |
+
from .caltech import Caltech101, Caltech256
|
| 15 |
+
from .celeba import CelebA
|
| 16 |
+
from .cifar import CIFAR10, CIFAR100
|
| 17 |
+
from .cityscapes import Cityscapes
|
| 18 |
+
from .clevr import CLEVRClassification
|
| 19 |
+
from .coco import CocoCaptions, CocoDetection
|
| 20 |
+
from .country211 import Country211
|
| 21 |
+
from .dtd import DTD
|
| 22 |
+
from .eurosat import EuroSAT
|
| 23 |
+
from .fakedata import FakeData
|
| 24 |
+
from .fer2013 import FER2013
|
| 25 |
+
from .fgvc_aircraft import FGVCAircraft
|
| 26 |
+
from .flickr import Flickr30k, Flickr8k
|
| 27 |
+
from .flowers102 import Flowers102
|
| 28 |
+
from .folder import DatasetFolder, ImageFolder
|
| 29 |
+
from .food101 import Food101
|
| 30 |
+
from .gtsrb import GTSRB
|
| 31 |
+
from .hmdb51 import HMDB51
|
| 32 |
+
from .imagenet import ImageNet
|
| 33 |
+
from .imagenette import Imagenette
|
| 34 |
+
from .inaturalist import INaturalist
|
| 35 |
+
from .kinetics import Kinetics
|
| 36 |
+
from .kitti import Kitti
|
| 37 |
+
from .lfw import LFWPairs, LFWPeople
|
| 38 |
+
from .lsun import LSUN, LSUNClass
|
| 39 |
+
from .mnist import EMNIST, FashionMNIST, KMNIST, MNIST, QMNIST
|
| 40 |
+
from .moving_mnist import MovingMNIST
|
| 41 |
+
from .omniglot import Omniglot
|
| 42 |
+
from .oxford_iiit_pet import OxfordIIITPet
|
| 43 |
+
from .pcam import PCAM
|
| 44 |
+
from .phototour import PhotoTour
|
| 45 |
+
from .places365 import Places365
|
| 46 |
+
from .rendered_sst2 import RenderedSST2
|
| 47 |
+
from .sbd import SBDataset
|
| 48 |
+
from .sbu import SBU
|
| 49 |
+
from .semeion import SEMEION
|
| 50 |
+
from .stanford_cars import StanfordCars
|
| 51 |
+
from .stl10 import STL10
|
| 52 |
+
from .sun397 import SUN397
|
| 53 |
+
from .svhn import SVHN
|
| 54 |
+
from .ucf101 import UCF101
|
| 55 |
+
from .usps import USPS
|
| 56 |
+
from .vision import VisionDataset
|
| 57 |
+
from .voc import VOCDetection, VOCSegmentation
|
| 58 |
+
from .widerface import WIDERFace
|
| 59 |
+
|
| 60 |
+
__all__ = (
|
| 61 |
+
"LSUN",
|
| 62 |
+
"LSUNClass",
|
| 63 |
+
"ImageFolder",
|
| 64 |
+
"DatasetFolder",
|
| 65 |
+
"FakeData",
|
| 66 |
+
"CocoCaptions",
|
| 67 |
+
"CocoDetection",
|
| 68 |
+
"CIFAR10",
|
| 69 |
+
"CIFAR100",
|
| 70 |
+
"EMNIST",
|
| 71 |
+
"FashionMNIST",
|
| 72 |
+
"QMNIST",
|
| 73 |
+
"MNIST",
|
| 74 |
+
"KMNIST",
|
| 75 |
+
"MovingMNIST",
|
| 76 |
+
"StanfordCars",
|
| 77 |
+
"STL10",
|
| 78 |
+
"SUN397",
|
| 79 |
+
"SVHN",
|
| 80 |
+
"PhotoTour",
|
| 81 |
+
"SEMEION",
|
| 82 |
+
"Omniglot",
|
| 83 |
+
"SBU",
|
| 84 |
+
"Flickr8k",
|
| 85 |
+
"Flickr30k",
|
| 86 |
+
"Flowers102",
|
| 87 |
+
"VOCSegmentation",
|
| 88 |
+
"VOCDetection",
|
| 89 |
+
"Cityscapes",
|
| 90 |
+
"ImageNet",
|
| 91 |
+
"Caltech101",
|
| 92 |
+
"Caltech256",
|
| 93 |
+
"CelebA",
|
| 94 |
+
"WIDERFace",
|
| 95 |
+
"SBDataset",
|
| 96 |
+
"VisionDataset",
|
| 97 |
+
"USPS",
|
| 98 |
+
"Kinetics",
|
| 99 |
+
"HMDB51",
|
| 100 |
+
"UCF101",
|
| 101 |
+
"Places365",
|
| 102 |
+
"Kitti",
|
| 103 |
+
"INaturalist",
|
| 104 |
+
"LFWPeople",
|
| 105 |
+
"LFWPairs",
|
| 106 |
+
"KittiFlow",
|
| 107 |
+
"Sintel",
|
| 108 |
+
"FlyingChairs",
|
| 109 |
+
"FlyingThings3D",
|
| 110 |
+
"HD1K",
|
| 111 |
+
"Food101",
|
| 112 |
+
"DTD",
|
| 113 |
+
"FER2013",
|
| 114 |
+
"GTSRB",
|
| 115 |
+
"CLEVRClassification",
|
| 116 |
+
"OxfordIIITPet",
|
| 117 |
+
"PCAM",
|
| 118 |
+
"Country211",
|
| 119 |
+
"FGVCAircraft",
|
| 120 |
+
"EuroSAT",
|
| 121 |
+
"RenderedSST2",
|
| 122 |
+
"Kitti2012Stereo",
|
| 123 |
+
"Kitti2015Stereo",
|
| 124 |
+
"CarlaStereo",
|
| 125 |
+
"Middlebury2014Stereo",
|
| 126 |
+
"CREStereo",
|
| 127 |
+
"FallingThingsStereo",
|
| 128 |
+
"SceneFlowStereo",
|
| 129 |
+
"SintelStereo",
|
| 130 |
+
"InStereo2k",
|
| 131 |
+
"ETH3DStereo",
|
| 132 |
+
"wrap_dataset_for_transforms_v2",
|
| 133 |
+
"Imagenette",
|
| 134 |
+
)
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
# We override current module's attributes to handle the import:
|
| 138 |
+
# from torchvision.datasets import wrap_dataset_for_transforms_v2
|
| 139 |
+
# without a cyclic error.
|
| 140 |
+
# Ref: https://peps.python.org/pep-0562/
|
| 141 |
+
def __getattr__(name):
|
| 142 |
+
if name in ("wrap_dataset_for_transforms_v2",):
|
| 143 |
+
from torchvision.tv_tensors._dataset_wrapper import wrap_dataset_for_transforms_v2
|
| 144 |
+
|
| 145 |
+
return wrap_dataset_for_transforms_v2
|
| 146 |
+
|
| 147 |
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/__init__.cpython-312.pyc
ADDED
|
Binary file (3.48 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/_optical_flow.cpython-312.pyc
ADDED
|
Binary file (24.7 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/_stereo_matching.cpython-312.pyc
ADDED
|
Binary file (53.9 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/caltech.cpython-312.pyc
ADDED
|
Binary file (12.3 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/celeba.cpython-312.pyc
ADDED
|
Binary file (10.6 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/cifar.cpython-312.pyc
ADDED
|
Binary file (8.2 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/cityscapes.cpython-312.pyc
ADDED
|
Binary file (13.1 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/clevr.cpython-312.pyc
ADDED
|
Binary file (5.81 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/coco.cpython-312.pyc
ADDED
|
Binary file (6.37 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/country211.cpython-312.pyc
ADDED
|
Binary file (3.63 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/dtd.cpython-312.pyc
ADDED
|
Binary file (6.51 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/eurosat.cpython-312.pyc
ADDED
|
Binary file (3.69 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/fakedata.cpython-312.pyc
ADDED
|
Binary file (3.62 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/fer2013.cpython-312.pyc
ADDED
|
Binary file (6.66 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/fgvc_aircraft.cpython-312.pyc
ADDED
|
Binary file (6.92 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/flickr.cpython-312.pyc
ADDED
|
Binary file (8.34 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/flowers102.cpython-312.pyc
ADDED
|
Binary file (6.7 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/folder.cpython-312.pyc
ADDED
|
Binary file (15.6 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/food101.cpython-312.pyc
ADDED
|
Binary file (6.24 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/gtsrb.cpython-312.pyc
ADDED
|
Binary file (5.3 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/hmdb51.cpython-312.pyc
ADDED
|
Binary file (7.45 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/imagenet.cpython-312.pyc
ADDED
|
Binary file (14.1 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/imagenette.cpython-312.pyc
ADDED
|
Binary file (6.11 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/inaturalist.cpython-312.pyc
ADDED
|
Binary file (12.7 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/kinetics.cpython-312.pyc
ADDED
|
Binary file (12.6 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/kitti.cpython-312.pyc
ADDED
|
Binary file (8.39 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/lfw.cpython-312.pyc
ADDED
|
Binary file (16.3 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/lsun.cpython-312.pyc
ADDED
|
Binary file (8.8 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/mnist.cpython-312.pyc
ADDED
|
Binary file (31.1 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/moving_mnist.cpython-312.pyc
ADDED
|
Binary file (5.62 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/omniglot.cpython-312.pyc
ADDED
|
Binary file (6.21 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/oxford_iiit_pet.cpython-312.pyc
ADDED
|
Binary file (8.46 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/pcam.cpython-312.pyc
ADDED
|
Binary file (7.07 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/phototour.cpython-312.pyc
ADDED
|
Binary file (12 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/places365.cpython-312.pyc
ADDED
|
Binary file (11 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/rendered_sst2.cpython-312.pyc
ADDED
|
Binary file (5.38 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/sbd.cpython-312.pyc
ADDED
|
Binary file (8.38 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/sbu.cpython-312.pyc
ADDED
|
Binary file (6.07 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/semeion.cpython-312.pyc
ADDED
|
Binary file (4.69 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/stanford_cars.cpython-312.pyc
ADDED
|
Binary file (6.56 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/stl10.cpython-312.pyc
ADDED
|
Binary file (11 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/sun397.cpython-312.pyc
ADDED
|
Binary file (4.83 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/svhn.cpython-312.pyc
ADDED
|
Binary file (6.29 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/ucf101.cpython-312.pyc
ADDED
|
Binary file (7.33 kB). View file
|
|
|
lib/python3.12/site-packages/torchvision/datasets/__pycache__/usps.cpython-312.pyc
ADDED
|
Binary file (5.16 kB). View file
|
|
|