mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
fix(video): assign the loaded modular pipeline to the model slot
The modular branch returned the pipe instead of assigning it, so the video tab and the API failed with "model not loaded" and the whole post-load tail was skipped along with it.
This commit is contained in:
@@ -175,7 +175,7 @@ def load_model(selected: models_def.Model):
|
||||
try:
|
||||
if selected.workflow is not None or modular_load.is_modular(selected.repo_cls):
|
||||
from modules.modular_load import load_modular_pipe
|
||||
return load_modular_pipe(selected.repo_cls, selected.repo, workflow=selected.workflow, revision=selected.repo_revision, offline_args=offline_args, base=selected.base)
|
||||
shared.sd_model = load_modular_pipe(selected.repo_cls, selected.repo, workflow=selected.workflow, revision=selected.repo_revision, offline_args=offline_args, base=selected.base)
|
||||
elif selected.repo_cls is None:
|
||||
shared.sd_model = load_custom(selected.repo)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user