'mask_minimumWeightMatching' is not defined
NingYuanLin opened this issue · comments
当我运行
python3 train_net.py --num-gpus 1 --config-file configs/50e.6h.500pro.ignore.yaml
时,我遇见了这样的错误:
File "/home/ning/code/python/Iter-E2EDET/projects/crowd-e2e-sparse-rcnn/models/detector.py", line 24, in <module>
from .matcher import build_matcher
File "/home/ning/code/python/Iter-E2EDET/projects/crowd-e2e-sparse-rcnn/models/matcher.py", line 22, in <module>
from utils.infrastructure import mask_minimumWeightMatching
ImportError: cannot import name 'mask_minimumWeightMatching' from 'utils.infrastructure' (/home/ning/code/python/Iter-E2EDET/utils/infrastructure.py)
问题出在:
from utils.infrastructure import mask_minimumWeightMatching
我查看了utils.infrastructure
这个文件,但是没在里面看到mask_minimumWeightMatching
这个函数。
Hi,guys.
When i run
python3 train_net.py --num-gpus 1 --config-file configs/50e.6h.500pro.ignore.yaml
I meet this error:
File "/home/ning/code/python/Iter-E2EDET/projects/crowd-e2e-sparse-rcnn/models/detector.py", line 24, in <module>
from .matcher import build_matcher
File "/home/ning/code/python/Iter-E2EDET/projects/crowd-e2e-sparse-rcnn/models/matcher.py", line 22, in <module>
from utils.infrastructure import mask_minimumWeightMatching
ImportError: cannot import name 'mask_minimumWeightMatching' from 'utils.infrastructure' (/home/ning/code/python/Iter-E2EDET/utils/infrastructure.py)
The problem occurs from
from utils.infrastructure import mask_minimumWeightMatching
I carefully looked at the file utils.infrastructure
, but i did't see the function of mask_minimumWeightMatching
in this file.
fixed.
Thanks