Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: expected a Variable argument, but got list #147

Open
kulkarnikeerti opened this issue Feb 3, 2022 · 0 comments
Open

RuntimeError: expected a Variable argument, but got list #147

kulkarnikeerti opened this issue Feb 3, 2022 · 0 comments

Comments

@kulkarnikeerti
Copy link

Hi,

I have been facing this issue from two days, I tried to figure that out but could not come up with a solution. I would really appreciate if someone can guide me where I am going wrong.

The below line calls the RCNN with a list and rois as input.

rcnn_output = self.rcnn([fpn_p2, fpn_p3, fpn_p4, fpn_p5], rois)

RCNN class in turns calls the roi_pooling and which calls ROIAlignFunction. So the problem is that, the first input from RCNN is the list which is forwarded to all the following function calls. However the ROIAlignFunction expects the first input as variable not as a list (Also extracts its shape in ROIAlignFunction class for further use, which throws an error with list as in input)

Can someone guide me if I have missed out something? Or if this list is converted to a variable somewhere on the way? Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant