main
黄海 1 year ago
parent 3a041da7a7
commit c43ab8fb2f

@ -1,82 +1,26 @@
{ {
"last_node_id": 2, "1": {
"last_link_id": 1, "inputs": {
"nodes": [ "width": 1,
{ "height": 1,
"id": 2, "batch_size": 1,
"type": "PreviewImage", "color": 0
"pos": [
205.499643768773,
298.78351573772534
],
"size": [
210,
246
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 1,
"label": "images"
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
}, },
{ "class_type": "EmptyImage",
"id": 1, "_meta": {
"type": "EmptyImage", "title": "空图像"
"pos": [ }
-171, },
256 "2": {
], "inputs": {
"size": { "images": [
"0": 315, "1",
"1": 130
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
1
],
"shape": 3,
"label": "IMAGE",
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "EmptyImage"
},
"widgets_values": [
1,
1,
1,
0 0
] ]
},
"class_type": "PreviewImage",
"_meta": {
"title": "预览图像"
} }
], }
"links": [
[
1,
1,
0,
2,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
} }

@ -52,14 +52,16 @@ server_address = config.get('comfyui', 'server_address')
getUse(server_address) getUse(server_address)
# 打开文件并读取内容 # 打开文件并读取内容
file_path = r'../JSON/27.json' file_path = r'../JSON/clearGPU.json'
with open(file_path, 'r', encoding='utf-8') as file: with open(file_path, 'r', encoding='utf-8') as file:
content = file.read() prompt_data = json.load(file)
queue_prompt(server_address, "cleanGpuRam", prompt_data)
getUse(server_address)
# 如何清空Comfyui的gpu缓存 # 如何清空Comfyui的gpu缓存
# https://wailikeji.blog.csdn.net/article/details/140035515 # https://wailikeji.blog.csdn.net/article/details/140035515
# queue_prompt(server_address, "cleanGpuRam", content)
# https://comfy.icu/node/easy-clearCacheAll # https://comfy.icu/node/easy-clearCacheAll
# https://github.com/comfyanonymous/ComfyUI/issues/3615 # https://github.com/comfyanonymous/ComfyUI/issues/3615
# https://github.com/yolain/ComfyUI-Easy-Use/issues/124 # https://github.com/yolain/ComfyUI-Easy-Use/issues/124

Loading…
Cancel
Save