Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
862a7d50
"vscode:/vscode.git/clone" did not exist on "c52acaaf17f4cc7722f62f3129c0a49f4fb4acbb"
Unverified
Commit
862a7d50
authored
Dec 18, 2024
by
Dhruv Nair
Committed by
GitHub
Dec 18, 2024
Browse files
[Single File] Add single file support for Flux Canny, Depth and Fill (#10288)
update
parent
8304adce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
src/diffusers/loaders/single_file_utils.py
src/diffusers/loaders/single_file_utils.py
+9
-1
No files found.
src/diffusers/loaders/single_file_utils.py
View file @
862a7d50
...
@@ -151,6 +151,8 @@ DIFFUSERS_DEFAULT_PIPELINE_PATHS = {
...
@@ -151,6 +151,8 @@ DIFFUSERS_DEFAULT_PIPELINE_PATHS = {
"animatediff_scribble"
:
{
"pretrained_model_name_or_path"
:
"guoyww/animatediff-sparsectrl-scribble"
},
"animatediff_scribble"
:
{
"pretrained_model_name_or_path"
:
"guoyww/animatediff-sparsectrl-scribble"
},
"animatediff_rgb"
:
{
"pretrained_model_name_or_path"
:
"guoyww/animatediff-sparsectrl-rgb"
},
"animatediff_rgb"
:
{
"pretrained_model_name_or_path"
:
"guoyww/animatediff-sparsectrl-rgb"
},
"flux-dev"
:
{
"pretrained_model_name_or_path"
:
"black-forest-labs/FLUX.1-dev"
},
"flux-dev"
:
{
"pretrained_model_name_or_path"
:
"black-forest-labs/FLUX.1-dev"
},
"flux-fill"
:
{
"pretrained_model_name_or_path"
:
"black-forest-labs/FLUX.1-Fill-dev"
},
"flux-depth"
:
{
"pretrained_model_name_or_path"
:
"black-forest-labs/FLUX.1-Depth-dev"
},
"flux-schnell"
:
{
"pretrained_model_name_or_path"
:
"black-forest-labs/FLUX.1-schnell"
},
"flux-schnell"
:
{
"pretrained_model_name_or_path"
:
"black-forest-labs/FLUX.1-schnell"
},
"ltx-video"
:
{
"pretrained_model_name_or_path"
:
"Lightricks/LTX-Video"
},
"ltx-video"
:
{
"pretrained_model_name_or_path"
:
"Lightricks/LTX-Video"
},
"autoencoder-dc-f128c512"
:
{
"pretrained_model_name_or_path"
:
"mit-han-lab/dc-ae-f128c512-mix-1.0-diffusers"
},
"autoencoder-dc-f128c512"
:
{
"pretrained_model_name_or_path"
:
"mit-han-lab/dc-ae-f128c512-mix-1.0-diffusers"
},
...
@@ -587,6 +589,12 @@ def infer_diffusers_model_type(checkpoint):
...
@@ -587,6 +589,12 @@ def infer_diffusers_model_type(checkpoint):
if
any
(
if
any
(
g
in
checkpoint
for
g
in
[
"guidance_in.in_layer.bias"
,
"model.diffusion_model.guidance_in.in_layer.bias"
]
g
in
checkpoint
for
g
in
[
"guidance_in.in_layer.bias"
,
"model.diffusion_model.guidance_in.in_layer.bias"
]
):
):
if
checkpoint
[
"img_in.weight"
].
shape
[
1
]
==
384
:
model_type
=
"flux-fill"
elif
checkpoint
[
"img_in.weight"
].
shape
[
1
]
==
128
:
model_type
=
"flux-depth"
else
:
model_type
=
"flux-dev"
model_type
=
"flux-dev"
else
:
else
:
model_type
=
"flux-schnell"
model_type
=
"flux-schnell"
...
...
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