mirror of
https://github.com/Coyote-A/ultimate-upscale-for-automatic1111.git
synced 2026-05-01 03:31:21 +00:00
add tile setup when fix start
This commit is contained in:
@@ -169,7 +169,7 @@ class USDURedraw():
|
|||||||
p.width = image.width
|
p.width = image.width
|
||||||
p.height = image.height
|
p.height = image.height
|
||||||
self.initial_info = processed.infotext(p, 0)
|
self.initial_info = processed.infotext(p, 0)
|
||||||
|
|
||||||
return image
|
return image
|
||||||
|
|
||||||
def chess_process(self, p, image, rows, cols):
|
def chess_process(self, p, image, rows, cols):
|
||||||
@@ -232,8 +232,15 @@ class USDURedraw():
|
|||||||
|
|
||||||
class USDUSeamsFix():
|
class USDUSeamsFix():
|
||||||
|
|
||||||
def half_tile_process(self, p, image, rows, cols):
|
def init_draw(self, p):
|
||||||
self.initial_info = None
|
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")
|
gradient = Image.linear_gradient("L")
|
||||||
row_gradient = Image.new("L", (self.tile_size, self.tile_size), "black")
|
row_gradient = Image.new("L", (self.tile_size, self.tile_size), "black")
|
||||||
row_gradient.paste(gradient.resize(
|
row_gradient.paste(gradient.resize(
|
||||||
@@ -291,6 +298,9 @@ class USDUSeamsFix():
|
|||||||
return image
|
return image
|
||||||
|
|
||||||
def band_pass_process(self, p, image, cols, rows):
|
def band_pass_process(self, p, image, cols, rows):
|
||||||
|
|
||||||
|
self.init_draw(p)
|
||||||
|
|
||||||
p.denoising_strength = self.denoise
|
p.denoising_strength = self.denoise
|
||||||
p.mask_blur = 0
|
p.mask_blur = 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user