main
黄海 1 year ago
parent 3a041da7a7
commit c43ab8fb2f

@ -1,82 +1,26 @@
{
"last_node_id": 2,
"last_link_id": 1,
"nodes": [
{
"id": 2,
"type": "PreviewImage",
"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"
}
"1": {
"inputs": {
"width": 1,
"height": 1,
"batch_size": 1,
"color": 0
},
{
"id": 1,
"type": "EmptyImage",
"pos": [
-171,
256
],
"size": {
"0": 315,
"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,
"class_type": "EmptyImage",
"_meta": {
"title": "空图像"
}
},
"2": {
"inputs": {
"images": [
"1",
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)
# 打开文件并读取内容
file_path = r'../JSON/27.json'
file_path = r'../JSON/clearGPU.json'
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缓存
# https://wailikeji.blog.csdn.net/article/details/140035515
# queue_prompt(server_address, "cleanGpuRam", content)
# https://comfy.icu/node/easy-clearCacheAll
# https://github.com/comfyanonymous/ComfyUI/issues/3615
# https://github.com/yolain/ComfyUI-Easy-Use/issues/124

Loading…
Cancel
Save