input size #1135
-
my images are 288 288 but i'm using an input size of 32 32 and the training scripts works fine! So does the scripts automatically resize the image? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The images are automatically resized - both during training, validation, and inference. The To follow the logic on where this resizing happens/how it is created, you should look into create_loader, which is used in both |
Beta Was this translation helpful? Give feedback.
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
, andinference.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
)…