Skip to content

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

@kulkarnikeerti

Description

@kulkarnikeerti

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions