Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of Stanford Cars prototype dataset #5442

Merged
merged 71 commits into from
Mar 10, 2022
Merged
Changes from 1 commit
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
72ccc5c
basic stanford cars structure added.
abhi-glitchhg Feb 18, 2022
1ce692c
added class in the init.
abhi-glitchhg Feb 18, 2022
20794e2
how to decode the images
abhi-glitchhg Feb 18, 2022
64dca37
Merge branch 'main' into stanfordcars
abhi-glitchhg Feb 18, 2022
e4c3f9d
fix typo in init
abhi-glitchhg Feb 18, 2022
9ae5f23
works partially
abhi-glitchhg Feb 18, 2022
d965622
formatting
abhi-glitchhg Feb 18, 2022
eb2bc93
formatting
abhi-glitchhg Feb 18, 2022
a4041a8
formatting
abhi-glitchhg Feb 18, 2022
c681d39
formatting
abhi-glitchhg Feb 19, 2022
a3953fe
formatting
abhi-glitchhg Feb 19, 2022
6774c24
Merge branch 'main' into stanfordcars
abhi-glitchhg Feb 21, 2022
b9b38e8
Merge branch 'main' into stanfordcars
abhi-glitchhg Feb 25, 2022
ae5a47b
Merge branch 'main' into stanfordcars
abhi-glitchhg Feb 26, 2022
3e47f8e
Merge branch 'main' into stanfordcars
abhi-glitchhg Feb 27, 2022
8bd7348
minor changes
abhi-glitchhg Feb 27, 2022
7ad896e
minor changes
abhi-glitchhg Feb 27, 2022
5922e1b
issue resolved
abhi-glitchhg Mar 3, 2022
bca2a6b
both datapipes are in sync
abhi-glitchhg Mar 3, 2022
5fe8e1c
Merge branch 'main' into stanfordcars
abhi-glitchhg Mar 3, 2022
7d0b908
checksum dict keys changed
abhi-glitchhg Mar 3, 2022
862fc1e
formatting
abhi-glitchhg Mar 3, 2022
c1e9034
Merge branch 'stanfordcars' of https://github.com/abhi-glitchhg/visio…
abhi-glitchhg Mar 3, 2022
8f91280
"ufmt formatting"
abhi-glitchhg Mar 3, 2022
873a6f8
"ufmt formatting"
abhi-glitchhg Mar 3, 2022
4c40f86
formatting
abhi-glitchhg Mar 3, 2022
752bc4b
minor change
abhi-glitchhg Mar 3, 2022
2583c7c
minor change
abhi-glitchhg Mar 3, 2022
197d2e1
test added
abhi-glitchhg Mar 5, 2022
852805a
Merge branch 'main' into stanfordcars
abhi-glitchhg Mar 5, 2022
b0b217d
lint (end of line issue)
abhi-glitchhg Mar 5, 2022
da99ab1
Merge branch 'stanfordcars' of https://github.com/abhi-glitchhg/visio…
abhi-glitchhg Mar 5, 2022
a067e4b
lint (end of line issue)
abhi-glitchhg Mar 5, 2022
e792ed7
minor changes
abhi-glitchhg Mar 5, 2022
8d0eaa5
mock dataset formatting
abhi-glitchhg Mar 5, 2022
4a6f1b1
minor changes
abhi-glitchhg Mar 5, 2022
c4cfad4
hopefully final
abhi-glitchhg Mar 5, 2022
89fef01
formatting
abhi-glitchhg Mar 5, 2022
f3bfc99
prototype test
abhi-glitchhg Mar 5, 2022
a9ecaf9
prototype test
abhi-glitchhg Mar 5, 2022
3b98146
prototype test
abhi-glitchhg Mar 5, 2022
e39a840
prototype test
abhi-glitchhg Mar 5, 2022
e318c50
prototype test
abhi-glitchhg Mar 5, 2022
729ec17
prototype test
abhi-glitchhg Mar 5, 2022
7c09090
Merge branch 'main' into stanfordcars
abhi-glitchhg Mar 5, 2022
562973f
prototype test
abhi-glitchhg Mar 5, 2022
b41d075
Merge branch 'stanfordcars' of https://github.com/abhi-glitchhg/visio…
abhi-glitchhg Mar 5, 2022
bbe9fb1
prototype test
abhi-glitchhg Mar 5, 2022
47d8403
Update builtin_dataset_mocks.py
abhi-glitchhg Mar 5, 2022
2136ec5
Update stanford_cars.py
abhi-glitchhg Mar 6, 2022
be01e62
Update torchvision/prototype/datasets/_builtin/stanford_cars.py
abhi-glitchhg Mar 7, 2022
038c574
Update torchvision/prototype/datasets/_builtin/stanford_cars.py
abhi-glitchhg Mar 7, 2022
54246bb
Update torchvision/prototype/datasets/_builtin/stanford_cars.py
abhi-glitchhg Mar 7, 2022
e5ffb52
Update torchvision/prototype/datasets/_builtin/stanford_cars.py
abhi-glitchhg Mar 7, 2022
9ea352e
formatting and cleaning
abhi-glitchhg Mar 7, 2022
369c021
formatting and cleaning
abhi-glitchhg Mar 7, 2022
3a57e8b
Update torchvision/prototype/datasets/_builtin/stanford_cars.py
abhi-glitchhg Mar 7, 2022
d04e9d4
Merge branch 'main' into stanfordcars
abhi-glitchhg Mar 8, 2022
ce73276
generate catefories script
abhi-glitchhg Mar 8, 2022
44d91b1
Merge branch 'stanfordcars' of https://github.com/abhi-glitchhg/visio…
abhi-glitchhg Mar 8, 2022
6248e03
generate categories script added
abhi-glitchhg Mar 8, 2022
05f81a6
sigh
abhi-glitchhg Mar 8, 2022
f4938bb
sigh
abhi-glitchhg Mar 8, 2022
a8d88d1
sigh
abhi-glitchhg Mar 8, 2022
7e83969
minor changes
abhi-glitchhg Mar 9, 2022
0302eb6
linting
abhi-glitchhg Mar 9, 2022
0c409dc
Merge branch 'main' into stanfordcars
abhi-glitchhg Mar 9, 2022
d9f3af7
Merge branch 'main' into stanfordcars
abhi-glitchhg Mar 9, 2022
7dc2c71
Merge branch 'main' into stanfordcars
abhi-glitchhg Mar 9, 2022
70035d1
Merge branch 'main' into stanfordcars
NicolasHug Mar 10, 2022
801e9b0
Merge branch 'main' into stanfordcars
pmeier Mar 10, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
minor changes
abhi-glitchhg committed Mar 5, 2022
commit 4a6f1b15c872a77e0edefe6fa8f5acb4d0e90fed
4 changes: 2 additions & 2 deletions torchvision/prototype/datasets/_builtin/stanford_cars.py
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@ def _make_info(self) -> DatasetInfo:
"car_devkit": "512b227b30e2f0a8aab9e09485786ab4479582073a144998da74d64b801fd288",
}

def resources(self, config: DatasetConfig) -> List[OnlineResource]:
def resources(self, config: DatasetConfig) -> List[HttpResource]:
resources = [HttpResource(self._URLS[config.split], sha256=self._CHECKSUM[config.split])]
if config.split == "test":
resources.append(
@@ -56,7 +56,7 @@ def resources(self, config: DatasetConfig) -> List[OnlineResource]:
resources.append(HttpResource(url=self._URLS["car_devkit"], sha256=self._CHECKSUM["car_devkit"]))
return resources

def _prepare_sample(self, data: Tuple(IterDataPipe)) -> Dict(str, Any):
def _prepare_sample(self, data: Tuple[IterDataPipe]) -> Dict[str, Any]:
image, target = data
image_path, image_buffer = image
image = EncodedImage.from_file(image_buffer)