How can I convert predict payload to txt2img payload #12583
zacard-orc
started this conversation in
General
Replies: 1 comment 2 replies
-
ok, i found the answer , cls loose the controlnet info |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi , I want to use the fastapi txt2img
I snap the predict request body params, just like
"{"prompt": "model photoshoot,1girl,expressionless,beautiful young woman,28 yo,villa,palm trees,outdoor,pool,random hair color,slim waist,sporty,ginger hair,dreamy face,detailed,8k,natural colors,victorias secret,hollywood,face the lens,\nmasterpiece,extremely detailed CG unity 8k wallpaper,best quality,Amazing,finely detail,solo,close-up,outdoors,detailed background,beautiful detailed eyes,bright pupils,depth of field,ultra wide angle,southeast asia resort hotels,", "all_prompts": ["model photoshoot,1girl,expressionless,beautiful young woman,28 yo,villa,palm trees,outdoor,pool,random hair color,slim waist,sporty,ginger hair,dreamy face,detailed,8k,natural colors,victorias secret,hollywood,face the lens,\nmasterpiece,extremely detailed CG unity 8k wallpaper,best quality,Amazing,finely detail,solo,close-up,outdoors,detailed background,beautiful detailed eyes,bright pupils,depth of field,ultra wide angle,southeast asia resort hotels,"], "negative_prompt": "bad art,ugly,messed up face,poorly drawn hands,bad hands,professional photo shoot,makeup,photoshop,doll,plastic_doll,anime,cartoon,filter,airbrush,3d max,infant,featureless,colourless,impassive,shaders,cut off,amputee,fat,indoor,glasses,an open mouth,\nbadhandv4,\ncropped,poorly drawn hands,poorly drawn face,mutation,deformed,worst quality,low quality,normal quality,jpeg artifacts,signature,watermark,", "all_negative_prompts": ["bad art,ugly,messed up face,poorly drawn hands,bad hands,professional photo shoot,makeup,photoshop,doll,plastic_doll,anime,cartoon,filter,airbrush,3d max,infant,featureless,colourless,impassive,shaders,cut off,amputee,fat,indoor,glasses,an open mouth,\nbadhandv4,\ncropped,poorly drawn hands,poorly drawn face,mutation,deformed,worst quality,low quality,normal quality,jpeg artifacts,signature,watermark,"], "seed": 3944440569, "all_seeds": [3944440569], "subseed": 346923922, "all_subseeds": [346923922], "subseed_strength": 0, "width": 510, "height": 680, "sampler_name": "DPM++ SDE Karras", "cfg_scale": 12, "steps": 40, "batch_size": 1, "restore_faces": true, "face_restoration_model": null, "sd_model_hash": "ac68270450", "seed_resize_from_w": 0, "seed_resize_from_h": 0, "denoising_strength": 0.7, "extra_generation_params": {"ControlNet 0": "preprocessor: none, model: control_v11p_sd15_lineart [43d4be0d], weight: 1, starting/ending: (0, 1), resize mode: Crop and Resize, pixel perfect: False, control mode: Balanced, preprocessor params: (2048, 64, 64)", "Hires upscale": 2, "Hires steps": 12, "Hires upscaler": "Latent (bicubic antialiased)"}, "index_of_first_image": 0, "infotexts": ["model photoshoot,1girl,expressionless,beautiful young woman,28 yo,villa,palm trees,outdoor,pool,random hair color,slim waist,sporty,ginger hair,dreamy face,detailed,8k,natural colors,victorias secret,hollywood,face the lens,\nmasterpiece,extremely detailed CG unity 8k wallpaper,best quality,Amazing,finely detail,solo,close-up,outdoors,detailed background,beautiful detailed eyes,bright pupils,depth of field,ultra wide angle,southeast asia resort hotels,\nNegative prompt: bad art,ugly,messed up face,poorly drawn hands,bad hands,professional photo shoot,makeup,photoshop,doll,plastic_doll,anime,cartoon,filter,airbrush,3d max,infant,featureless,colourless,impassive,shaders,cut off,amputee,fat,indoor,glasses,an open mouth,\nbadhandv4,\ncropped,poorly drawn hands,poorly drawn face,mutation,deformed,worst quality,low quality,normal quality,jpeg artifacts,signature,watermark,\nSteps: 40, Sampler: DPM++ SDE Karras, CFG scale: 12, Seed: 3944440569, Size: 510x680, Model hash: ac68270450, Model: bra_v5, Denoising strength: 0.7, ControlNet 0: \"preprocessor: none, model: control_v11p_sd15_lineart [43d4be0d], weight: 1, starting/ending: (0, 1), resize mode: Crop and Resize, pixel perfect: False, control mode: Balanced, preprocessor params: (2048, 64, 64)\", Hires upscale: 2, Hires steps: 12, Hires upscaler: Latent (bicubic antialiased), Version: v1.3.2"], "styles": [], "job_timestamp": "20230815215729", "clip_skip": 1, "is_using_inpainting_conditioning": false}"
and i set payload when use txt2img
but the api result image is different from the result image of webui
Am I lose some params where convert the json requests ?
Beta Was this translation helpful? Give feedback.
All reactions