NVIDIA / ContrastiveLosses4VRD

Implementation for the CVPR2019 paper "Graphical Contrastive Losses for Scene Graph Generation"
Other
199 stars 41 forks source link

No module named 'utils.collections' #15

Closed seekingup closed 1 year ago

seekingup commented 4 years ago

Thanks for your code! when I tried to do evaluation on Visual Genome using the command in README.md, there's a import error. Traceback (most recent call last): File "./tools/test_net_rel.py", line 18, in from core.config import cfg, merge_cfg_from_file, merge_cfg_from_list, assert_and_infer_cfg File "/home/seekingup/code/reldn/lib/core/config.py", line 29, in from utils.collections import AttrDict ModuleNotFoundError: No module named 'utils.collections'

It seems the 'utils' should only be in Detectron_pytorch, but here in lib.core.config, how can I fix it?

seekingup commented 4 years ago

I'm using pytorch1_0 branch.

zyong812 commented 4 years ago

have you solved this problem? Thanks

shabnamsadegh commented 4 years ago

probably there is problem with installing(make) detectron. It is not the best solution but my problem solved when added detectron/lib to PATH.