megvii-research / Iter-E2EDET

Official implementation of the paper "Progressive End-to-End Object Detection in Crowded Scenes"
MIT License
89 stars 8 forks source link

'mask_minimumWeightMatching' is not defined #4

Closed NingYuanLin closed 2 years ago

NingYuanLin commented 2 years ago

当我运行

 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.

yexiguafuqihao commented 2 years ago

fixed.

NingYuanLin commented 2 years ago

Thanks