-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- Contributing guide: https://github.com/openvinotoolkit/datumaro/blob/develop/CONTRIBUTING.md --> ### Summary CVS-137601 Adds the downloading logic for Kaggle datasets. 258 pre-defined configurations are implemented. Kaggle API has a request limit, so fetching the metadata for each dataset is still unresolved. ### Checklist <!-- Put an 'x' in all the boxes that apply --> - [x] I have added unit tests to cover my changes. - [ ] I have added integration tests to cover my changes. - [ ] I have added the description of my changes into [CHANGELOG](https://github.com/openvinotoolkit/datumaro/blob/develop/CHANGELOG.md). - [ ] I have updated the [documentation](https://github.com/openvinotoolkit/datumaro/tree/develop/docs) accordingly ### License - [x] I submit _my code changes_ under the same [MIT License](https://github.com/openvinotoolkit/datumaro/blob/develop/LICENSE) that covers the project. Feel free to contact the maintainers if that's a concern. - [x] I have updated the license header for each file (see an example below). ```python # Copyright (C) 2024 Intel Corporation # # SPDX-License-Identifier: MIT ``` --------- Signed-off-by: Ilya Trushkin <[email protected]>
- Loading branch information
Showing
11 changed files
with
1,837 additions
and
202 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# | ||
# SPDX-License-Identifier: MIT | ||
|
||
from .downloader import IDatasetDownloader | ||
from .kaggle import KaggleDatasetDownloader | ||
from .tfds import TfdsDatasetDownloader | ||
|
||
__all__ = [IDatasetDownloader, KaggleDatasetDownloader, TfdsDatasetDownloader] |
This file contains 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright (C) 2024 Intel Corporation | ||
# | ||
# SPDX-License-Identifier: MIT | ||
|
||
from typing import Any | ||
|
||
|
||
class IDatasetDownloader: | ||
@classmethod | ||
def download( | ||
cls, | ||
dataset_id: str, | ||
dst_dir: str, | ||
overwrite: bool, | ||
output_format: str, | ||
subset: str, | ||
extra_args: Any, | ||
): | ||
raise NotImplementedError() | ||
|
||
@classmethod | ||
def describe(cls, report_format, report_file=None) -> str: | ||
raise NotImplementedError() | ||
|
||
@classmethod | ||
def get_command_description(cls, *args, **kwargs) -> str: | ||
raise NotImplementedError() | ||
|
||
@classmethod | ||
def describe_command_description(cls): | ||
raise NotImplementedError() |
Oops, something went wrong.