You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
487 B
22 lines
487 B
from Util import ConfigUtil
|
|
from Util.ComfyUIUtil import *
|
|
|
|
# 打开配置文件
|
|
config = ConfigUtil.getConfig()
|
|
server_address = config.get('comfyui', 'server_address')
|
|
|
|
|
|
# 清理GPU缓存
|
|
info = get_comfyui_used(server_address)
|
|
print(info)
|
|
clear_comfyui_cache(server_address)
|
|
info = get_comfyui_used(server_address)
|
|
print(info)
|
|
|
|
# 获取使显存数量
|
|
get_webui_used(config)
|
|
# 清理缓存
|
|
clear_webui_cache(config)
|
|
# 获取使显存数量
|
|
get_webui_used(config)
|