mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
pipeline load with variant fallback
This commit is contained in:
@@ -71,11 +71,10 @@ class Script(scripts.Script):
|
||||
shared.log.error(f'SVD: no checkpoint for {model_name}')
|
||||
modelloader.load_reference(model_path, variant='fp16')
|
||||
c = shared.sd_model.__class__.__name__
|
||||
model_loaded = shared.sd_model.sd_checkpoint_info.model_name
|
||||
model_loaded = shared.sd_model.sd_checkpoint_info.model_name if shared.sd_model is not None else None
|
||||
if model_name != model_loaded or c != 'StableVideoDiffusionPipeline':
|
||||
shared.opts.sd_model_checkpoint = model_path
|
||||
sd_models.reload_model_weights()
|
||||
model_loaded = sd_models.model_data.sd_model.sd_checkpoint_info
|
||||
|
||||
# set params
|
||||
if override_resolution:
|
||||
|
||||
Reference in New Issue
Block a user