mmrazor icon indicating copy to clipboard operation
mmrazor copied to clipboard

can't open file 'tools/mmcls/mmcls/train_mmcls.py': [Errno 2] No such file or directory

Open ManuBN786 opened this issue 1 year ago • 1 comments

Screenshot from 2023-03-28 18-52-36

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 Screenshot from 2023-03-28 18-56-16

(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

ManuBN786 avatar Mar 28 '23 10:03 ManuBN786

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.

HIT-cwh avatar May 25 '23 07:05 HIT-cwh