megvii-model / HINet

Other
367 stars 62 forks source link

FileNotFoundError: [Errno 2] No such file or directory: './datasets/SIDD/val/input_crops.lmdb/meta_info.txt' #31

Closed leefly072 closed 3 years ago

leefly072 commented 3 years ago

This is nice work and thanks for your share. however, when I train the model there have some issues, in the val dataset. I found you utilize the VAlidationNoisyBlocksSrgb.mat to validation the model. but there have some mistakes when I run the program. can you help me to solve this problem? thank you very much.

Rookielike commented 3 years ago

What mistakes did you meet? You can show the error message so that I can help you better

leefly072 commented 3 years ago

When I try to train the model and set the dataset as followed: image but there has mistake for "FileNotFoundError: [Errno 2] No such file or directory: './datasets/SIDD/val/input_crops.lmdb/meta_info.txt'"~ Can you tell me how did you make the val dataset? Thanks very much

Rookielike commented 3 years ago

Did you run 'python3 scripts/data_preparation/sidd.py' to prepare the data

leefly072 commented 3 years ago

yep, i read the code found it seems to generate the train datasets without the val dataset. Did I miss something? image image

Rookielike commented 3 years ago

create_lmdb_for_SIDD() will generate val dataset https://github.com/megvii-model/HINet/blob/e064148e9f488ffa761183f6d86874176221bbf3/basicsr/utils/create_lmdb.py#L90 image

leefly072 commented 3 years ago

Thanks very much, I will try to run the model "scripts/data_preparation/sidd.py'" again. And thanks for your reply!

WeiLong-Zh commented 2 years ago

have you sloved this problem?

Pompeyhui commented 2 years ago

原因是啥我不懂, 我的解决方案是在 [HINet/basicsr/utils/create_lmdb.py] 添加 import os import scipy.io as scio from tqdm import tqdm import cv2