-
Notifications
You must be signed in to change notification settings - Fork 82
ImportError: cannot import name 'FastRCNNOutputs' #44
Comments
Thanks for reporting this issue. The reason is detectron2 change its codebase, while ours is older one. A simple fix is to add an older version of the FastRCNNOutputs class back to the file.
I will rebase unbiased teacher and adapt to the newer version detectron2 recently. Thanks! |
Thank you so much for you answer my question. from detectron2.layers import ShapeSpec, batched_nms, cat, cross_entropy, nonzero_tuple
from fvcore.nn import giou_loss, smooth_l1_loss
from detectron2.modeling.box_regression import Box2BoxTransform
from detectron2.structures import Boxes |
Another option could be using I installed version v0.5 and no longer get the error. |
This is the problem of detecron2 version, I solve it by installing suitable version in https://github.com/facebookresearch/detectron2/releases |
The detectron2.modeling.roi_heads.fast_rcnn have no FastRCNNOutputs for the ubteacher/modeling/roi_heads/fast_rcnn.py
ImportError: cannot import name 'FastRCNNOutputs'
Can you help me to resolve this question? Thank you so much!
The text was updated successfully, but these errors were encountered: