Skip to content

Commit 8e73b60

Browse files
authored
Update eval.py
1 parent 9eecb09 commit 8e73b60

File tree

1 file changed

+0
-75
lines changed

1 file changed

+0
-75
lines changed

evaluation/eval.py

-75
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,6 @@
2020
''' parser configs '''
2121
args = parser.parse_args()
2222

23-
<<<<<<< HEAD
24-
=======
25-
<<<<<<< HEAD
26-
# psnr = []
27-
# ssim = []
28-
# for gt_path, out_path in track(zip(glob.glob(os.path.join(args.src, "*")), glob.glob(os.path.join(args.dst, "*"))), total=685):
29-
# gt = np.array(Image.open(gt_path))
30-
# out = np.array(Image.open(out_path))
31-
# _psnr = compare_psnr(gt, out)
32-
# _ssim = ssim = compare_ssim(
33-
# gt, out, multichannel=True, gaussian_weights=True, use_sample_covariance=False, sigma=1.5)
34-
# psnr += [_psnr]
35-
# ssim += [_ssim]
36-
# psnr = sum(psnr)/len(psnr)
37-
# ssim = sum(ssim)/len(ssim)
38-
# print(
39-
# f'PSNR: {psnr}\n',
40-
# f'SSIM: {ssim}\n',
41-
# )
42-
=======
43-
>>>>>>> a13ebef0541ec6fe26f52d5598a109d848a51b9c
4423
psnr = []
4524
ssim = []
4625
for gt_path, out_path in track(zip(glob.glob(os.path.join(args.src, "*")), glob.glob(os.path.join(args.dst, "*"))), total=685):
@@ -57,10 +36,6 @@
5736
f'PSNR: {psnr}\n',
5837
f'SSIM: {ssim}\n',
5938
)
60-
<<<<<<< HEAD
61-
=======
62-
>>>>>>> ea6fb03699555768d2adcb4bc12908f82098912d
63-
>>>>>>> a13ebef0541ec6fe26f52d5598a109d848a51b9c
6439
fid_score = fid.compute_fid(args.src, args.dst)
6540
is_mean, is_std = inception_score(
6641
BaseDataset(args.dst),
@@ -73,53 +48,3 @@
7348
f'FID: {fid_score}\n',
7449
f'IS: {is_mean} {is_std}\n',
7550
)
76-
77-
"""
78-
1. Palette-single-v1.0[epoch=9000]
79-
- ↓PSNR: 14.62888054092963
80-
- ↑SSIM: 0.3244409937711537
81-
- ↑FID: 103.76912140940459
82-
- ↑IS: 3.008023500263284 0.37180917089147886
83-
2. Palette-single-v2.0[epoch=9000]
84-
- ↑PSNR: 9.25222585999201
85-
- ↑SSIM: 0.44265318616227906
86-
- ↓FID: 153.20687384326067
87-
- ↑IS: 2.8962933749979887 0.23164383408662623
88-
3. PMAA-single[训练100个epoch]
89-
- ↑PSNR:
90-
- ↑SSIM:
91-
- ↓FID:
92-
- ↑IS:
93-
4. Palette-multiple[TODO]
94-
- ↑PSNR:
95-
- ↑SSIM:
96-
- ↓FID:
97-
- ↑IS:
98-
5. Palette-multiple[epoch=3000+dpm-solver]
99-
<<<<<<< HEAD
100-
=======
101-
<<<<<<< HEAD
102-
- PSNR: 12.076057469841748
103-
- SSIM: 0.6256649852628741
104-
6. Palette-multiple[epoch=4000+dpm-solver]
105-
PSNR: 12.070057176915736
106-
SSIM: 0.6076268317926176
107-
FID: 89.40558513039605
108-
IS: 2.6435228768332335 0.48625733502371776
109-
6. Palette-multiple[epoch=3000+ddim1000]
110-
- PSNR: 11.962246446296197
111-
- SSIM: 0.6039557910557187
112-
=======
113-
>>>>>>> a13ebef0541ec6fe26f52d5598a109d848a51b9c
114-
- ↑PSNR: 12.076057469841748
115-
- ↑SSIM: 0.6256649852628741
116-
- ↓FID:
117-
- ↑IS:
118-
6. Palette-multiple[epoch=3000+ddim1000]
119-
PSNR: 11.962246446296197
120-
SSIM: 0.6039557910557187
121-
<<<<<<< HEAD
122-
=======
123-
>>>>>>> ea6fb03699555768d2adcb4bc12908f82098912d
124-
>>>>>>> a13ebef0541ec6fe26f52d5598a109d848a51b9c
125-
"""

0 commit comments

Comments
 (0)