-
Notifications
You must be signed in to change notification settings - Fork 4
/
visualizer.py
26 lines (22 loc) · 1.1 KB
/
visualizer.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from src.data_processing.metric_inspection import inspect
# Use this visualizer to inspect images and their associated metrics.
# Modify the configuration dictionary to change experiments.
# source (str): path to input real source images.
# target (str): path to expected real target images.
# fake (str): path to generated fake images.
# stats_file (str): file containing the statistics for the specified source,
# target and fake paths. Must have been generated with the
# --metrics option from the main.py file.
# stats (list[str]): list of statistics to inspect. Available ones are:
# ["ssim", "fsim", "wasserstein", "hellinger",
# "kullback_leibler", "bhattacharyya"]
source = 'data/paired/images_a'
target = 'data/paired/images_b'
fake = 'results/images/all_fakes/paired_he2mt'
conf = {"source": source,
"target": target,
"fake": fake,
"stats_file": "results/statistics/paired_H_E_all_fakes.csv",
"stats": ["ssim", "fsim", "wasserstein"]}
if __name__ == '__main__':
inspect(**conf)