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
0bbd9dd4
Commit
0bbd9dd4
authored
Aug 04, 2023
by
pythongosssss
Browse files
add system info to stats endpoint
parent
d7638c47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
server.py
server.py
+5
-0
No files found.
server.py
View file @
0bbd9dd4
...
@@ -345,6 +345,11 @@ class PromptServer():
...
@@ -345,6 +345,11 @@ class PromptServer():
vram_total
,
torch_vram_total
=
comfy
.
model_management
.
get_total_memory
(
device
,
torch_total_too
=
True
)
vram_total
,
torch_vram_total
=
comfy
.
model_management
.
get_total_memory
(
device
,
torch_total_too
=
True
)
vram_free
,
torch_vram_free
=
comfy
.
model_management
.
get_free_memory
(
device
,
torch_free_too
=
True
)
vram_free
,
torch_vram_free
=
comfy
.
model_management
.
get_free_memory
(
device
,
torch_free_too
=
True
)
system_stats
=
{
system_stats
=
{
"system"
:
{
"os"
:
os
.
name
,
"python_version"
:
sys
.
version
,
"embedded_python"
:
os
.
path
.
split
(
os
.
path
.
split
(
sys
.
executable
)[
0
])[
1
]
==
"python_embeded"
},
"devices"
:
[
"devices"
:
[
{
{
"name"
:
device_name
,
"name"
:
device_name
,
...
...
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