Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

ImportError: cannot import name 'FastRCNNOutputs' from 'detectron2.modeling.roi_heads.fast_rcnn' #3

Closed
drickzsy opened this issue May 5, 2022 · 6 comments

Comments

@drickzsy
Copy link

drickzsy commented May 5, 2022

There is no FastRCNNOutputs in the detectron installed according to the installation steps, did I install it wrong?

@yujheli
Copy link
Contributor

yujheli commented May 5, 2022

I think if you install the detectron2 correctly, you should be able to load the library.

@krumo
Copy link

krumo commented May 10, 2022

Hi @yujheli, I'm also faced with the same problem. In the facebookresearch/detectron2@11528ce, 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.

@litingfeng
Copy link

Install previous version solved this problem for me:
python -m pip install 'git+https://github.com/facebookresearch/[email protected]'

@yujheli
Copy link
Contributor

yujheli commented May 10, 2022

I just found the version of detectron2 I was using is v0.3. I will update the readme.

@darkhan-s
Copy link

darkhan-s commented May 13, 2022

The issue seems to be solved here in a similar project

@leoliu37
Copy link

This is the problem of detecron2 version, I solve it by installing suitable version in https://github.com/facebookresearch/detectron2/releases

@yujheli yujheli closed this as completed Sep 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants