open-mmlab / mmaction2

OpenMMLab's Next Generation Video Understanding Toolbox and Benchmark
https://mmaction2.readthedocs.io
Apache License 2.0
4.31k stars 1.25k forks source link

mim faias to download kinetics700 #2743

Open beppe2hd opened 1 year ago

beppe2hd commented 1 year ago

Branch

main branch (1.x version, such as v1.0.0, or dev-1.x branch)

Prerequisite

Environment

sys.platform: linux Python: 3.8.18 (default, Sep 11 2023, 13:40:15) [GCC 11.2.0] CUDA available: False numpy_random_seed: 2147483648 GCC: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 PyTorch: 2.1.0 PyTorch compiling details: PyTorch built with:

TorchVision: 0.16.0 OpenCV: 4.8.1 MMEngine: 0.9.1 MMAction2: 1.2.0+4d6c934 MMCV: 2.1.0 MMDetection: 3.2.0 MMPose: 1.2.0

Describe the bug

If I try to download the kinetics700 dataset with mim it fails

Reproduces the problem - code sample

No response

Reproduces the problem - command or script

(openmmlab) daitan3@daitan3-workstation:~/decondDrive/pythonProjects/mmaction2$ mim download mmaction2 --dataset kinetics700

Reproduces the problem - error message

Start downloading kinetics700 to data...
WARNING:This CLI tool is deprecated and will be removed in a future release.
The opendatalab(odl) pkg has been deprecated and will no longer be supported in few weeks.
We recommend that you switch to the openxlab pkg, which accept same username/password,
provides the same functionality and other enhanced AI friendly features.
More details please refer to https://openxlab.org.cn/datasets

No dataset: OpenMMLab
Traceback (most recent call last):
  File "/home/daitan3/miniconda3/envs/openmmlab/bin/mim", line 8, in <module>
    sys.exit(cli())
  File "/home/daitan3/miniconda3/envs/openmmlab/lib/python3.8/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/home/daitan3/miniconda3/envs/openmmlab/lib/python3.8/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/daitan3/miniconda3/envs/openmmlab/lib/python3.8/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/daitan3/miniconda3/envs/openmmlab/lib/python3.8/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/daitan3/miniconda3/envs/openmmlab/lib/python3.8/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/daitan3/miniconda3/envs/openmmlab/lib/python3.8/site-packages/mim/commands/download.py", line 70, in cli
    download(package, configs, dest_root, check_certificate, dataset)
  File "/home/daitan3/miniconda3/envs/openmmlab/lib/python3.8/site-packages/mim/commands/download.py", line 110, in download
    return _download_dataset(package, dataset, dest_root)  # type: ignore
  File "/home/daitan3/miniconda3/envs/openmmlab/lib/python3.8/site-packages/mim/commands/download.py", line 242, in _download_dataset
    subprocess.check_call(['odl', 'get', src_name, '-d', download_root],
  File "/home/daitan3/miniconda3/envs/openmmlab/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)

Additional information

If I try to download the dataset with the command:

openxlab dataset get --dataset-repo OpenMMLab/Kinetics_700

The dataste is correctly downloaded

Altair-yang commented 1 year ago

Thanks for your solution, I have correctly downloaded kinetics400 using the command : "openxlab dataset get --dataset-repo OpenMMLab/Kinetics-400"

hustzyj commented 1 year ago

Thanks for your solution, I have correctly downloaded kinetics400 using the command : "openxlab dataset get --dataset-repo OpenMMLab/Kinetics-400"

Hi, I want to know how to process the .tar.gz.0000 file?I got the mistakes as follows: gzip:sudin:unexpected end of file. Additional, the .tar.gz.0001 seems not a archive file, how to process it? Thank you very much!

Altair-yang commented 1 year ago

Thanks for your solution, I have correctly downloaded kinetics400 using the command : "openxlab dataset get --dataset-repo OpenMMLab/Kinetics-400"

Hi, I want to know how to process the .tar.gz.0000 file?I got the mistakes as follows: gzip:sudin:unexpected end of file. Additional, the .tar.gz.0001 seems not a archive file, how to process it? Thank you very much!

我下载好数据集后,直接运行 preprocess_k400.sh 这个脚本后,就解压好了,你可以试一试

k400
MoH-assan commented 5 months ago

Hi, Facing login issue in https://github.com/omniobject3d/OmniObject3D/issues/42

$ openxlab dataset get --dataset-repo OpenMMLab/Kinetics_700 Fetching the list of datasets... 401: {"msg":"login required"}

Although I verified that I am correctly logged in

Appreciate your help. Thanks,