diff --git a/BaiHu/Util/ComfyUIUtil.py b/BaiHu/Util/ComfyUIUtil.py index 477f1dcb..275338a1 100644 --- a/BaiHu/Util/ComfyUIUtil.py +++ b/BaiHu/Util/ComfyUIUtil.py @@ -1,4 +1,5 @@ import os.path +import time import urllib.parse import urllib.request @@ -113,6 +114,7 @@ def clear_cache(server_address): queue_prompt(server_address, "cleanGpuRam", prompt_data) # 显示显卡使用率 + time.sleep(2) print('清理显存后:' + getUse(server_address)) diff --git a/BaiHu/Util/__pycache__/ComfyUIUtil.cpython-310.pyc b/BaiHu/Util/__pycache__/ComfyUIUtil.cpython-310.pyc index aed693cc..ad156735 100644 Binary files a/BaiHu/Util/__pycache__/ComfyUIUtil.cpython-310.pyc and b/BaiHu/Util/__pycache__/ComfyUIUtil.cpython-310.pyc differ