Skip to content

Commit 7c052ce

Browse files
authored
Revert "Adding a DatasetFolder class. (#442)" (#443)
This reverts commit ab03dc4.
1 parent ab03dc4 commit 7c052ce

File tree

12 files changed

+59
-164
lines changed

12 files changed

+59
-164
lines changed

docs/source/datasets.rst

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ torchvision.datasets
44
All datasets are subclasses of :class:`torch.utils.data.Dataset`
55
i.e, they have ``__getitem__`` and ``__len__`` methods implemented.
66
Hence, they can all be passed to a :class:`torch.utils.data.DataLoader`
7-
which can load multiple samples parallelly using ``torch.multiprocessing`` workers.
7+
which can load multiple samples parallelly using ``torch.multiprocessing`` workers.
88
For example: ::
9-
9+
1010
imagenet_data = torchvision.datasets.ImageFolder('path/to/imagenet_root/')
11-
data_loader = torch.utils.data.DataLoader(imagenet_data,
11+
data_loader = torch.utils.data.DataLoader(imagenet_data,
1212
batch_size=4,
1313
shuffle=True,
1414
num_workers=args.nThreads)
@@ -22,7 +22,7 @@ All the datasets have almost similar API. They all have two common arguments:
2222
``transform`` and ``target_transform`` to transform the input and target respectively.
2323

2424

25-
.. currentmodule:: torchvision.datasets
25+
.. currentmodule:: torchvision.datasets
2626

2727

2828
MNIST
@@ -78,14 +78,6 @@ ImageFolder
7878
:members: __getitem__
7979
:special-members:
8080

81-
DatasetFolder
82-
~~~~~~~~~~~~~
83-
84-
.. autoclass:: DatasetFolder
85-
:members: __getitem__
86-
:special-members:
87-
88-
8981

9082
Imagenet-12
9183
~~~~~~~~~~~
@@ -129,3 +121,4 @@ PhotoTour
129121
.. autoclass:: PhotoTour
130122
:members: __getitem__
131123
:special-members:
124+

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ def find_version(*file_paths):
3333
'pillow >= 4.1.1',
3434
'six',
3535
'torch',
36-
'mock',
3736
]
3837

3938
setup(

test/assets/dataset/a/a1.png

-20.4 KB
Binary file not shown.

test/assets/dataset/a/a2.png

-11.4 KB
Binary file not shown.

test/assets/dataset/a/a3.png

-10.9 KB
Binary file not shown.

test/assets/dataset/b/b1.png

-12.9 KB
Binary file not shown.

test/assets/dataset/b/b2.png

-8.79 KB
Binary file not shown.

test/assets/dataset/b/b3.png

-13.4 KB
Binary file not shown.

test/assets/dataset/b/b4.png

-19.2 KB
Binary file not shown.

test/test_folder.py

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)