greatlog / DAN

This is an official implementation of Unfolding the Alternating Optimization for Blind Super Resolution
231 stars 41 forks source link

Image in greyscale : 1-Channel training and testing #39

Open RJhuboo opened 2 years ago

RJhuboo commented 2 years ago

Hello,

Thank you for this implementation. I would like to train DAN on my own dataset which is in greyscale. So I created a new yml file in options and I set color option to grey. However weight are still of the size [nbkernel, 3, kernelsize, kernelsize] instead of [nbkernel, 1, kernelsize, kernelsize]. Can't we change the number of channel of the weights ? and How ?

Thank you a lot.

greatlog commented 2 years ago

You need to change the architecture of DAN at the same time. When the Restorer and Estimator are created, you need to set in_nc=1