mmrazor
mmrazor copied to clipboard
can't open file 'tools/mmcls/mmcls/train_mmcls.py': [Errno 2] No such file or directory
Describe the bug
When I run 'CUDA_VISIBLE_DEVICES=1 tools/mmcls/dist_train.sh configs/distill/rkd/rkd_neck_resnet34_resnet18_8xb32_in1k.py 1' i get the error attached in the screenshot
and when I run 'python tools/mmcls/train_mmcls.py -h '
I get the error in the second screenshot
(mm) manu@manu-System-Product-Name:~/PycharmProjects/mmrazor$ python Python 3.8.10 (default, Mar 13 2023, 10:26:41) [GCC 9.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.
import torch torch.version '1.13.1+cu117' import mmcv mmcv.version '2.0.0rc4'
Please help me to do Knowledge Distillation
Sorry for the delayed response. It seems that you executed the codes in master branch. Currently, we recommend using the codes from the main branch as our preferred option, and we will gradually discontinue maintenance of the master branch.
In the master branch, the training script can be found in tools/mmcls/train_mmcls.py
, rather than tools/mmcls/mmcls/train_mmcls.py
. Hence, there might be an issue with the python path. If this problem persists even after switching to the main branch, please inform us so that we can assist you further.