Image Generation

{% if not model_loaded %}
⚠️ Note: Please first load a model in the model management area above, or use CLI: ollamadiffuser load model-name
{% endif %} {% if success_message %}
{{ success_message }}
{% endif %} {% if error_message %}
{{ error_message }}
{% endif %}
{% if model_parameters.get('width') %} 📋 Recommended for {{ current_model }}: {{ model_parameters.width }}px {% endif %}
{% if model_parameters.get('height') %} 📋 Recommended for {{ current_model }}: {{ model_parameters.height }}px {% endif %}
{% if model_parameters.get('num_inference_steps') %} 📋 Recommended for {{ current_model }}: {{ model_parameters.num_inference_steps }} {% endif %}
{% if model_parameters.get('guidance_scale') %} 📋 Recommended for {{ current_model }}: {{ model_parameters.guidance_scale }} {% endif %}
{% if is_controlnet_model %}

🎛️ ControlNet Controls(structure, composition, and spatial layout) ({{ controlnet_type|title }})

{% if not controlnet_initialized %}
⚠️ Not initialized
{% else %}
✅ Ready
{% endif %}
Upload image for {{ controlnet_type }} control
{% endif %}

Generation Result

Generating image, please wait...

{% if control_image_b64 and image_b64 %}

🎛️ Control Image

Control Image

Preprocessed for {{ controlnet_type }} control

🎨 Generated Image

Generated Image

Conditioning Scale: {{ controlnet_conditioning_scale }}

Prompt: {{ prompt }}

{% elif image_b64 %} Generated Image

Prompt: {{ prompt }}

{% else %}
🖼️

Generated image will be displayed here

{% if is_controlnet_model %}

💡 Upload a control image to guide the generation process

{% endif %}
{% endif %}