Skip to content

Commit 158b69e

Browse files
Yosua Michael Maranathafacebook-github-bot
authored andcommitted
[fbsync] Cleanup prototype datasets CI and related things (#6944)
Summary: * remove prototype datasets from CI * move encoded features to prototype datasets namespace * remove decoding transforms * [REVERT ME] reinstate prototype datasets CI * Revert "[REVERT ME] reinstate prototype datasets CI" This reverts commit 215fb18. Reviewed By: NicolasHug Differential Revision: D41265183 fbshipit-source-id: 0ad525314ac72aa784cd329fa17e9776b42bba46
1 parent 66e2a4d commit 158b69e

27 files changed

+41
-102
lines changed

.circleci/config.yml

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.circleci/config.yml.in

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,6 @@ commands:
152152
args: --no-build-isolation <<# parameters.editable >> --editable <</ parameters.editable >> .
153153
descr: Install torchvision <<# parameters.editable >> in editable mode <</ parameters.editable >>
154154

155-
install_prototype_dependencies:
156-
steps:
157-
- pip_install:
158-
args: iopath
159-
descr: Install third-party dependencies
160-
- pip_install:
161-
args: --pre torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu
162-
descr: Install torchdata from nightly releases
163-
164155
# Most of the test suite is handled by the `unittest` jobs, with completely different workflow and setup.
165156
# This command can be used if only a selection of tests need to be run, for ad-hoc files.
166157
run_tests_selective:
@@ -326,7 +317,6 @@ jobs:
326317
- checkout
327318
- install_torchvision:
328319
editable: true
329-
- install_prototype_dependencies
330320
- pip_install:
331321
args: mypy
332322
descr: Install Python type check utilities

.github/workflows/prototype-tests.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ jobs:
2828
uses: actions/checkout@v3
2929

3030
- name: Install PyTorch nightly builds
31-
run: pip install --progress-bar=off --pre torch torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu/
31+
run: pip install --progress-bar=off --pre torch --extra-index-url https://download.pytorch.org/whl/nightly/cpu/
3232

3333
- name: Install torchvision
3434
run: pip install --progress-bar=off --no-build-isolation --editable .
3535

3636
- name: Install other prototype dependencies
37-
run: pip install --progress-bar=off scipy pycocotools h5py iopath
37+
run: pip install --progress-bar=off scipy pycocotools h5py
3838

3939
- name: Install test requirements
4040
run: pip install --progress-bar=off pytest pytest-mock pytest-cov
@@ -52,16 +52,6 @@ jobs:
5252
--cov-report=term-missing \
5353
test/test_prototype_features*.py
5454
55-
- name: Run prototype datasets tests
56-
if: success() || ( failure() && steps.setup.conclusion == 'success' )
57-
shell: bash
58-
run: |
59-
pytest \
60-
--durations=20 \
61-
--cov=torchvision/prototype/datasets \
62-
--cov-report=term-missing \
63-
test/test_prototype_datasets*.py
64-
6555
- name: Run prototype transforms tests
6656
if: success() || ( failure() && steps.setup.conclusion == 'success' )
6757
shell: bash

torchvision/prototype/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from . import datasets, features, models, transforms, utils
1+
from . import features, models, transforms, utils

torchvision/prototype/datasets/_builtin/caltech.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
import numpy as np
66
from torchdata.datapipes.iter import Filter, IterDataPipe, IterKeyZipper, Mapper
7-
from torchvision.prototype.datasets.utils import Dataset, GDriveResource, OnlineResource
7+
from torchvision.prototype.datasets.utils import Dataset, EncodedImage, GDriveResource, OnlineResource
88
from torchvision.prototype.datasets.utils._internal import (
99
hint_sharding,
1010
hint_shuffling,
1111
INFINITE_BUFFER_SIZE,
1212
read_categories_file,
1313
read_mat,
1414
)
15-
from torchvision.prototype.features import _Feature, BoundingBox, EncodedImage, Label
15+
from torchvision.prototype.features import _Feature, BoundingBox, Label
1616

1717
from .._api import register_dataset, register_info
1818

torchvision/prototype/datasets/_builtin/celeba.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
from typing import Any, BinaryIO, Dict, Iterator, List, Optional, Sequence, Tuple, Union
44

55
from torchdata.datapipes.iter import Filter, IterDataPipe, IterKeyZipper, Mapper, Zipper
6-
from torchvision.prototype.datasets.utils import Dataset, GDriveResource, OnlineResource
6+
from torchvision.prototype.datasets.utils import Dataset, EncodedImage, GDriveResource, OnlineResource
77
from torchvision.prototype.datasets.utils._internal import (
88
getitem,
99
hint_sharding,
1010
hint_shuffling,
1111
INFINITE_BUFFER_SIZE,
1212
path_accessor,
1313
)
14-
from torchvision.prototype.features import _Feature, BoundingBox, EncodedImage, Label
14+
from torchvision.prototype.features import _Feature, BoundingBox, Label
1515

1616
from .._api import register_dataset, register_info
1717

torchvision/prototype/datasets/_builtin/clevr.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from typing import Any, BinaryIO, Dict, List, Optional, Tuple, Union
33

44
from torchdata.datapipes.iter import Demultiplexer, Filter, IterDataPipe, IterKeyZipper, JsonParser, Mapper, UnBatcher
5-
from torchvision.prototype.datasets.utils import Dataset, HttpResource, OnlineResource
5+
from torchvision.prototype.datasets.utils import Dataset, EncodedImage, HttpResource, OnlineResource
66
from torchvision.prototype.datasets.utils._internal import (
77
getitem,
88
hint_sharding,
@@ -11,7 +11,7 @@
1111
path_accessor,
1212
path_comparator,
1313
)
14-
from torchvision.prototype.features import EncodedImage, Label
14+
from torchvision.prototype.features import Label
1515

1616
from .._api import register_dataset, register_info
1717

torchvision/prototype/datasets/_builtin/coco.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Mapper,
1515
UnBatcher,
1616
)
17-
from torchvision.prototype.datasets.utils import Dataset, HttpResource, OnlineResource
17+
from torchvision.prototype.datasets.utils import Dataset, EncodedImage, HttpResource, OnlineResource
1818
from torchvision.prototype.datasets.utils._internal import (
1919
getitem,
2020
hint_sharding,
@@ -24,7 +24,7 @@
2424
path_accessor,
2525
read_categories_file,
2626
)
27-
from torchvision.prototype.features import _Feature, BoundingBox, EncodedImage, Label
27+
from torchvision.prototype.features import _Feature, BoundingBox, Label
2828

