mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-22 08:17:03 +08:00
editing
This commit is contained in:
parent
0256e7f769
commit
7f40be7443
@ -107,14 +107,15 @@ def queue_prompt(prompt):
|
|||||||
request.urlopen(req)
|
request.urlopen(req)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
prompt = json.loads(prompt_text)
|
prompt = json.loads(prompt_text)
|
||||||
#set the text prompt for our positive CLIPTextEncode
|
#set the text prompt for our positive CLIPTextEncode
|
||||||
prompt["6"]["inputs"]["text"] = "masterpiece best quality man"
|
prompt["6"]["inputs"]["text"] = "masterpiece best quality man"
|
||||||
|
|
||||||
#set the seed for our KSampler node
|
#set the seed for our KSampler node
|
||||||
prompt["3"]["inputs"]["seed"] = 5
|
prompt["3"]["inputs"]["seed"] = 5
|
||||||
|
res = queue_prompt(prompt)
|
||||||
|
|
||||||
queue_prompt(prompt)
|
print(res)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -142,6 +142,8 @@ prompt_text = """
|
|||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
prompt = json.loads(prompt_text)
|
prompt = json.loads(prompt_text)
|
||||||
#set the text prompt for our positive CLIPTextEncode
|
#set the text prompt for our positive CLIPTextEncode
|
||||||
prompt["6"]["inputs"]["text"] = "masterpiece best quality man"
|
prompt["6"]["inputs"]["text"] = "masterpiece best quality man"
|
||||||
@ -155,10 +157,10 @@ images = get_images(ws, prompt)
|
|||||||
|
|
||||||
#Commented out code to display the output images:
|
#Commented out code to display the output images:
|
||||||
|
|
||||||
# for node_id in images:
|
for node_id in images:
|
||||||
# for image_data in images[node_id]:
|
for image_data in images[node_id]:
|
||||||
# from PIL import Image
|
from PIL import Image
|
||||||
# import io
|
import io
|
||||||
# image = Image.open(io.BytesIO(image_data))
|
image = Image.open(io.BytesIO(image_data))
|
||||||
# image.show()
|
image.show()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user