XuecaiHu / Meta-SR-Pytorch

Meta-SR: A Magnification-Arbitrary Network for Super-Resolution (CVPR2019)
551 stars 121 forks source link

about the meaning of get_model function #38

Closed ZiaZhang closed 3 years ago

ZiaZhang commented 4 years ago

Hello, I don't figure out get_model(self) function in model/init.py, and can you explain what does "self.model.module" mean? Because I didn't find that the Class metardn (self.model) have the module function. Looking forward to your reply and thanks!

XuecaiHu commented 4 years ago

we use self.model.module to load the model when we use the multi-gpus to run the models. It is a function in pytorch. I donot redefine it.