Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Download and Kinetics 400/600/700 Datasets (#3680)
* Initial commit * pmeiers comments Co-authored-by: Philip Meier <github.pmeier@posteo.de> * pmeiers changes Co-authored-by: Philip Meier <github.pmeier@posteo.de> * pmeiers comments Co-authored-by: Philip Meier <github.pmeier@posteo.de> * replace pandas with system library to avoid crashes * Lint * Lint * fixing unittest * Minor comments removal * pmeier comments Co-authored-by: Philip Meier <github.pmeier@posteo.de> * remove asserts * address pmeier formatting changes * address pmeier changes Co-authored-by: Philip Meier <github.pmeier@posteo.de> * pmeier changes Co-authored-by: Philip Meier <github.pmeier@posteo.de> * rename n_classes to num_classes * formatting changes * doc change to add ".mp4" to backported class * formatting to correct line length * adding **kwargs to Kinetics400 class * remove urlib request and download the file directly * annotations and files can be already downloaded * test fix * add download tests for Kinetics * users now dont need to provide full path within the root for new Kinetics dataset * linter * Update test/test_datasets_download.py * Update torchvision/datasets/kinetics.py Co-authored-by: Philip Meier <github.pmeier@posteo.de> * revert whitespace (3680#discussion_r626382842) * addressing annotation_path parameter which is unnecessary * Update torchvision/datasets/kinetics.py Co-authored-by: Philip Meier <github.pmeier@posteo.de> * Update torchvision/datasets/kinetics.py Co-authored-by: Philip Meier <github.pmeier@posteo.de> * kwargs update Co-authored-by: Philip Meier <github.pmeier@posteo.de> * expose num_download_workers as public * swap os.isfile with check_integrity * nit on private things * special case if there are no default arguments * revert changes to kinetics400 test case for BC * add split_folder changes and support for legacy format * pmeiers suggestions Co-authored-by: Philip Meier <github.pmeier@posteo.de> * pmeiers suggestions - root comment * pmeiers comments - annotation attribute remmoved * pmeiers suggestion Co-authored-by: Philip Meier <github.pmeier@posteo.de> * pmeiers suggestion Co-authored-by: Philip Meier <github.pmeier@posteo.de> * pmeiers suggestion Co-authored-by: Philip Meier <github.pmeier@posteo.de> * pmeiers suggestion Co-authored-by: Philip Meier <github.pmeier@posteo.de> * Update torchvision/datasets/kinetics.py Co-authored-by: Philip Meier <github.pmeier@posteo.de> * Update torchvision/datasets/kinetics.py Co-authored-by: Philip Meier <github.pmeier@posteo.de> * Update torchvision/datasets/kinetics.py Co-authored-by: Philip Meier <github.pmeier@posteo.de> * Update torchvision/datasets/kinetics.py Co-authored-by: Philip Meier <github.pmeier@posteo.de> * Update torchvision/datasets/kinetics.py Co-authored-by: Philip Meier <github.pmeier@posteo.de> * Update torchvision/datasets/kinetics.py Co-authored-by: Philip Meier <github.pmeier@posteo.de> * minor debugging * nit picks * only include public kwargs into defaults * add _use_legacy_structure in favour of **kwargs * add type hints for Kinetics400 * flake8 * flake8 * flake8 * rename to make thigs clearer * permuting the output Co-authored-by: Philip Meier <github.pmeier@posteo.de> Co-authored-by: Francisco Massa <fvsmassa@gmail.com>
- Loading branch information