soumith / imagenet-multiGPU.torch

an imagenet example in torch.
BSD 2-Clause "Simplified" License
401 stars 158 forks source link

Allows for models with different input sizes #26

Closed pedropgusmao closed 8 years ago

pedropgusmao commented 8 years ago

-Includes information for image size and crop size inside each model. This allows for creating models with different input sizes.

-Includes the same options on opts.lua file to keep backward compatibility for models created before this change. This also allows for the use of existing models that do not carry their input sizes but do expect values different from 256 and samples of 224.

-Information from model is copied to opt so as to keep opts.lua and model.lua loosely coupled.

soumith commented 8 years ago

Thank you!