Open Liampour opened 2 weeks ago
Please refer to https://github.com/rebeccaeexu/CIT-EC/blob/main/pretrained_models/Pretrained_model.md for download link.
Thank you for fast your help and fast reply!! After downloading the file and running the provided testing command another error appeared:
Traceback (most recent call last):
File "test.py", line 13, in
I have tried to provide the full path but the error still appears
/home/username/CIT-EC/datasets/MultiExposure_dataset/testing/expert_a_testing_set/
The directory contains a .jpg file
If I remove the final / from path name e.g.
/home/username/CIT-EC/datasets/MultiExposure_dataset/testing/expert_a_testing_set
I am getting the following error
Traceback (most recent call last):
File "test.py", line 13, in
Is it anything wrong about my python or torch version? I am using python 3.7 torch 1.8
Check the following lines to ensure the correct data reading https://github.com/rebeccaeexu/CIT-EC/blob/7d3af6b1358417e50d417ee914e8cbd23a9dc88a/ec/data/data_util.py#L24
lq_folder is /home/username/CIT-EC/datasets/MultiExposure_dataset/testing/INPUT_IMAGES_OVER (that is correct) lq_name is photoTest_input.jpg (that is correct) lq_path is /home/username/CIT-EC/datasets/MultiExposure_dataset/testing/INPUT_IMAGES_OVER/photoTest_input.jpg.JPG
the .JPG is not correct
Does the inputted image need to have a name with a specific format?
Modify https://github.com/rebeccaeexu/CIT-EC/blob/7d3af6b1358417e50d417ee914e8cbd23a9dc88a/ec/data/data_util.py#L25 lq_path = osp.join(lq_folder, lq_name + '.jpg')
I did it and a new error appeared. it seems to have stripped the "_input" from the filename and is looking for a new file in the same folder with a different name. The file that is searching for does not exist. There is only one image in the folder (image name: photoTest_input.jpg).
Traceback (most recent call last):
File "test.py", line 13, in
I don't know the format of your file name, you can modify the code mentioned above according to your image name according to your file name. (for example, remove the .rstrip('_') part)
I used the original code without any modification but I changed the files in expert_a_testing_set and INPUT_IMAGES_OVER and the code executed without any errors. Here is the solution:
in datasets/MultiExposure_dataset/testing/expert_a_testing_set
needs to be imported an .jpg file with a specific name format e.g. a2103-dgw_054.jpg
in datasets/MultiExposure_dataset/testing/INPUT_IMAGES_OVER
needs to be imported 5 .JPG images with a name of a specific form that relates them to each other e.g.
a2103-dgw_054_0.JPG
a2103-dgw_054_N1.5.JPG
a2103-dgw_054_N1.JPG
a2103-dgw_054_P1.5.JPG
a2103-dgw_054_P1.JPG
Note: The image names between expert_a_testing_set and INPUT_IMAGES_OVER files are strictly related.
One last question the psnr and ssim results are displayed in terminal but I can't find the path where the resulted new images are saved. Am I missing something? Any suggestions on that?
Edit Answering the Question: The path can be found CIT-EC/ec/data/data_util.py
line 97
Is there any link that I can download the pretrained model??