once-for-all
once-for-all copied to clipboard
ImportError: cannot import name 'MyRandomResizedCrop'
`/opt/vitis_ai/conda/envs/vitis-ai-pytorch/lib/python3.6/site-packages/ofa/imagenet_classification/run_manager/run_manager.py in
ImportError: cannot import name 'MyRandomResizedCrop'`
Where is the problem?
I ran into the same problem when running eval_ofa_net.py. Then I uncomment the 10th line "# from .my_dataloader import *" in the file ofa/utils/__init__.py and it works.