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
chenpangpang
ComfyUI
Commits
03da8a34
Commit
03da8a34
authored
May 31, 2023
by
comfyanonymous
Browse files
This is useless for inference.
parent
606446d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
comfy/sd.py
comfy/sd.py
+3
-3
No files found.
comfy/sd.py
View file @
03da8a34
...
@@ -743,7 +743,7 @@ def load_controlnet(ckpt_path, model=None):
...
@@ -743,7 +743,7 @@ def load_controlnet(ckpt_path, model=None):
use_spatial_transformer
=
True
,
use_spatial_transformer
=
True
,
transformer_depth
=
1
,
transformer_depth
=
1
,
context_dim
=
context_dim
,
context_dim
=
context_dim
,
use_checkpoint
=
Tru
e
,
use_checkpoint
=
Fals
e
,
legacy
=
False
,
legacy
=
False
,
use_fp16
=
use_fp16
)
use_fp16
=
use_fp16
)
else
:
else
:
...
@@ -760,7 +760,7 @@ def load_controlnet(ckpt_path, model=None):
...
@@ -760,7 +760,7 @@ def load_controlnet(ckpt_path, model=None):
use_linear_in_transformer
=
True
,
use_linear_in_transformer
=
True
,
transformer_depth
=
1
,
transformer_depth
=
1
,
context_dim
=
context_dim
,
context_dim
=
context_dim
,
use_checkpoint
=
Tru
e
,
use_checkpoint
=
Fals
e
,
legacy
=
False
,
legacy
=
False
,
use_fp16
=
use_fp16
)
use_fp16
=
use_fp16
)
if
pth
:
if
pth
:
...
@@ -1045,7 +1045,7 @@ def load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, o
...
@@ -1045,7 +1045,7 @@ def load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, o
}
}
unet_config
=
{
unet_config
=
{
"use_checkpoint"
:
Tru
e
,
"use_checkpoint"
:
Fals
e
,
"image_size"
:
32
,
"image_size"
:
32
,
"out_channels"
:
4
,
"out_channels"
:
4
,
"attention_resolutions"
:
[
"attention_resolutions"
:
[
...
...
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