Hawkeye icon indicating copy to clipboard operation
Hawkeye copied to clipboard

ModuleNotFoundError: No module named 'utils.repository'

Open xiongxiong1996 opened this issue 2 years ago • 1 comments

I followed the steps inscribed to install it, but there was a problem :ModuleNotFoundError: No module named 'utils.repository'. Is there a problem with my path settings?

(hawkeye) root:/tmp/pycharm_project_Hawkeye/Hawkeye# python Examples/APINet.py --config configs/APINet.yaml Traceback (most recent call last): File "Examples/APINet.py", line 8, in from model.loss.APINet_loss import APINetLoss File "/tmp/pycharm_project_Hawkeye/Hawkeye/model/init.py", line 1, in from .methods import * File "/tmp/pycharm_project_Hawkeye/Hawkeye/model/methods/init.py", line 1, in from .BCNN import BCNN File "/tmp/pycharm_project_Hawkeye/Hawkeye/model/methods/BCNN.py", line 3, in from model.backbone import vgg16 File "/tmp/pycharm_project_Hawkeye/Hawkeye/model/backbone/init.py", line 1, in from .vgg import vgg11, vgg13, vgg16, vgg19, vgg11_bn, vgg13_bn, vgg16_bn, vgg19_bn File "/tmp/pycharm_project_Hawkeye/Hawkeye/model/backbone/vgg.py", line 7, in from model.registry import BACKBONE File "/tmp/pycharm_project_Hawkeye/Hawkeye/model/registry.py", line 1, in from utils.repository import Repository ModuleNotFoundError: No module named 'utils.repository'

xiongxiong1996 avatar Jan 02 '23 15:01 xiongxiong1996

I found that there was a problem with sys.path, I ran it fine with pycharm, but the command didn't.

xiongxiong1996 avatar Jan 03 '23 03:01 xiongxiong1996