R
RunPod8mo ago
Gabriel

ControlNet does not seem to work on Serverless API

Hey guys, before everything, I'm not a native English speaker so sorry in advance if I got something wrong. I'm just about 3 days in trying to find someone to help me on this issue. I'm trying to run a serverless API to an automatic1111's WebUI interface via this guide: https://github.com/ashleykleynhans/runpod-worker-a1111 And so far so good, I've set up an API call via postman to test it out, Img2img and model loading seem to work well and fast, but controlnet just does not seem to work. Here are some comparisons of the same prompt and controlnet configuration via the automatic1111's WebUI interface and the API calls I made with postman. Base Image: https://imgur.com/a/DeZSoWo Automatic1111's WebUI interface result: https://imgur.com/a/tFURqiP Prompt: photorealistic, a photo of a modern dining room, moody lighting, color grading, Unreal Engine 5, foreground, middleground and background well defined Negative prompt: bad quality, lowres, unfaithful geometry, jpeg artifacts, black outlines, low quality, bad geometry, bad text Steps: 30, Sampler: DPM++ 2M, Schedule type: Karras, CFG scale: 7, Seed: 4073374742, Size: 867x1080, Model hash: 0928b30687, Model: realisticVisionV60B1_v51HyperVAE, Denoising strength: 0.6, ControlNet 0: "Module: canny, Model: control_v11p_sd15_canny, Weight: 1.0, Resize Mode: Crop and Resize, Processor Res: 512, Threshold A: 75.0, Threshold B: 75.0, Guidance Start: 0.0, Guidance End: 1.0, Pixel Perfect: True, Control Mode: ControlNet is more important", Version: v1.9.3 Postman request result: https://imgur.com/a/8sTY74w Request body: https://hastebin.com/share/idujamuweq.json As you guys can see, the webui prompt and the postman request seem to be identical, why is that on the postman request controlnet seems to be completely deactivated? Can anyone help me out? thanks in advance.
GitHub
GitHub - ashleykleynhans/runpod-worker-a1111: RunPod Serverless Wor...
RunPod Serverless Worker for the Automatic1111 Stable Diffusion API - ashleykleynhans/runpod-worker-a1111
Hastebin
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
3 Replies
nerdylive
nerdylive8mo ago
Hmm any errors or logs for the postman request? Also how did you get that api formatting for controlnet ?like The arguments
Gabriel
GabrielOP8mo ago
no errors for the postman request, I got the arguments from the template on the github page, "Img2img +ControlNet Hey guys, I just solved it! For anyone having the same problem as me, all I did was replace "controlnet" with "ControlNet" in the json and using the argument "enabled": true in the controlnet arguments! Didn't see any example using this parameter on the internet, so it might be helpful.
digigoblin
digigoblin8mo ago
Probably setting ot to enabled fixed it.
Want results from more Discord servers?
Add your server