Skip to content

Add OmniGen: A Unified Image Generation Model Pipeline #9873

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

Closed
2 tasks done
ighoshsubho opened this issue Nov 6, 2024 · 12 comments · Fixed by #10148
Closed
2 tasks done

Add OmniGen: A Unified Image Generation Model Pipeline #9873

ighoshsubho opened this issue Nov 6, 2024 · 12 comments · Fixed by #10148
Labels
contributions-welcome stale Issues that haven't received updates

Comments

@ighoshsubho
Copy link
Contributor

ighoshsubho commented Nov 6, 2024

Model/Pipeline/Scheduler description

Adding support for OmniGen, a unified image generation model that can handle multiple tasks including text-to-image, image editing, subject-driven generation, and various computer vision tasks within a single framework.

Key features,

  • Unified architecture handling multiple generation tasks without additional moduls like adapters or controlnet
  • Supports arbitrarily interleaved text and image inputs as conditions
  • Competitive text-to-image generation compared to existing models
  • Built-in support for image editing, visual-conditional generation, and subject-driven generation

Open source status

  • The model implementation is available.
  • The model weights are available (Only relevant if addition is not a scheduler).

Provide useful links for the implementation

Paper: OmniGen: Unified Image Generation
Official Implementation: https://github.com/VectorSpaceLab/OmniGen

I would like to implement this pipeline in diffusers

@bghira
Copy link
Contributor

bghira commented Nov 6, 2024

i've implemented training for this and it's very similar interface they've used vs Diffusers. adapting it to use the Mixins instead should be straightforward.

@ighoshsubho
Copy link
Contributor Author

i've implemented training for this and it's very similar interface they've used vs Diffusers. adapting it to use the Mixins instead should be straightforward.

can we add a community example for this in diffusers, would be helpful.

@sayakpaul
Copy link
Member

Cc: @staoxiao from the OmniGen team.

@bghira
Copy link
Contributor

bghira commented Nov 7, 2024

yes and OmniGen already has a training example script that mirrors the type provided by the Diffusers project which should make this a trivial adaptation. @ighoshsubho if you start that effort i can contribute.

@staoxiao
Copy link
Contributor

staoxiao commented Nov 7, 2024

It would be very helpful if OmniGen could be called within diffusers. I’ve been wanting to do this but haven’t started yet. It would be fantastic if you @ighoshsubho @bghira could help implement it. Feel free to ask me if you have any questions.

@bghira
Copy link
Contributor

bghira commented Nov 7, 2024

@staoxiao i don't know if it's too much to ask but i have a pull request where i attempted to fit OmniGen's training requirements into simpletuner. it has very high loss so i'm sure i missed something with the padding. should I open an issue on your repository to follow-up with this?

@staoxiao
Copy link
Contributor

staoxiao commented Nov 7, 2024

Hi, @bghira, I'd be pleased to see that more tools can support OmniGen. You can share the code with me in a way that's convenient for you: opening an issue on OmniGen, or showing me your PR on simpletuner.

@a-r-r-o-w
Copy link
Member

Bumping this to keep the activity going. @ighoshsubho Looking forward to your PR if you're interested in contributing this!

Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

@github-actions github-actions bot added the stale Issues that haven't received updates label Dec 11, 2024
@hlky hlky removed the stale Issues that haven't received updates label Dec 11, 2024
@sayakpaul
Copy link
Member

Lead author of OmniGen is doing it here: #10148. Let's show some love!

@ighoshsubho
Copy link
Contributor Author

Lead author of OmniGen is doing it here: #10148. Let's show some love!

Awesome! Thanks a lot @staoxiao. Will help where needed.

Copy link
Contributor

github-actions bot commented Jan 5, 2025

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

@github-actions github-actions bot added the stale Issues that haven't received updates label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributions-welcome stale Issues that haven't received updates
Projects
None yet
6 participants