2929
from .._api import register_dataset, register_info
3030

torchvision/prototype/datasets/_builtin/country211.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
from typing import Any, Dict, List, Tuple, Union
33

44
from torchdata.datapipes.iter import Filter, IterDataPipe, Mapper
5-
from torchvision.prototype.datasets.utils import Dataset, HttpResource, OnlineResource
5+
from torchvision.prototype.datasets.utils import Dataset, EncodedImage, HttpResource, OnlineResource
66
from torchvision.prototype.datasets.utils._internal import (
77
hint_sharding,
88
hint_shuffling,
99
path_comparator,
1010
read_categories_file,
1111
)
12-
from torchvision.prototype.features import EncodedImage, Label
12+
from torchvision.prototype.features import Label
1313

1414
from .._api import register_dataset, register_info
1515

torchvision/prototype/datasets/_builtin/cub200.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Mapper,
1515
)
1616
from torchdata.datapipes.map import IterToMapConverter
17-
from torchvision.prototype.datasets.utils import Dataset, GDriveResource, OnlineResource
17+
from torchvision.prototype.datasets.utils import Dataset, EncodedImage, GDriveResource, OnlineResource
1818
from torchvision.prototype.datasets.utils._internal import (
1919
getitem,
2020
hint_sharding,
@@ -25,7 +25,7 @@
2525
read_categories_file,
2626
read_mat,
2727
)
28-
from torchvision.prototype.features import _Feature, BoundingBox, EncodedImage, Label
28+
from torchvision.prototype.features import _Feature, BoundingBox, Label
2929

3030
from .._api import register_dataset, register_info
3131

0 commit comments

Comments
 (0)