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
fed0a4dd
Commit
fed0a4dd
authored
Jun 04, 2023
by
comfyanonymous
Browse files
Some comments to say what the vram state options mean.
parent
126b4050
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
comfy/model_management.py
comfy/model_management.py
+3
-3
No files found.
comfy/model_management.py
View file @
fed0a4dd
...
...
@@ -4,12 +4,12 @@ from comfy.cli_args import args
import
torch
class
VRAMState
(
Enum
):
DISABLED
=
0
NO_VRAM
=
1
DISABLED
=
0
#No vram present: no need to move models to vram
NO_VRAM
=
1
#Very low vram: enable all the options to save vram
LOW_VRAM
=
2
NORMAL_VRAM
=
3
HIGH_VRAM
=
4
SHARED
=
5
SHARED
=
5
#No dedicated vram: memory shared between CPU and GPU but models still need to be moved between both.
class
CPUState
(
Enum
):
GPU
=
0
...
...
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