Home

Awesome

FCL-FAN

The implementation of FCL-GAN.

Dependencies

Datasets

Usage

Prepare dataset:

Please ensure that the data organization matches the code format.

Train:

`python train.py --data_source /path/to/dataset --experiment your_experiment_name

Test:

`python test.py --data_source /path/to/dataset --experiment your_experiment_name --model_name your_model_name --save_image

PSNR&SSIM

import cv2
from skimage.metrics import peak_signal_noise_ratio, structural_similarity

img1 = cv2.imread('img path1')
img2 = cv2.imread('img path2')
psnr = peak_signal_noise_ratio(img1, img2)
ssim = structural_similarity(img1, img2, multichannel=True, gaussian_weights=True, use_sample_covariance=False)