adaptive_teacher
adaptive_teacher copied to clipboard
ImportError: cannot import name 'FastRCNNOutputs' from 'detectron2.modeling.roi_heads.fast_rcnn'
There is no FastRCNNOutputs in the detectron installed according to the installation steps, did I install it wrong?
I think if you install the detectron2 correctly, you should be able to load the library.
Hi @yujheli, I'm also faced with the same problem. In the https://github.com/facebookresearch/detectron2/commit/11528ce083dc9ff83ee3a8f9086a1ef54d2a402f, the class FastRCNNOutputs
is removed from detectron2.modeling.roi_heads.fast_rcnn
So in the the latest version, detectron2 doesn't have this class. I think it would be better if you could consider to provide the version of detectron2 on which this repo is based.
Install previous version solved this problem for me:
python -m pip install 'git+https://github.com/facebookresearch/[email protected]'
I just found the version of detectron2 I was using is v0.3. I will update the readme.
The issue seems to be solved here in a similar project
This is the problem of detecron2 version, I solve it by installing suitable version in https://github.com/facebookresearch/detectron2/releases