mirror of
https://github.com/Coyote-A/ultimate-upscale-for-automatic1111.git
synced 2026-01-26 11:19:50 +00:00
Merge branch 'resolution-info-fix' into 'master'
add tile setup when fix start See merge request mirzam/ultimate-upscale-for-automatic1111!18
This commit is contained in:
@@ -169,7 +169,7 @@ class USDURedraw():
|
||||
p.width = image.width
|
||||
p.height = image.height
|
||||
self.initial_info = processed.infotext(p, 0)
|
||||
|
||||
|
||||
return image
|
||||
|
||||
def chess_process(self, p, image, rows, cols):
|
||||
@@ -232,8 +232,15 @@ class USDURedraw():
|
||||
|
||||
class USDUSeamsFix():
|
||||
|
||||
def half_tile_process(self, p, image, rows, cols):
|
||||
def init_draw(self, p):
|
||||
self.initial_info = None
|
||||
p.width = self.tile_size
|
||||
p.height = self.tile_size
|
||||
|
||||
def half_tile_process(self, p, image, rows, cols):
|
||||
|
||||
self.init_draw(p)
|
||||
|
||||
gradient = Image.linear_gradient("L")
|
||||
row_gradient = Image.new("L", (self.tile_size, self.tile_size), "black")
|
||||
row_gradient.paste(gradient.resize(
|
||||
@@ -291,6 +298,9 @@ class USDUSeamsFix():
|
||||
return image
|
||||
|
||||
def band_pass_process(self, p, image, cols, rows):
|
||||
|
||||
self.init_draw(p)
|
||||
|
||||
p.denoising_strength = self.denoise
|
||||
p.mask_blur = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user