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

How does model.forward process images internally? Why doesn't it process images with the resized 512 resolution? #41

Open
YUANMU227 opened this issue Nov 1, 2024 · 0 comments

Comments

@YUANMU227
Copy link

image

In demo_panoseg.py, images have been resized to 512, but weight and height are still the size of the original image. So if the original image is very large, the memory will explode directly.

How does model.forward process images internally? Since it has been resized, why doesn't it perform inference on the size of 512? Why do we need to input the size of the original image?

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