Skip to content

feat: add media seed controls and dimension swap - #5400

Merged
qinxuye merged 4 commits into
xorbitsai:mainfrom
Minamiyama:ENH/media-generation-controls
Aug 21, 2026
Merged

feat: add media seed controls and dimension swap#5400
qinxuye merged 4 commits into
xorbitsai:mainfrom
Minamiyama:ENH/media-generation-controls

Conversation

@Minamiyama

@Minamiyama Minamiyama commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add consistent seed controls to image, video, and audio generation WebUIs, and add a width/height swap button wherever both dimensions are configurable.

Changes

  • Add Seed(s) support for image generation.
    • Accept comma-separated seeds.
    • Default to -1.
    • Pad missing seeds to the requested image count on the backend.
    • Treat missing values and -1 as random seeds.
    • Regenerate exactly one fresh seed per requested image whenever 🎲 is clicked.
  • Add scalar seed controls to video and audio generation.
  • Pass seeds through the existing kwargs API field.
  • Normalize and forward seeds across supported image, video, and audio backends.
  • Safely ignore seeds when the underlying model does not support them.
  • Add width/height swap controls to image and video forms.
  • Add frontend and backend seed utility tests.

API Examples

Image generation:

{
  "n": 4,
  "kwargs": "{\"seed\":[11,22]}"
}

This is handled as [11, 22, -1, -1].

Video and audio generation:

{
  "kwargs": "{\"seed\":11}"
}

Compatibility

No top-level API schema changes. Seed values continue to use the existing kwargs passthrough mechanism.

d65cbed45276fd63f20e5afd71c322d9

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@XprobeBot XprobeBot added this to the v3.x milestone Aug 21, 2026
Comment thread xinference/model/audio/chattts.py Outdated
@qinxuye
qinxuye merged commit 011608a into xorbitsai:main Aug 21, 2026
5 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants