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

What is the input image resolution of different models in the Detectron2 Model Zoo? #3461

Closed
melodjia opened this issue Sep 7, 2021 · 5 comments
Labels
documentation Problems about existing documentation or comments

Comments

@melodjia
Copy link

melodjia commented Sep 7, 2021

What is the input image resolution (image size) of different models in the Detectron2 Model Zoo? For example, when using an image with a 4K resolution as input, to what size does it transform, for example, in the R50-FPN model or another model? Where can I find this information?

@melodjia melodjia added the documentation Problems about existing documentation or comments label Sep 7, 2021
@AmitAilianiSDC

This comment has been minimized.

@sukjunhwang
Copy link
Contributor

Unless changes from the default config file (detectron2/config/defaults.py) are noted, the default test pipeline resizes the input images with the parameters below.

_C.INPUT.MIN_SIZE_TEST = 800
_C.INPUT.MAX_SIZE_TEST = 1333

Please refer to the implementation of ResizeShortestEdge in detectron2/data/transforms/augmentation_impl.py to see how the images get transformed with the parameters.

@melodjia
Copy link
Author

melodjia commented Sep 8, 2021

Если не будут отмечены изменения из файла конфигурации по умолчанию (detectron2/config/defaults.py), тестовый конвейер по умолчанию изменяет размер входных образов с параметрами ниже.

_C.INPUT.MIN_SIZE_TEST = 800
_C.INPUT.MAX_SIZE_TEST = 1333

Пожалуйста, ознакомьтесь с реализацией **ResizeShortestEdge **в detectron2/data/transforms/augmentation_impl.py, чтобы узнать, как изображения трансформируются с помощью параметров.

You did not understand me. Different pre-trained models have different input sizes because already have a architecture defined. Image resolution must match the input size of the pre-trained. My question is: What is the input image resolution of different models in the Detectron2 Model Zoo?

@ppwwyyxx
Copy link
Contributor

ppwwyyxx commented Sep 9, 2021

Image resolution must match the input size of the pre-trained.

No. You can use any image resolution that you think is reasonable for any models in detectron2 model zoo.

The default resolution that we use is answered above by #3461 (comment)

@ppwwyyxx ppwwyyxx closed this as completed Sep 9, 2021
@mahilaMoghadami
Copy link

Unless changes from the default config file (detectron2/config/defaults.py) are noted, the default test pipeline resizes the input images with the parameters below.

_C.INPUT.MIN_SIZE_TEST = 800
_C.INPUT.MAX_SIZE_TEST = 1333

Please refer to the implementation of ResizeShortestEdge in detectron2/data/transforms/augmentation_impl.py to see how the images get transformed with the parameters.

hello
you mean that for image with size (900*900), which resizing is done in detectrone2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Problems about existing documentation or comments
Projects
None yet
Development

No branches or pull requests

5 participants