Skip to content

Commit e3174a1

Browse files
Merge pull request #12797 from Madrawn/vae_resolve_bug
Small typo: vae resolve bug
2 parents 07878c6 + d888490 commit e3174a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/sd_vae.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def resolve_vae_from_user_metadata(checkpoint_file) -> VaeResolution:
159159

160160
def resolve_vae_near_checkpoint(checkpoint_file) -> VaeResolution:
161161
vae_near_checkpoint = find_vae_near_checkpoint(checkpoint_file)
162-
if vae_near_checkpoint is not None and (not shared.opts.sd_vae_overrides_per_model_preferences or is_automatic):
162+
if vae_near_checkpoint is not None and (not shared.opts.sd_vae_overrides_per_model_preferences or is_automatic()):
163163
return VaeResolution(vae_near_checkpoint, 'found near the checkpoint')
164164

165165
return VaeResolution(resolved=False)

0 commit comments

Comments
 (0)