|
#!/bin/bash |
|
|
|
|
|
full_patch_source=../APISR_dataset |
|
degrade_hr_dataset_path=datasets/train_hr |
|
train_hr_dataset_path=datasets/train_hr_enhanced |
|
|
|
|
|
|
|
tmp_dir_720p=APISR_720p_tmp |
|
tmp_dir_720p_4xcrop=APISR_720p_crop_tmp |
|
tmp_enhanced_dir=APISR_sharpen_tmp |
|
|
|
|
|
|
|
python tools/720P_resize.py -i $full_patch_source -o $tmp_dir_720p |
|
python tools/4x_crop.py -i $tmp_dir_720p -o $tmp_dir_720p_4xcrop |
|
python scripts/anime_strong_usm.py -i $tmp_dir_720p_4xcrop -o $tmp_enhanced_dir --outlier_threshold 32 |
|
|
|
|
|
|
|
python scripts/crop_images.py -i $tmp_dir_720p_4xcrop --crop_size 256 -o $degrade_hr_dataset_path |
|
python scripts/crop_images.py -i $tmp_enhanced_dir --crop_size 256 -o $train_hr_dataset_path |
|
|
|
|
|
|
|
rm -rf $tmp_dir_720p |
|
rm -rf $tmp_dir_720p_4xcrop |
|
rm -rf $tmp_enhanced_dir |