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

Error during validation. #13

Open
FeU-aKlos opened this issue Jun 24, 2022 · 1 comment
Open

Error during validation. #13

FeU-aKlos opened this issue Jun 24, 2022 · 1 comment

Comments

@FeU-aKlos
Copy link

When I try to run python validation.py ... the following exception is thrown:

Traceback (most recent call last):
  File "/home/user/github/nsganetv2/validation.py", line 10, in <module>
    from codebase.run_manager import get_run_config
  File "/home/user/github/nsganetv2/codebase/run_manager/__init__.py", line 1, in <module>
    from codebase.data_providers.imagenet import *
  File "/home/user/github/nsganetv2/codebase/data_providers/imagenet.py", line 10, in <module>
    from ofa.utils.my_dataloader import MyRandomResizedCrop, MyDistributedSampler
ModuleNotFoundError: No module named 'ofa.utils.my_dataloader'; 'ofa.utils' is not a package
@FeU-aKlos
Copy link
Author

I fixed it by installing the latest version of ofa:

pip install git+https://github.com/mit-han-lab/once-for-all@e9b0e07410e9d9f9e19b2dc0a5a5d66961336cb7

The release version 0.1 did not fix the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant