Skip to content

Update configuration for image generation settings #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 11, 2025
Merged

Conversation

jasonacox
Copy link
Owner

0.16.1 - Image Generation Settings

  • Added environment variables for image generation settings: IMAGE_MODEL, IMAGE_CFGSCALE, IMAGE_STEPS, IMAGE_SEED, IMAGE_TIMEOUT, IMAGE_WIDTH, and IMAGE_HEIGHT.

  • Some suggestions based on models (see https://github.com/mcmonkeyprojects/SwarmUI/blob/master/docs/Model%20Support.md for more):

    • OfficialStableDiffusion/sd_xl_base_1.0 - use IMAGE_CFGSCALE=20 and IMAGE_STEPS=20
    • Flux/flux1-schnell-fp8 - use IMAGE_CFGSCALE=1 and IMAGE_STEPS=4
    • Flux/flux1-schnell-fp8 - use IMAGE_CFGSCALE=1 and IMAGE_STEPS=20

@jasonacox jasonacox requested a review from Copilot May 11, 2025 21:01
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the configuration and API routes to add support for image generation settings and documents these changes.

  • Update TinyLLM version and reorder configuration variables.
  • Add new environment variables for image generation settings in the configuration file and update the ImageGenerator instantiation accordingly.
  • Update release notes to reflect the new settings.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
chatbot/app/core/config.py Reordered configuration variables and added image generation settings.
chatbot/app/api/routes.py Updated function calls and ImageGenerator instantiation to use new image settings.
RELEASE.md Updated release notes to include information about image generation settings.

RELEASE.md Outdated
Comment on lines 9 to 10
* Flux/flux1-schnell-fp8 - use `IMAGE_CFGSCALE=1` and `IMAGE_STEPS=4`
* Flux/flux1-schnell-fp8 - use `IMAGE_CFGSCALE=1` and `IMAGE_STEPS=20`
Copy link
Preview

Copilot AI May 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] There are two different suggestions for the Flux/flux1-schnell-fp8 model with conflicting image step values. Please verify and clarify the intended configuration to avoid confusion.

Suggested change
* Flux/flux1-schnell-fp8 - use `IMAGE_CFGSCALE=1` and `IMAGE_STEPS=4`
* Flux/flux1-schnell-fp8 - use `IMAGE_CFGSCALE=1` and `IMAGE_STEPS=20`
* Flux/flux1-schnell-fp8 - use `IMAGE_CFGSCALE=1` and `IMAGE_STEPS=4` for quick previews or low-detail outputs.
* Flux/flux1-schnell-fp8 - use `IMAGE_CFGSCALE=1` and `IMAGE_STEPS=20` for high-quality or detailed outputs.

Copilot uses AI. Check for mistakes.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch - the second one should be the dev version instead of schnell.

@jasonacox jasonacox merged commit c36f5c4 into main May 11, 2025
@jasonacox jasonacox deleted the v0.16.1 branch May 11, 2025 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant