Closed lhyfst closed 2 years ago
Another problem is after I run src/run/prepare_dataset.py, I find SADRNet/data/dataset/train_blocks is generated, but it is empty. Is it correct? Or I missed something?
I was able to generate train_blocks by following these steps.
comment out 12-17. https://github.com/MCG-NJU/SADRNet/blob/a5e6fac904c66711a6e9457fc603bd7b6d348d21/src/run/prepare_dataset.py#L12-L17
run and delete all_image_data.pkl in 300W_LP_crop and AFLW2000_crop.(Because the pkl file created by the multi_process is not correct)
Undo Step 1 and comment out 7-9. https://github.com/MCG-NJU/SADRNet/blob/a5e6fac904c66711a6e9457fc603bd7b6d348d21/src/run/prepare_dataset.py#L7-L9
Change multiSaveBlock function to add all_data as an argument.multiSaveBlock(0, NUM_BLOCKS, all_data)
https://github.com/MCG-NJU/SADRNet/blob/a5e6fac904c66711a6e9457fc603bd7b6d348d21/src/run/prepare_dataset.py#L17
run. (By deleting pkl, the correct pkl will be generated again here. https://github.com/MCG-NJU/SADRNet/blob/a5e6fac904c66711a6e9457fc603bd7b6d348d21/src/dataset/dataloader.py#L87-L101)
My question is what is Extra_LP? Is it a dataset? It is not mentioned in the readme.md nor the paper. And where should I get the Extra_LP/all_image_data.pkl ?
I'm wondering about this too.
ExtraLP is the dataset of 5,000 generated samples mentioned in Implementation Details in the paper. I'm really sorry that I can only find an early version of the code https://github.com/reshow/SDRN/blob/master/createdata.py but it doesn't match the current repo. To run this repo correctly, you can simply remove ExtraLP from the config file config_SADRN_v2.py.
When I run src/run/prepare_dataset.py, I encounter an error:
FileNotFoundError: [Errno 2] No such file or directory: 'data/dataset/Extra_LP/all_image_data.pkl'
My question is what is Extra_LP? Is it a dataset? It is not mentioned in the readme.md nor the paper. And where should I get the Extra_LP/all_image_data.pkl ?
Another problem is after I run src/run/prepare_dataset.py, I find SADRNet/data/dataset/train_blocks is generated, but it is empty. Is it correct? Or I missed something?