codeslake / IFAN

[CVPR 2021] Official PyTorch Implementation for "Iterative Filter Adaptive Network for Single Image Defocus Deblurring"
GNU Affero General Public License v3.0
225 stars 39 forks source link

training the code with pretrained weights #6

Closed xianrui-luo closed 2 years ago

xianrui-luo commented 2 years ago

Hi, I would like to ask about how to load the pretrained weights and start training without interfering other process?

codeslake commented 2 years ago

Hi, are you trying to resume training? or to start the training with pretrained weights with a new learning rate scheduling?

xianrui-luo commented 2 years ago

start the training with pretrained weights with a new learning rate scheduling

codeslake commented 2 years ago

I see. The current code does not provide the functionality at the moment. I will spend some of my time adding the functionality. Do your pretrained weights include weights for the reblurring network also?

xianrui-luo commented 2 years ago

I think so. And i have encountered a warning while training. It said "Warning! No positional inputs found for a module, assuming batch size is 1." But I have set the batchsize as your training details. I wonder what happened?

image

codeslake commented 2 years ago

Hi, I've just pushed some commits. Pull the repo and try the following command:

xianrui-luo commented 2 years ago

Thank you for your help! I will try it now.

makeyyp commented 1 year ago

I am a beginner and when replicating your code this error occurred.The dataset was placed as required。Can you help me image