Commit 9ed1443
[fbsync] Revamp prototype features and transforms (#5407)
Summary:
* revamp prototype features (#5283)
* remove decoding from prototype datasets (#5287)
* remove decoder from prototype datasets
* remove unused imports
* cleanup
* fix readme
* use OneHotLabel in SEMEION
* improve voc implementation
* revert unrelated changes
* fix semeion mock data
* fix pcam
* readd functional transforms API to prototype (#5295)
* readd functional transforms
* cleanup
* add missing imports
* remove __torch_function__ dispatch
* readd repr
* readd empty line
* add test for scriptability
* remove function copy
* change import from functional tensor transforms to just functional
* fix import
* fix test
* fix prototype features and functional transforms after review (#5377)
* fix prototype functional transforms after review
* address features review
* make mypy more strict on prototype features
* make mypy more strict for prototype transforms
* fix annotation
* fix kernel tests
* add automatic feature type dispatch to functional transforms (#5323)
* add auto dispatch
* fix missing arguments error message
* remove pil kernel for erase
* automate feature specific parameter detection
* fix typos
* cleanup dispatcher call
* remove __torch_function__ from transform dispatch
* remove auto-generation
* revert unrelated changes
* remove implements decorator
* change register parameter order
* change order of transforms for readability
* add documentation for __torch_function__
* fix mypy
* inline check for support
* refactor kernel registering process
* refactor dispatch to be a regular decorator
* split kernels and dispatchers
* remove sentinels
* replace pass with ...
* appease mypy
* make single kernel dispatchers more concise
* make dispatcher signatures more generic
* make kernel checking more strict
* revert doc changes
* address Franciscos comments
* remove inplace
* rename kernel test module
* fix inplace
* remove special casing for pil and vanilla tensors
* address comments
* update docs
* cleanup features / transforms feature branch (#5406)
* mark candidates for removal
* align signature of resize_bounding_box with corresponding image kernel
* fix documentation of Feature
* remove interpolation mode and antialias option from resize_segmentation_mask
* remove or privatize functionality in features / datasets / transforms
Reviewed By: sallysyw
Differential Revision: D34265747
fbshipit-source-id: 569ed9f74ac0c026391767c3b422ca0147f55ead1 parent a3752fe commit 9ed1443
File tree
59 files changed
+1780
-1966
lines changed- test
- torchvision/prototype
- datasets
- _builtin
- utils
- features
- transforms
- functional
- kernels
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
59 files changed
+1780
-1966
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
9 | 39 | | |
10 | 40 | | |
11 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
432 | 432 | | |
433 | 433 | | |
434 | 434 | | |
435 | | - | |
436 | | - | |
437 | | - | |
| 435 | + | |
438 | 436 | | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
439 | 440 | | |
| 441 | + | |
440 | 442 | | |
| 443 | + | |
441 | 444 | | |
442 | | - | |
443 | | - | |
| 445 | + | |
| 446 | + | |
444 | 447 | | |
445 | 448 | | |
446 | 449 | | |
447 | 450 | | |
448 | | - | |
| 451 | + | |
449 | 452 | | |
450 | 453 | | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
| 454 | + | |
| 455 | + | |
460 | 456 | | |
461 | | - | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
462 | 460 | | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
470 | 479 | | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
| 480 | + | |
479 | 481 | | |
480 | 482 | | |
481 | 483 | | |
| |||
667 | 669 | | |
668 | 670 | | |
669 | 671 | | |
| 672 | + | |
670 | 673 | | |
671 | 674 | | |
672 | | - | |
| 675 | + | |
673 | 676 | | |
674 | 677 | | |
675 | 678 | | |
676 | 679 | | |
677 | | - | |
| 680 | + | |
678 | 681 | | |
679 | 682 | | |
680 | 683 | | |
| |||
729 | 732 | | |
730 | 733 | | |
731 | 734 | | |
732 | | - | |
| 735 | + | |
733 | 736 | | |
734 | 737 | | |
735 | 738 | | |
736 | 739 | | |
737 | | - | |
738 | 740 | | |
739 | | - | |
740 | | - | |
741 | | - | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
742 | 746 | | |
| 747 | + | |
743 | 748 | | |
| 749 | + | |
744 | 750 | | |
745 | 751 | | |
746 | 752 | | |
747 | | - | |
748 | | - | |
749 | 753 | | |
| 754 | + | |
750 | 755 | | |
751 | | - | |
| 756 | + | |
| 757 | + | |
752 | 758 | | |
753 | 759 | | |
754 | 760 | | |
755 | 761 | | |
756 | | - | |
757 | | - | |
758 | 762 | | |
759 | 763 | | |
760 | 764 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
14 | 21 | | |
15 | 22 | | |
16 | 23 | | |
| |||
92 | 99 | | |
93 | 100 | | |
94 | 101 | | |
| 102 | + | |
95 | 103 | | |
96 | 104 | | |
97 | 105 | | |
| |||
137 | 145 | | |
138 | 146 | | |
139 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
140 | 159 | | |
141 | 160 | | |
142 | 161 | | |
| |||
171 | 190 | | |
172 | 191 | | |
173 | 192 | | |
174 | | - | |
| 193 | + | |
175 | 194 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
| 8 | + | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
0 commit comments