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

[Bug] module 'mmcv' has no attribute 'scandir' #1671

Closed
3 tasks done
pekopoke opened this issue Feb 27, 2023 · 1 comment · Fixed by #1690
Closed
3 tasks done

[Bug] module 'mmcv' has no attribute 'scandir' #1671

pekopoke opened this issue Feb 27, 2023 · 1 comment · Fixed by #1690
Assignees
Labels
kind/bug something isn't working

Comments

@pekopoke
Copy link

pekopoke commented Feb 27, 2023

Prerequisite

Task

I'm using the official example scripts/configs for the officially supported tasks/models/datasets.

Branch

dev-1.x branch https://github.com/open-mmlab/mmediting/tree/dev-1.x

Environment

mmcv 2.0.0rc1 /opt/mmcv
mmdet 3.0.0rc5
mmedit 1.0.0rc5 /opt/mmediting
mmengine 0.5.0 /opt/mmediting/mmengine

Reproduces the problem - code sample

i want to train the model

python tools/train.py configs/real_basicvsr/realbasicvsr_c64b20-1x30x8_8xb1-lr5e-5-150k_reds.py

but i don't have REDS, so i am ready to download the REDS dataset.

Reproduces the problem - command or script

python tools/dataset_converters/reds/preprocess_reds_dataset.py ./data/REDS

Reproduces the problem - error message

Traceback (most recent call last):
  File "tools/dataset_converters/reds/preprocess_reds_dataset.py", line 269, in <module>
    folder_paths = unzip(root_path)
  File "tools/dataset_converters/reds/preprocess_reds_dataset.py", line 202, in unzip
    zip_files = mmcv.scandir(zip_path, suffix='zip', recursive=False)
AttributeError: module 'mmcv' has no attribute 'scandir'

Additional information

No response

@pekopoke pekopoke added the kind/bug something isn't working label Feb 27, 2023
@Z-Fran
Copy link
Collaborator

Z-Fran commented Mar 7, 2023

Please use mmengine.scandir

@Z-Fran Z-Fran self-assigned this Mar 7, 2023
@Z-Fran Z-Fran linked a pull request Mar 24, 2023 that will close this issue
7 tasks
@Z-Fran Z-Fran closed this as completed Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants