mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-01-26 19:29:54 +00:00
refactor: refactor some functions
This commit is contained in:
@@ -28,3 +28,7 @@ def get_i(p) -> int:
|
||||
bs = p.batch_size
|
||||
i = p.batch_index
|
||||
return it * bs + i
|
||||
|
||||
|
||||
def is_skip_img2img(p) -> bool:
|
||||
return getattr(p, "_ad_skip_img2img", False)
|
||||
|
||||
Reference in New Issue
Block a user