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
ca9d300a
"...ComputeVision/Classification/models-master/CODEOWNERS" did not exist on "2795dc1f4445767d9369f06b92848772d805c86e"
Commit
ca9d300a
authored
Jun 16, 2024
by
comfyanonymous
Browse files
Better estimation for memory usage during audio VAE encoding/decoding.
parent
746a0410
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
comfy/sd.py
comfy/sd.py
+2
-2
No files found.
comfy/sd.py
View file @
ca9d300a
...
...
@@ -237,8 +237,8 @@ class VAE:
decoder_config
=
{
'target'
:
"comfy.ldm.modules.diffusionmodules.model.Decoder"
,
'params'
:
ddconfig
})
elif
"decoder.layers.0.weight_v"
in
sd
:
self
.
first_stage_model
=
AudioOobleckVAE
()
self
.
memory_used_encode
=
lambda
shape
,
dtype
:
(
1
767
*
shape
[
2
])
*
model_management
.
dtype_size
(
dtype
)
#TODO: tweak for the audio VAE
self
.
memory_used_decode
=
lambda
shape
,
dtype
:
(
2178
*
shape
[
2
]
*
64
)
*
model_management
.
dtype_size
(
dtype
)
self
.
memory_used_encode
=
lambda
shape
,
dtype
:
(
1
000
*
shape
[
2
])
*
model_management
.
dtype_size
(
dtype
)
self
.
memory_used_decode
=
lambda
shape
,
dtype
:
(
1000
*
shape
[
2
]
*
2048
)
*
model_management
.
dtype_size
(
dtype
)
self
.
latent_channels
=
64
self
.
output_channels
=
2
self
.
upscale_ratio
=
2048
...
...
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