Skip to content

Commit

Permalink
Fixed small ytpo in autotune (printing all PSNR)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyu committed Nov 11, 2021
1 parent 7578bec commit b54fe38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opt/autotune.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,13 @@ def recursive_replace(data, variables):
if path.isfile(ssim_file_path):
with open(ssim_file_path, 'r') as f:
ssim = float(f.read())
ssim_txt = f'{psnr:.10f}'
ssim_txt = f'{ssim:.10f}'
else:
ssim_txt = 'ERR'
if path.isfile(lpips_file_path):
with open(lpips_file_path, 'r') as f:
lpips = float(f.read())
lpips_txt = f'{psnr:.10f}'
lpips_txt = f'{lpips:.10f}'
else:
lpips_txt = 'ERR'
line = f'{path.basename(train_dir.rstrip("/"))}\t{psnr_txt}\t{ssim_txt}\t{lpips_txt}\n'
Expand Down

0 comments on commit b54fe38

Please sign in to comment.