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
f2d4e4c2
Commit
f2d4e4c2
authored
Mar 14, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix model_key to use cached path instead of URL
parent
95fc9855
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
coderai
coderai
+10
-4
No files found.
coderai
View file @
f2d4e4c2
...
...
@@ -4718,6 +4718,8 @@ def main():
try
:
from
stable_diffusion_cpp
import
StableDiffusion
#
Define
model_key
for
this
scope
model_key
=
f
"image:{model_path}"
print
(
f
"Loading with sd.cpp: {model_path}"
)
#
For
models
like
Z
-
Image
-
Turbo
/
Flux
,
use
diffusion_model_path
#
Look
for
additional
model
files
in
same
directory
...
...
@@ -4824,8 +4826,10 @@ def main():
import
torch
from
diffusers
import
StableDiffusionXLPipeline
,
DiffusionPipeline
model_key
=
f
"image:{model_name}"
print
(
f
"Loading diffusers pipeline: {model_name}"
)
#
Use
cached
path
if
available
key_model
=
model_path
if
model_path
and
os
.
path
.
isfile
(
model_path
)
else
model_name
model_key
=
f
"image:{key_model}"
print
(
f
"Loading diffusers pipeline: {key_model}"
)
#
Try
to
load
as
Stable
Diffusion
XL
first
try
:
...
...
@@ -5409,8 +5413,10 @@ def main():
import torch
from diffusers import StableDiffusionXLPipeline, DiffusionPipeline
model_key = f"image:{model_name}"
print(f"Loading diffusers pipeline: {model_name}")
# Use cached path if available
key_model = model_path if model_path and os.path.isfile(model_path) else model_name
model_key = f"image:{key_model}"
print(f"Loading diffusers pipeline: {key_model}")
# Try to load as Stable Diffusion XL first
try:
...
...
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