Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
coderai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
coderai
Commits
8092e302
Commit
8092e302
authored
Mar 14, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: add 'image' and 'vision' aliases for image models
parent
7fd6d400
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
coderai
coderai
+12
-0
No files found.
coderai
View file @
8092e302
...
...
@@ -4829,6 +4829,9 @@ def main():
sd_model
=
StableDiffusion
(**
sd_kwargs
)
multi_model_manager
.
add_model
(
model_key
,
sd_model
)
#
Add
aliases
for
"image"
and
"vision"
multi_model_manager
.
add_model
(
"image"
,
sd_model
)
multi_model_manager
.
add_model
(
"vision"
,
sd_model
)
print
(
f
"Image model loaded successfully via sd.cpp: {original_model_name}"
)
except
ImportError
as
sd_error
:
print
(
f
"stable-diffusion-cpp-python not installed: {sd_error}"
)
...
...
@@ -4878,6 +4881,9 @@ def main():
pipeline
=
pipeline
.
to
(
"cpu"
)
multi_model_manager
.
add_model
(
model_key
,
pipeline
)
#
Add
aliases
for
"image"
and
"vision"
multi_model_manager
.
add_model
(
"image"
,
pipeline
)
multi_model_manager
.
add_model
(
"vision"
,
pipeline
)
print
(
f
"Image model loaded successfully: {model_name}"
)
except
ImportError
as
e
:
...
...
@@ -5323,6 +5329,9 @@ def main():
sd_model = StableDiffusion(**sd_kwargs)
multi_model_manager.add_model(model_key, sd_model)
# Add aliases for "image" and "vision"
multi_model_manager.add_model("image", sd_model)
multi_model_manager.add_model("vision", sd_model)
print(f"Image model loaded successfully via sd.cpp: {original_model_name}")
except ImportError as sd_error:
print(f"stable-diffusion-cpp-python not installed: {sd_error}")
...
...
@@ -5427,6 +5436,9 @@ def main():
pipeline = pipeline.to("cpu")
multi_model_manager.add_model(model_key, pipeline)
# Add aliases for "image" and "vision"
multi_model_manager.add_model("image", pipeline)
multi_model_manager.add_model("vision", pipeline)
print(f"Image model loaded successfully: {model_name}")
except ImportError as e:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment