mirror of
https://github.com/lkwq007/stablediffusion-infinity.git
synced 2025-01-07 03:16:54 +08:00
Update selection_size
This commit is contained in:
parent
6e53498660
commit
d8e02ead01
2
app.py
2
app.py
@ -363,6 +363,8 @@ class StableDiffusionInpaint:
|
||||
process_height = height
|
||||
if resize_check:
|
||||
process_width, process_height = my_resize(width, height)
|
||||
process_width = process_width*8//8
|
||||
process_height = process_height*8//8
|
||||
extra_kwargs = {
|
||||
"num_inference_steps": step,
|
||||
"guidance_scale": guidance_scale,
|
||||
|
@ -332,12 +332,10 @@ class InfCanvas:
|
||||
|
||||
def refine_selection(self):
|
||||
h,w=self.selection_size_h,self.selection_size_w
|
||||
h=h//8*8
|
||||
w=w//8*8
|
||||
h=min(h,self.height)
|
||||
w=min(w,self.width)
|
||||
self.selection_size_h=h
|
||||
self.selection_size_w=w
|
||||
self.selection_size_h=h*8//8
|
||||
self.selection_size_w=w*8//8
|
||||
self.update_cursor(1,0)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user