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

How to get kernel for the real image dataset? #14

Open
omidbazgirTTU opened this issue Jul 2, 2020 · 8 comments
Open

How to get kernel for the real image dataset? #14

omidbazgirTTU opened this issue Jul 2, 2020 · 8 comments

Comments

@omidbazgirTTU
Copy link

Thanks for the nice work, and very well documentation.

I have some real low-resolution images without any ground-truth. I wanted to test your state-of-the-art MZSR model on that. I noticed that for testing as mention in the readme file I need "Ready for the input data (low-resolution) and corresponding kernel (kernel.mat file.)". I couldn't find any information neither in the paper nor in the repo regarding how to get the Kernel file. Could you please let me know what is the code for that? Did you use any other paper to compute the kernel? Thank you.

@zerodohero
Copy link

I have the same problem, and I can't use my own image to generate hyperresolution images, and I guarantee that gt is twice as much input as input. And I made the following mistakes when I was training.

Model Params: 225 K
==================== PRETRAINED MODEL Loading Succeeded ====================
==================== Reading Checkpoints ====================

**=================== Fail to find a Checkpoint ====================

==================== No model to load ======================================**
[*] Training Starts

Process finished with exit code -1073741819 (0xC0000005)

@liqilei
Copy link

liqilei commented Sep 12, 2020

Thanks for the nice work, and very well documentation.

I have some real low-resolution images without any ground-truth. I wanted to test your state-of-the-art MZSR model on that. I noticed that for testing as mention in the readme file I need "Ready for the input data (low-resolution) and corresponding kernel (kernel.mat file.)". I couldn't find any information neither in the paper nor in the repo regarding how to get the Kernel file. Could you please let me know what is the code for that? Did you use any other paper to compute the kernel? Thank you.

Hi, you can try https://github.com/sefibk/KernelGAN to estimate the kernel.

@liqilei
Copy link

liqilei commented Sep 12, 2020

I have the same problem, and I can't use my own image to generate hyperresolution images, and I guarantee that gt is twice as much input as input. And I made the following mistakes when I was training.

Model Params: 225 K
==================== PRETRAINED MODEL Loading Succeeded ====================
==================== Reading Checkpoints ====================

**=================== Fail to find a Checkpoint ====================

==================== No model to load ======================================**
[*] Training Starts

Process finished with exit code -1073741819 (0xC0000005)

I guess there is something wrong in the train_MZSR.tfrecord file. You may refer to MainSR to generate this file and try again.

@JWSoh
Copy link
Owner

JWSoh commented Sep 15, 2020

We have used kernel estimation algorithm based on
Pan et al. "Blind image deblurring using dark channel prior." CVPR 2016.
We have slightly modified for super-resolution.

Also, after we submit the paper, we have tried the recent algorithm KernelGAN,
Bell-Kligler et al. "Blind super-resolution kernel estimation using an internal-gan." NeurIPS. 2019.
which yields nice results.

@BassantTolba1234
Copy link

Dear Sir,
Amazing work ! Congratulation!!
please , I have a question.can you kindly provide me with the full path I should insert of checkpoint the trained large scale training model to be able to use it as a pre-trained to meta transfer training?
I'm waiting for your reply.
Thanks in advance

@BassantTolba1234
Copy link

Please @omidbazgirTTU I'm facing a problem when i load the pretrained model , specially when it reads the checkpoint
this is the error .. how did you kindly solve it please ??

NotFoundError (see above for traceback): Key MODEL/conv7/kernel/Adam_3 not found in checkpoint
[[Node: save/RestoreV2_69 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2_69/tensor_names, save/RestoreV2_69/shape_and_slices)]]

@BassantTolba1234
Copy link

Please @liqilei I'm facing a problem when i load the pretrained model , specially when it reads the checkpoint
this is the error .. how did you kindly solve it please ??

NotFoundError (see above for traceback): Key MODEL/conv7/kernel/Adam_3 not found in checkpoint
[[Node: save/RestoreV2_69 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2_69/tensor_names, save/RestoreV2_69/shape_and_slices)]]

@BassantTolba1234
Copy link

Please @JWSoh I'm facing a problem when i load the pretrained model , specially when it reads the checkpoint
this is the error .. how did you kindly solve it please ??

NotFoundError (see above for traceback): Key MODEL/conv7/kernel/Adam_3 not found in checkpoint
[[Node: save/RestoreV2_69 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2_69/tensor_names, save/RestoreV2_69/shape_and_slices)]]

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

5 participants