Open Techzist16 opened 2 years ago
Hi @TriB90, happy to help! Our training data has a folder structure like this:
DF2K/
bin/
train_bin_HR.pt
train_bin_LR_X2.pt
train_bin_LR_X3.pt
train_bin_LR_X4.pt
DF2K_HR/
0001.png
...
DF2K_LR_bicubic/
x2/
x3/
x4/
The folders DF2K_HR
and DF2K_LR_bicubic
contain high-resolution and downsampled PNG images, respectively. When you run training, you need to specify the config DATASET.DATA_DIR = "DF2K"
. We usually save the images as a single binary file in bin/
and load them directly into memory to save I/O time. To use the binary files, set DATASET.DATA_EXT = "bin"
.
If this does not address your question, please let me know your data format, and we can discuss more.
@zudi-lin First, I want to try your pre-trained model on different test images. But I could not able to run it as it is not clearly written in Readme file how to run the test code. Please help me in this regard.
DATASET.DATA_EXT = "bin"
Not able to create the binary file. I have kept 18 HR images in 'rcan-it/ptsr/datasets/SR/BIX2X3X4/DF2K/DF2K_train_HR/' folder and their corresponding LR images in 'rcan-it/ptsr/datasets/SR/BIX2X3X4/DF2K/DF2K_train_LR_bicubic/X2' folder. But the error is shown below: `Total number of parameters: 15444667 Using Dataset(s): DF2K for training
/content/drive/MyDrive/rcan-it/ptsr/datasets/SR/BIX2X3X4/DF2K/bin/train_bin_HR.pt does not exist. Now making binary...
Bin pt file with name and image
Traceback (most recent call last):
File "main.py", line 135, in
Please help me to solve this issue @zudi-lin.
@TriB90 Guidance for training on a custom dataset is posted here: https://github.com/zudi-lin/rcan-it#custom_data
We need to train this model on our own dataset. Plesae help us this regard.