assafshocher / ZSSR

"Zero-Shot" Super-Resolution using Deep Internal Learning
Other
401 stars 102 forks source link

xterm and crop_size #40

Open vsantjr opened 2 years ago

vsantjr commented 2 years ago

Hello,

Congratulations for your nice work. Just two questions.

1.) My dataset is composed of 128 x 128 images. I am wondering whether I need to change the default crop_size from 128 to some smaller value (e.g. 64 x 64). 2.) I am not able to run the all gpu config because I do not have xterm installed. I am running on RedHat Linux. And I am not allowed to install xterm. Hence, this line:

os.system("xterm -hold -e " + conf.python_path +
                      " %s/run_ZSSR_single_input.py '%s' '%s' '%s' '%s' '%s' '%s' alias python &"
                      % (local_dir, input_file, ground_truth_file, kernel_files_str, cur_gpu, conf_name, res_dir))

gives this error: sh: xterm: command not found.

Can you tell me how to solve this?

Thank you.

assafshocher commented 2 years ago

Hi, thanks! 1.) I think you shouldn't, but you can always just test both ways. 2.) Sorry, this is outdated (2017!), you should probably run the run_zssr_signle_input.py instead of that. Good luck!

vsantjr commented 2 years ago

Thank you for your answer. I am running with a 64 x 64 crop size in order to see I get better results.

Regarding the kernels, can you provide the MATLAB code that generates them?

Best Regards.