mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
add buffers and cache info
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
+3
-1
@@ -1,6 +1,6 @@
|
||||
# Change Log for SD.Next
|
||||
|
||||
## Update for 2025-09-29
|
||||
## Update for 2025-09-30
|
||||
|
||||
- **Models**
|
||||
- [WAN 2.2 14B VACE](https://huggingface.co/alibaba-pai/Wan2.2-VACE-Fun-A14B)
|
||||
@@ -56,6 +56,8 @@
|
||||
- **interrrupt** will now show last known preview image
|
||||
*keep incomplete* setting is now *save interrupted*
|
||||
- **logging** enable `debug`, `docs` and `api-docs` by default
|
||||
- **logging** add detailed ram/vram utilization info to log
|
||||
logging frequency can be specified using `--monitor x` command line param, where x is number of seconds
|
||||
- **ipex** simplify internal implementation
|
||||
- refactor to use new libraries
|
||||
- styles and wildcards now use same seed as main generate for reproducible results
|
||||
|
||||
+7
-3
@@ -65,13 +65,17 @@ def ram_stats():
|
||||
fail_once = True
|
||||
try:
|
||||
vmem = psutil.virtual_memory()
|
||||
ram['used'] = gb(vmem.used)
|
||||
ram['free'] = gb(vmem.free)
|
||||
ram['avail'] = gb(vmem.available)
|
||||
ram['used'] = gb(vmem.used) if hasattr(vmem, 'used') else 0
|
||||
ram['free'] = gb(vmem.free) if hasattr(vmem, 'free') else 0
|
||||
ram['avail'] = gb(vmem.available) if hasattr(vmem, 'available') else 0
|
||||
ram['buffers'] = gb(vmem.buffers) if hasattr(vmem, 'buffers') else 0
|
||||
ram['cached'] = gb(vmem.cached) if hasattr(vmem, 'cached') else 0
|
||||
except Exception as e:
|
||||
ram['used'] = 0
|
||||
ram['free'] = 0
|
||||
ram['avail'] = 0
|
||||
ram['buffers'] = 0
|
||||
ram['cached'] = 0
|
||||
ram['error'] = str(e)
|
||||
if not fail_once:
|
||||
shared.log.error(f'RAM stats: {e}')
|
||||
|
||||
Reference in New Issue
Block a user