About the crop size for training and testing
See original GitHub issueclass BaseNet(nn.Module):
def __init__(self, nclass, backbone, aux, se_loss, dilated=True, norm_layer=None,
base_size=576, crop_size=608, mean=[.485, .456, .406],
std=[.229, .224, .225], root='~/.encoding/models'):
Previously, I noticed that you choose base_size=520, crop_size=480 and now you change them to base_size=576, crop_size=608.
However, I still have a concern about it, the 608 should be larger than the largest highth or width in your dataset, so we should increase this parameter if we are dealing with larger datasets.
Besides, I noticed that you mentioned that your MultiEvalModule only support single image evalution, but you also provide the batch size parameter, which is contradictory… I guess we can only set the batch size as 1 during testing phase.
def forward(self, image):
"""Mult-size Evaluation"""
# only single image is supported for evaluation
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Testing with different crop size than training #142 - GitHub
Hi, thanks for sharing the wonderful framework. I was wondering why you train with 224x224 input and test with a bigger size of...
Read more >Fixing the train-test resolution discrepancy - arXiv
Our strategy only requires to fine-tune two layers in order to compensate for the shift in statistics caused by the changing the crop...
Read more >Three cropping approaches for prediction. a 1-crop. b 10-crop ...
As shown in Fig. 5a, the 1-crop prediction approach only extracts the center patch of appropriate size such as 224 × 224 according...
Read more >A. Data Augmentation Details
The crop of random size (uniform from 0.08 to 1.0 in area) of the original size and a random aspect ratio (default: of...
Read more >Different image dimensions during training and testing time for ...
Here's my breakdown,. Post 1. Yes, this is the standard way to do things. If you have variable sized inputs you crop/pad/resize them...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Well, the author has carefully considered this case as this, which I just found. Just ignore my ignorance.
Well, it has been solved, which I just found. So there is no problem now.