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
f72780a7
Commit
f72780a7
authored
Aug 25, 2023
by
comfyanonymous
Browse files
The new smart memory management makes this unnecessary.
parent
c77f02e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
comfy/model_management.py
comfy/model_management.py
+0
-3
No files found.
comfy/model_management.py
View file @
f72780a7
...
@@ -111,9 +111,6 @@ if not args.normalvram and not args.cpu:
...
@@ -111,9 +111,6 @@ if not args.normalvram and not args.cpu:
if
lowvram_available
and
total_vram
<=
4096
:
if
lowvram_available
and
total_vram
<=
4096
:
print
(
"Trying to enable lowvram mode because your GPU seems to have 4GB or less. If you don't want this use: --normalvram"
)
print
(
"Trying to enable lowvram mode because your GPU seems to have 4GB or less. If you don't want this use: --normalvram"
)
set_vram_to
=
VRAMState
.
LOW_VRAM
set_vram_to
=
VRAMState
.
LOW_VRAM
elif
total_vram
>
total_ram
*
1.1
and
total_vram
>
14336
:
print
(
"Enabling highvram mode because your GPU has more vram than your computer has ram. If you don't want this use: --normalvram"
)
vram_state
=
VRAMState
.
HIGH_VRAM
try
:
try
:
OOM_EXCEPTION
=
torch
.
cuda
.
OutOfMemoryError
OOM_EXCEPTION
=
torch
.
cuda
.
OutOfMemoryError
...
...
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