script on make_rcnn_inference #4643
Unanswered
gaosanyuan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I built an object detector model base on detectron2. When trying to script the model, I find something strange.
if using the detectron2.modeling.roi_heads.mask_head.make_rcnn_inference directly, the scripting is ok, but the scripting will be failed if I copy the make_rcnn_inference code to self package and the use it locally instead of the one from detectron2.
The error comes when I use the scipt model with different input, and located in this line: mask_probs_pred = mask_probs_pred.split(num_boxes_per_image, dim=0)
/usr/local/lib/python3.8/dist-packages/torch/_tensor.py(515): split
Ask for some suggestions, thanks.
Beta Was this translation helpful? Give feedback.
All reactions