mirror of
https://github.com/Coyote-A/ultimate-upscale-for-automatic1111.git
synced 2026-01-26 11:19:50 +00:00
fix tile size to avoid blur
This commit is contained in:
@@ -142,8 +142,8 @@ class USDURedraw():
|
||||
def init_draw(self, p, width, height):
|
||||
p.inpaint_full_res = True
|
||||
p.inpaint_full_res_padding = self.padding
|
||||
p.width = self.tile_size
|
||||
p.height = self.tile_size
|
||||
p.width = math.ceil((self.tile_size+self.padding) / 64) * 64
|
||||
p.height = math.ceil((self.tile_size+self.padding) / 64) * 64
|
||||
mask = Image.new("L", (width, height), "black")
|
||||
draw = ImageDraw.Draw(mask)
|
||||
return mask, draw
|
||||
@@ -238,8 +238,8 @@ class USDUSeamsFix():
|
||||
|
||||
def init_draw(self, p):
|
||||
self.initial_info = None
|
||||
p.width = self.tile_size
|
||||
p.height = self.tile_size
|
||||
p.width = math.ceil((self.tile_size+self.padding) / 64) * 64
|
||||
p.height = math.ceil((self.tile_size+self.padding) / 64) * 64
|
||||
|
||||
def half_tile_process(self, p, image, rows, cols):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user