mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
fix unapply texture tiling
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -551,7 +551,8 @@ def set_latents(p):
|
||||
def apply_circular(enable: bool, model):
|
||||
if not hasattr(model, 'unet') or not hasattr(model, 'vae'):
|
||||
return
|
||||
if getattr(model, 'texture_tiling', False) == enable:
|
||||
current = getattr(model, 'texture_tiling', 0)
|
||||
if isinstance(current, bool) and current == enable:
|
||||
return
|
||||
try:
|
||||
i = 0
|
||||
|
||||
Reference in New Issue
Block a user