question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

About the crop size for training and testing

See original GitHub issue
class 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:open
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
huanghoujingcommented, Jan 19, 2019

Well, the author has carefully considered this case as this, which I just found. Just ignore my ignorance.

1reaction
huanghoujingcommented, Jan 16, 2019

Well, it has been solved, which I just found. So there is no problem now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found