I think I looked every where in the doc for the text-to-image but I can't seem to change the style of my image. Perhaps the default style are dominant.
# Define your parameters here
params = {
"prompt": prompt,
"style": styles,
"performance_selection": "Speed",
"aspect_ratios_selection": "1024*1024",
"image_number": 1,
"sharpness": 2.0,
"guidance_scale": 4.0,
"base_model_name": "juggernautXL_version6Rundiffusion.safetensors",
"async_process": False # Set to True for asynchronous processing
}
result = text_to_image(prompt1, styles)
print("Image generation result:", result)
publish_image_result(result)
the prompt works well but every time the style is not applied. Even by trying to hardcode the style like styles = ['Mk Van Gogh','SAI Origami'] I couldnt get it working what I'm I doing wrong? I'm new to all of this
I think I looked every where in the doc for the text-to-image but I can't seem to change the style of my image. Perhaps the default style are dominant.
here is my code that I use for generation :
prompt1 = sys.argv[1] styles = sys.argv[2:]
def text_to_image(prompt,styles): host = "http://127.0.0.1:8888" endpoint = "/v1/generation/text-to-image" url = f"{host}{endpoint}"
result = text_to_image(prompt1, styles) print("Image generation result:", result) publish_image_result(result)
the prompt works well but every time the style is not applied. Even by trying to hardcode the style like styles = ['Mk Van Gogh','SAI Origami'] I couldnt get it working what I'm I doing wrong? I'm new to all of this