-
Notifications
You must be signed in to change notification settings - Fork 7.1k
migrate coco prototype #5473
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
Merged
NicolasHug
merged 11 commits into
pytorch:prototype-datasets-inheritance
from
pmeier:datasets/coco
Apr 6, 2022
Merged
migrate coco prototype #5473
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
d1dd88a
migrate coco prototype
pmeier a6af500
revert unrelated change
pmeier 6c98b82
add kwargs to super constructor call
pmeier a35c00a
Merge branch 'prototype-datasets-inheritance' into datasets/coco
pmeier 3e182cb
Merge branch 'prototype-datasets-inheritance' into datasets/coco
pmeier d7bccfd
remove unneeded changes
pmeier 25d999f
fix docstring position
pmeier 9893dd4
Merge branch 'prototype-datasets-inheritance' into datasets/coco
pmeier 453f8db
make kwargs explicit
pmeier 3bc839e
add dependencies to docstring
pmeier 4ba09d6
fix missing dependency message
pmeier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,17 @@ class ImageNetDemux(enum.IntEnum): | |
|
||
@register_dataset(NAME) | ||
class ImageNet(Dataset2): | ||
def __init__(self, root: Union[str, pathlib.Path], *, split: str = "train") -> None: | ||
""" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Small fix to ImageNet that I found while working on COCO. |
||
- **homepage**: https://www.image-net.org/ | ||
""" | ||
|
||
def __init__( | ||
self, | ||
root: Union[str, pathlib.Path], | ||
*, | ||
split: str = "train", | ||
skip_integrity_check: bool = False, | ||
) -> None: | ||
self._split = self._verify_str_arg(split, "split", {"train", "val", "test"}) | ||
|
||
info = _info() | ||
|
@@ -63,7 +73,7 @@ def __init__(self, root: Union[str, pathlib.Path], *, split: str = "train") -> N | |
self._wnids = wnids | ||
self._wnid_to_category = dict(zip(wnids, categories)) | ||
|
||
super().__init__(root) | ||
super().__init__(root, skip_integrity_check=skip_integrity_check) | ||
|
||
_IMAGES_CHECKSUMS = { | ||
"train": "b08200a27a8e34218a0e58fde36b0fe8f73bc377f4acea2d91602057c3ca45bb", | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.