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

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

Open
keerti-ds opened this issue Nov 29, 2021 · 0 comments
Open

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

keerti-ds opened this issue Nov 29, 2021 · 0 comments

Comments

@keerti-ds
Copy link

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

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