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

the height of the picture is 256 and the width is 128 #1

Open
Shsanctury opened this issue Jan 29, 2021 · 2 comments
Open

the height of the picture is 256 and the width is 128 #1

Shsanctury opened this issue Jan 29, 2021 · 2 comments

Comments

@Shsanctury
Copy link

Hello, the height of the picture is 256 and the width is 128. It will report an error.What should I change in the code?

@leaderj1001
Copy link
Owner

leaderj1001 commented Jan 30, 2021

Thanks for comments !

Today, the code updated. You need to set a resolution parameters. Example below:

from model import Model

model = ResNet50(num_classes=1000, resolution=(128, 256))
x = torch.randn([2, 3, 128, 256])
print(model(x).size())

Thanks

@Shsanctury
Copy link
Author

really appreciate your help !

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

2 participants