- Python 3.6
- PyTorch
- glob
- numpy
- pillow
- tqdm
- tensorboardx
- PIL
- basicsr
Train_SPLUT_L/M/S.py
: the code for training SPLUTTransfer_SPLUT_L/M/S.py
: the code for transferring mapping modules to LUTsInference_SPLUT_L/M/S.py
: the code for testing SPLUT
- Prepare folders of
./log
and./transfer
- Prepare DIV2K training images in
./train
- HR images:
./train/DIV2K_train_HR/*.png
- LR images:
./train/DIV2K_train_LR_bicubic/X4/*.png
-
Prepare LR/HR images in
./val
-
Run
python Train_SPLUT_L/M/S.py
-
Checkpoints used in our paper have been saved in
./checkpoint
- Training log will be generated in
./log
.
-
Run
python Transfer_SPLUT_L/M/S.py
-
The resulting LUT will be saved in the folder of
./transfer/
- The Set5 LR/HR images for testing are already included in
./test_dataset
. The users can also evaluate other images. - Run
python Inference_SPLUT_L/M/S.py