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
9a151b7d
"deploy/vscode:/vscode.git/clone" did not exist on "71d37babd208870e5876ddbf97ea03dafab365a4"
Commit
9a151b7d
authored
May 26, 2024
by
comfyanonymous
Browse files
Fix issue and unpin spandrel package.
parent
8cfd677c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
comfy_extras/nodes_upscale_model.py
comfy_extras/nodes_upscale_model.py
+1
-1
requirements.txt
requirements.txt
+3
-1
No files found.
comfy_extras/nodes_upscale_model.py
View file @
9a151b7d
...
...
@@ -42,7 +42,7 @@ class ImageUpscaleWithModel:
def
upscale
(
self
,
upscale_model
,
image
):
device
=
model_management
.
get_torch_device
()
memory_required
=
model_management
.
module_size
(
upscale_model
)
memory_required
=
model_management
.
module_size
(
upscale_model
.
model
)
memory_required
+=
(
512
*
512
*
3
)
*
image
.
element_size
()
*
max
(
upscale_model
.
scale
,
1.0
)
*
384.0
#The 384.0 is an estimate of how much some of these models take, TODO: make it more accurate
memory_required
+=
image
.
nelement
()
*
image
.
element_size
()
model_management
.
free_memory
(
memory_required
,
device
)
...
...
requirements.txt
View file @
9a151b7d
...
...
@@ -10,5 +10,7 @@ Pillow
scipy
tqdm
psutil
#non essential dependencies:
kornia
>=0.7.1
spandrel
==0.3.1
\ No newline at end of file
spandrel
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