Skip to content

input size #1135

Feb 9, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

The images are automatically resized - both during training, validation, and inference. The --input-size argument is the input size of the models, and not the size of the raw images (which might cause the confusion). Thus, the images are resized before they are passed on to the model.

To follow the logic on where this resizing happens/how it is created, you should look into create_loader, which is used in both train.py, validate.py, and inference.py to create the loaders. Specifically, note how this function uses create_transform to create the transformations that are applied to the images. Depending on the exact arguments you use (whether you are training or not, whether you use --no-aug)…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ireneb612
Comment options

@TorbenSDJohansen
Comment options

@ireneb612
Comment options

Answer selected by ireneb612
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants