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

Excuse me, Can you answer me some questions about "--load_size" and "--old_size", please ? #89

Open
little-misfit opened this issue Dec 22, 2021 · 0 comments

Comments

@little-misfit
Copy link

I have some question about "--load_size" and "--old_size" which are in the "base_options.py":

parser.add_argument('--old_size', type=int, default=(256,256), help='Scale images to this size. The final image will be cropped to --
crop_size.')
parser.add_argument('--load_size', type=int, default=1024, help='Scale images to this size. The final image will be cropped to --
crop_size.')

What's the difference between the two? What do they mean?At first,I think the “--load_size" is used to reize the input_image. Because I have found the "--load_size" in "base_dataset.py"

if isinstance(opt.load_size, int):
self.load_size = (opt.load_size, opt.load_size)
P1_img = F.resize(P1_img, self.load_size)
P2_img = F.resize(P2_img, self.load_size)

But the input_image's size should be 256256, not the load_size =10241024. So i feel confused. Could you please answer my question?And tell me the correct meaning of ”--load_size" and "--old_size" ?
Thanks for your reading, best wishes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant