refactor: refactor some functions

This commit is contained in:
Dowon
2024-05-15 22:13:06 +09:00
parent e05104a220
commit f12f66c298
4 changed files with 36 additions and 5 deletions

View File

@@ -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)