|
20 | 20 | ''' parser configs '''
|
21 | 21 | args = parser.parse_args()
|
22 | 22 |
|
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 |
44 | 23 | psnr = []
|
45 | 24 | ssim = []
|
46 | 25 | 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 | 36 | f'PSNR: {psnr}\n',
|
58 | 37 | f'SSIM: {ssim}\n',
|
59 | 38 | )
|
60 |
| -<<<<<<< HEAD |
61 |
| -======= |
62 |
| ->>>>>>> ea6fb03699555768d2adcb4bc12908f82098912d |
63 |
| ->>>>>>> a13ebef0541ec6fe26f52d5598a109d848a51b9c |
64 | 39 | fid_score = fid.compute_fid(args.src, args.dst)
|
65 | 40 | is_mean, is_std = inception_score(
|
66 | 41 | BaseDataset(args.dst),
|
|
73 | 48 | f'FID: {fid_score}\n',
|
74 | 49 | f'IS: {is_mean} {is_std}\n',
|
75 | 50 | )
|
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