You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Download 'ITS(Indoor Training Set)' for training and testing, get "ITS_v2" dir
cd scripts
./pre_dataset_dehaze.sh
Model training
cd scripts
./build_dt.sh (./build_dt_dehaze.sh for dehaze filter)
./train_eval.sh (./train_eval_dehaze.sh for dehaze filter)
Model generation
cd scripts
./export_model.sh (./export_model_dehaze.sh for dehaze filter)
Benchmark results
Model
PSNR
SSIM
derain_CAN
23.30
70.62
Usage of derain filter
Native model: The native model file for derain filter in FFmpeg is models_for_test/derain/derain_RESCAN.model. It can be used in FFmpeg derain filter directly by the following command (The images in "testsets/derain_dataset" dir can be used as the test images):
Tensorflow model: The tensorflow model file for derain filter in FFmpeg is models_for_test/derain/derain_RESCAN.pb. To enable this model you need to install the TensorFlow for C library (see https://www.tensorflow.org/install/install_c) and configure FFmpeg with --enable-libtensorflow.
Native model: The native model file for dehaze filter in FFmpeg is models_for_test/dehaze/dehaze_RESCAN.model. It can be used in FFmpeg dehaze filter directly by the following command (The images in "testsets/dehaze_dataset" dir can be used as the test images):
Tensorflow model: The tensorflow model file for dehaze filter in FFmpeg is models_for_test/dehaze/dehaze_RESCAN.pb. To enable this model you need to install the TensorFlow for C library(see https://www.tensorflow.org/install/install_c) and configure FFmpeg with --enable-libtensorflow.