mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-31 04:42:09 -08:00
lint
This commit is contained in:
parent
6577e063d1
commit
f113474a6e
2 changed files with 0 additions and 9 deletions
|
|
@ -29,14 +29,10 @@ class ScriptPostprocessingCodeFormer(scripts_postprocessing.ScriptPostprocessing
|
|||
res = Image.fromarray(restored_img)
|
||||
|
||||
if codeformer_visibility < 1.0:
|
||||
# Ensure consistent size
|
||||
if pp.image.size != res.size:
|
||||
res = res.resize(pp.image.size)
|
||||
|
||||
# Ensure consistent mode
|
||||
if pp.image.mode != res.mode:
|
||||
res = res.convert(pp.image.mode)
|
||||
|
||||
res = Image.blend(pp.image, res, codeformer_visibility)
|
||||
|
||||
pp.image = res
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue