mix1009 / sdwebuiapi

Python API client for AUTOMATIC1111/stable-diffusion-webui
MIT License
1.37k stars 183 forks source link

The "styles" parameter of txt2img is not effective. #163

Open luoxihao opened 6 months ago

luoxihao commented 6 months ago

Your work is excellent and has greatly benefited me!!

 # "prompt": "(masterpiece:1.2),(best quality:1.2),(high quality:1.2),(realistic:1.2),(photorealistic:1.2),(official art:1.2),(extremely detailed:1.2),1girl,1girl,",
        # "negative_prompt": "(worst quality:2),(low quality:2),(normal quality:2),lowres,watermark,(NSFW:1.2),(open mouth:1.6),(teeth:1.6),",
        "seed": 1,
        "styles": ["追梦少女base"],
        "cfg_scale": 7,
        "steps":50,
        "sampler_name":"DPM++ 2M Karras",
        'cfg_scale':7

This is my parameter. The contents of "prompt" and "negative prompt" are stored in my "styles." However, the results of importing "styles" and using "prompt" separately are completely different. I tested using "styles" in the web UI, and the results are consistent with when I use "prompt" separately.