Commit e581dd0
[fbsync] Refactor and simplify prototype datasets (#5778)
Summary:
* refactor prototype datasets to inherit from IterDataPipe (#5448)
* refactor prototype datasets to inherit from IterDataPipe
* depend on new architecture
* fix missing file detection
* remove unrelated file
* reinstante decorator for mock registering
* options -> config
* remove passing of info to mock data functions
* refactor categories file generation
* fix imagenet
* fix prototype datasets data loading tests (#5711)
* reenable serialization test
* cleanup
* fix dill test
* trigger CI
* patch DILL_AVAILABLE for pickle serialization
* revert CI changes
* remove dill test and traversable test
* add data loader test
* parametrize over only_datapipe
* draw one sample rather than exhaust data loader
* cleanup
* trigger CI
* migrate VOC prototype dataset (#5743)
* migrate VOC prototype dataset
* cleanup
* revert unrelated mock data changes
* remove categories annotations
* move properties to constructor
* readd homepage
* migrate CIFAR prototype datasets (#5751)
* migrate country211 prototype dataset (#5753)
* migrate CLEVR prototype datsaet (#5752)
* migrate coco prototype (#5473)
* migrate coco prototype
* revert unrelated change
* add kwargs to super constructor call
* remove unneeded changes
* fix docstring position
* make kwargs explicit
* add dependencies to docstring
* fix missing dependency message
* Migrate PCAM prototype dataset (#5745)
* Port PCAM
* skip_integrity_check
* Update torchvision/prototype/datasets/_builtin/pcam.py
* Address comments
* Migrate DTD prototype dataset (#5757)
* Migrate DTD prototype dataset
* Docstring
* Apply suggestions from code review
* Migrate GTSRB prototype dataset (#5746)
* Migrate GTSRB prototype dataset
* ufmt
* Address comments
* Apparently mypy doesn't know that __len__ returns ints. How cute.
* why is the CI not triggered??
* Update torchvision/prototype/datasets/_builtin/gtsrb.py
* migrate CelebA prototype dataset (#5750)
* migrate CelebA prototype dataset
* inline split_id
* Migrate Food101 prototype dataset (#5758)
* Migrate Food101 dataset
* Added length
* Update torchvision/prototype/datasets/_builtin/food101.py
* Migrate Fer2013 prototype dataset (#5759)
* Migrate Fer2013 prototype dataset
* Update torchvision/prototype/datasets/_builtin/fer2013.py
* Migrate EuroSAT prototype dataset (#5760)
* Migrate Semeion prototype dataset (#5761)
* migrate caltech prototype datasets (#5749)
* migrate caltech prototype datasets
* resolve third party dependencies
* Migrate Oxford Pets prototype dataset (#5764)
* Migrate Oxford Pets prototype dataset
* Update torchvision/prototype/datasets/_builtin/oxford_iiit_pet.py
* migrate mnist prototype datasets (#5480)
* migrate MNIST prototype datasets
* Update torchvision/prototype/datasets/_builtin/mnist.py
* Migrate Stanford Cars prototype dataset (#5767)
* Migrate Stanford Cars prototype dataset
* Address comments
* fix category file generation (#5770)
* fix category file generation
* revert unrelated change
* revert unrelated change
* migrate cub200 prototype dataset (#5765)
* migrate cub200 prototype dataset
* address comments
* fix category-file-generation
* Migrate USPS prototype dataset (#5771)
* migrate SBD prototype dataset (#5772)
* migrate SBD prototype dataset
* reuse categories
* Migrate SVHN prototype dataset (#5769)
* add test to enforce __len__ is working on prototype datasets (#5742)
* reactivate special dataset tests
* add missing annotation
* Cleanup prototype dataset implementation (#5774)
* Remove Dataset2 class
* Move read_categories_file out of DatasetInfo
* Remove FrozenBunch and FrozenMapping
* Remove test_prototype_datasets_api.py and move missing dep test somewhere else
* ufmt
* Let read_categories_file accept names instead of paths
* Mypy
* flake8
* fix category file reading
* update prototype dataset README (#5777)
* update prototype dataset README
* fix header level
* Apply suggestions from code review
(Note: this ignores all push blocking failures!)
Reviewed By: jdsgomes, NicolasHug
Differential Revision: D36095693
fbshipit-source-id: d57f2b4a89ef1c45f5e2783ea57bce08df5c561d
Co-authored-by: Philip Meier <github.pmeier@posteo.de>
Co-authored-by: Philip Meier <github.pmeier@posteo.de>
Co-authored-by: Philip Meier <github.pmeier@posteo.de>
Co-authored-by: Philip Meier <github.pmeier@posteo.de>
Co-authored-by: Philip Meier <github.pmeier@posteo.de>
Co-authored-by: Philip Meier <github.pmeier@posteo.de>
Co-authored-by: Philip Meier <github.pmeier@posteo.de>
Co-authored-by: Philip Meier <github.pmeier@posteo.de>
Co-authored-by: Philip Meier <github.pmeier@posteo.de>
Co-authored-by: Philip Meier <github.pmeier@posteo.de>
Co-authored-by: Philip Meier <github.pmeier@posteo.de>
Co-authored-by: Philip Meier <github.pmeier@posteo.de>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Philip Meier <github.pmeier@posteo.de>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>1 parent f9cc788 commit e581dd0
File tree
35 files changed
+1680
-1494
lines changed- test
- torchvision/prototype
- datasets
- _builtin
- utils
- utils
35 files changed
+1680
-1494
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
45 | 56 | | |
46 | 57 | | |
47 | 58 | | |
48 | 59 | | |
49 | 60 | | |
50 | 61 | | |
51 | | - | |
52 | | - | |
| 62 | + | |
| 63 | + | |
53 | 64 | | |
54 | 65 | | |
55 | 66 | | |
| |||
76 | 87 | | |
77 | 88 | | |
78 | 89 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 90 | + | |
97 | 91 | | |
98 | 92 | | |
99 | 93 | | |
| |||
116 | 110 | | |
117 | 111 | | |
118 | 112 | | |
| 113 | + | |
119 | 114 | | |
120 | | - | |
| 115 | + | |
121 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
122 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
127 | 143 | | |
128 | 144 | | |
129 | 145 | | |
| |||
132 | 148 | | |
133 | 149 | | |
134 | 150 | | |
135 | | - | |
136 | 151 | | |
137 | 152 | | |
138 | 153 | | |
| |||
160 | 175 | | |
161 | 176 | | |
162 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
163 | 185 | | |
164 | 186 | | |
165 | 187 | | |
| |||
186 | 208 | | |
187 | 209 | | |
188 | 210 | | |
189 | | - | |
| 211 | + | |
190 | 212 | | |
191 | 213 | | |
192 | 214 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
0 commit comments