Skip to content

TypeError: new(): invalid data type 'str' #145

@keerti-ds

Description

@keerti-ds

Hi,

I would like to get the summary of the model using pytorchsummary. I used below code for the same in upsnet_end2end_train.py

input_shape = [1, 3, 224, 224], summary(train_model, input_shape)

But this throws me an error as below
File "../upsnet/models/resnet_upsnet.py", line 90, in forward res2, res3, res4, res5 = self.resnet_backbone(data['data']) TypeError: new(): invalid data type 'str'

res2, res3, res4, res5 = self.resnet_backbone(data['data'])

If someone can guide me what could be the issue? 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