浏览代码

add "from" resolution for hires fix to be less confusing.

AUTOMATIC 2 年之前
父节点
当前提交
fdfce47110
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/ui.py

+ 1 - 1
modules/ui.py

@@ -267,7 +267,7 @@ def calc_resolution_hires(enable, width, height, hr_scale, hr_resize_x, hr_resiz
     with devices.autocast():
         p.init([""], [0], [0])
 
-    return f"resize to: <span class='resolution'>{p.hr_upscale_to_x}x{p.hr_upscale_to_y}</span>"
+    return f"resize: from <span class='resolution'>{width}x{height}</span> to <span class='resolution'>{p.hr_upscale_to_x}x{p.hr_upscale_to_y}</span>"
 
 
 def apply_styles(prompt, prompt_neg, style1_name, style2_name):