-
-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add templating for new storage monitor and serverless api
[skip ci]
- Loading branch information
1 parent
72db57c
commit c3cc549
Showing
16 changed files
with
485 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
build/COPY_ROOT/opt/serverless/docs/example_payloads/bound_image2image.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"input": { | ||
"handler": "Image2Image", | ||
"aws_access_key_id": "your-s3-access-key", | ||
"aws_secret_access_key_id": "your-s3-secret-access-key", | ||
"aws_endpoint_url": "https://my-endpoint.backblaze.com", | ||
"aws_bucket_name": "your-bucket", | ||
"ckpt_name": "v1-5-pruned-emaonly.ckpt", | ||
"include_text": "photograph of a victorian woman, arms outstretched with angel wings. cloudy sky, meadow grass", | ||
"exclude_text": "watermark, text", | ||
"denoise": 0.87, | ||
"input_image": "https://raw.githubusercontent.com/comfyanonymous/ComfyUI/master/input/example.png" | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
build/COPY_ROOT/opt/serverless/docs/example_payloads/bound_text2image.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"input": { | ||
"handler": "Text2Image", | ||
"aws_access_key_id": "your-s3-access-key", | ||
"aws_secret_access_key_id": "your-s3-secret-access-key", | ||
"aws_endpoint_url": "https://my-endpoint.backblaze.com", | ||
"aws_bucket_name": "your-bucket", | ||
"steps": 20, | ||
"ckpt_name": "v1-5-pruned-emaonly.ckpt", | ||
"sampler_name": "euler", | ||
"scheduler": "normal", | ||
"include_text": "beautiful scenery nature glass bottle landscape, , purple galaxy bottle,", | ||
"exclude_text": "text, watermark", | ||
"width": 512, | ||
"height": 512, | ||
"batch_size": 1 | ||
} | ||
} |
131 changes: 131 additions & 0 deletions
131
build/COPY_ROOT/opt/serverless/docs/example_payloads/raw_controlnet_t2i_adapters.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
{ | ||
"input": { | ||
"handler": "RawWorkflow", | ||
"aws_access_key_id": "your-s3-access-key", | ||
"aws_secret_access_key_id": "your-s3-secret-access-key", | ||
"aws_endpoint_url": "https://my-endpoint.backblaze.com", | ||
"aws_bucket_name": "your-bucket", | ||
"workflow_json": { | ||
"3": { | ||
"inputs": { | ||
"seed": 891858402356003, | ||
"steps": 20, | ||
"cfg": 8, | ||
"sampler_name": "uni_pc_bh2", | ||
"scheduler": "normal", | ||
"denoise": 1, | ||
"model": [ | ||
"34", | ||
0 | ||
], | ||
"positive": [ | ||
"23", | ||
0 | ||
], | ||
"negative": [ | ||
"7", | ||
0 | ||
], | ||
"latent_image": [ | ||
"5", | ||
0 | ||
] | ||
}, | ||
"class_type": "KSampler" | ||
}, | ||
"5": { | ||
"inputs": { | ||
"width": 832, | ||
"height": 384, | ||
"batch_size": 1 | ||
}, | ||
"class_type": "EmptyLatentImage" | ||
}, | ||
"7": { | ||
"inputs": { | ||
"text": "(hands), text, error, cropped, (worst quality:1.2), (low quality:1.2), normal quality, (jpeg artifacts:1.3), signature, watermark, username, blurry, artist name, monochrome, sketch, censorship, censor, (copyright:1.2)", | ||
"clip": [ | ||
"34", | ||
1 | ||
] | ||
}, | ||
"class_type": "CLIPTextEncode" | ||
}, | ||
"8": { | ||
"inputs": { | ||
"samples": [ | ||
"3", | ||
0 | ||
], | ||
"vae": [ | ||
"34", | ||
2 | ||
] | ||
}, | ||
"class_type": "VAEDecode" | ||
}, | ||
"9": { | ||
"inputs": { | ||
"filename_prefix": "ComfyUI", | ||
"images": [ | ||
"8", | ||
0 | ||
] | ||
}, | ||
"class_type": "SaveImage" | ||
}, | ||
"20": { | ||
"inputs": { | ||
"image": "https://upload.wikimedia.org/wikipedia/commons/3/3e/Stereogram_Tut_Shark_Depthmap.png", | ||
"upload": "image" | ||
}, | ||
"class_type": "LoadImage" | ||
}, | ||
"23": { | ||
"inputs": { | ||
"strength": 1.0000000000000004, | ||
"conditioning": [ | ||
"24", | ||
0 | ||
], | ||
"control_net": [ | ||
"33", | ||
0 | ||
], | ||
"image": [ | ||
"20", | ||
0 | ||
] | ||
}, | ||
"class_type": "ControlNetApply" | ||
}, | ||
"24": { | ||
"inputs": { | ||
"text": "underwater photograph shark\n\n\n\n", | ||
"clip": [ | ||
"34", | ||
1 | ||
] | ||
}, | ||
"class_type": "CLIPTextEncode" | ||
}, | ||
"33": { | ||
"inputs": { | ||
"control_net_name": "diff_control_sd15_depth_fp16.safetensors", | ||
"model": [ | ||
"34", | ||
0 | ||
] | ||
}, | ||
"class_type": "DiffControlNetLoader" | ||
}, | ||
"34": { | ||
"inputs": { | ||
"ckpt_name": "v1-5-pruned-emaonly.ckpt" | ||
}, | ||
"class_type": "CheckpointLoaderSimple" | ||
} | ||
} | ||
} | ||
} | ||
} |
109 changes: 109 additions & 0 deletions
109
build/COPY_ROOT/opt/serverless/docs/example_payloads/raw_image2image.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
{ | ||
"input": { | ||
"handler": "RawWorkflow", | ||
"aws_access_key_id": "your-s3-access-key", | ||
"aws_secret_access_key_id": "your-s3-secret-access-key", | ||
"aws_endpoint_url": "https://my-endpoint.backblaze.com", | ||
"aws_bucket_name": "your-bucket", | ||
"workflow_json": { | ||
{ | ||
"3": { | ||
"inputs": { | ||
"seed": 280823642470253, | ||
"steps": 20, | ||
"cfg": 8, | ||
"sampler_name": "dpmpp_2m", | ||
"scheduler": "normal", | ||
"denoise": 0.8700000000000001, | ||
"model": [ | ||
"14", | ||
0 | ||
], | ||
"positive": [ | ||
"6", | ||
0 | ||
], | ||
"negative": [ | ||
"7", | ||
0 | ||
], | ||
"latent_image": [ | ||
"12", | ||
0 | ||
] | ||
}, | ||
"class_type": "KSampler" | ||
}, | ||
"6": { | ||
"inputs": { | ||
"text": "photograph of victorian woman with wings, sky clouds, meadow grass", | ||
"clip": [ | ||
"14", | ||
1 | ||
] | ||
}, | ||
"class_type": "CLIPTextEncode" | ||
}, | ||
"7": { | ||
"inputs": { | ||
"text": "watermark, text", | ||
"clip": [ | ||
"14", | ||
1 | ||
] | ||
}, | ||
"class_type": "CLIPTextEncode" | ||
}, | ||
"8": { | ||
"inputs": { | ||
"samples": [ | ||
"3", | ||
0 | ||
], | ||
"vae": [ | ||
"14", | ||
2 | ||
] | ||
}, | ||
"class_type": "VAEDecode" | ||
}, | ||
"9": { | ||
"inputs": { | ||
"filename_prefix": "ComfyUI", | ||
"images": [ | ||
"8", | ||
0 | ||
] | ||
}, | ||
"class_type": "SaveImage" | ||
}, | ||
"10": { | ||
"inputs": { | ||
"image": "https://raw.githubusercontent.com/comfyanonymous/ComfyUI/master/input/example.png", | ||
"upload": "image" | ||
}, | ||
"class_type": "LoadImage" | ||
}, | ||
"12": { | ||
"inputs": { | ||
"pixels": [ | ||
"10", | ||
0 | ||
], | ||
"vae": [ | ||
"14", | ||
2 | ||
] | ||
}, | ||
"class_type": "VAEEncode" | ||
}, | ||
"14": { | ||
"inputs": { | ||
"ckpt_name": "v1-5-pruned-emaonly.ckpt" | ||
}, | ||
"class_type": "CheckpointLoaderSimple" | ||
} | ||
} | ||
} | ||
} | ||
} |
97 changes: 97 additions & 0 deletions
97
build/COPY_ROOT/opt/serverless/docs/example_payloads/raw_text2image.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
{ | ||
"input": { | ||
"handler": "RawWorkflow", | ||
"aws_access_key_id": "your-s3-access-key", | ||
"aws_secret_access_key_id": "your-s3-secret-access-key", | ||
"aws_endpoint_url": "https://my-endpoint.backblaze.com", | ||
"aws_bucket_name": "your-bucket", | ||
"workflow_json": { | ||
{ | ||
"3": { | ||
"inputs": { | ||
"seed": 156680208700286, | ||
"steps": 20, | ||
"cfg": 8, | ||
"sampler_name": "euler", | ||
"scheduler": "normal", | ||
"denoise": 1, | ||
"model": [ | ||
"4", | ||
0 | ||
], | ||
"positive": [ | ||
"6", | ||
0 | ||
], | ||
"negative": [ | ||
"7", | ||
0 | ||
], | ||
"latent_image": [ | ||
"5", | ||
0 | ||
] | ||
}, | ||
"class_type": "KSampler" | ||
}, | ||
"4": { | ||
"inputs": { | ||
"ckpt_name": "v1-5-pruned-emaonly.ckpt" | ||
}, | ||
"class_type": "CheckpointLoaderSimple" | ||
}, | ||
"5": { | ||
"inputs": { | ||
"width": 512, | ||
"height": 512, | ||
"batch_size": 1 | ||
}, | ||
"class_type": "EmptyLatentImage" | ||
}, | ||
"6": { | ||
"inputs": { | ||
"text": "beautiful scenery nature glass bottle landscape, , purple galaxy bottle", | ||
"clip": [ | ||
"4", | ||
1 | ||
] | ||
}, | ||
"class_type": "CLIPTextEncode" | ||
}, | ||
"7": { | ||
"inputs": { | ||
"text": "text, watermark", | ||
"clip": [ | ||
"4", | ||
1 | ||
] | ||
}, | ||
"class_type": "CLIPTextEncode" | ||
}, | ||
"8": { | ||
"inputs": { | ||
"samples": [ | ||
"3", | ||
0 | ||
], | ||
"vae": [ | ||
"4", | ||
2 | ||
] | ||
}, | ||
"class_type": "VAEDecode" | ||
}, | ||
"9": { | ||
"inputs": { | ||
"filename_prefix": "ComfyUI", | ||
"images": [ | ||
"8", | ||
0 | ||
] | ||
}, | ||
"class_type": "SaveImage" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.