From: BAAI <huggingface.co/BAAI>Newsgroups: alt.freeweights.imageSubject:

OmniGen-v1

Date: 2026-11-15Commit: 0c2b202Signed: 2DC28CC7B26A283B ✓

Text to image model with 3.9B parameters. Safetensors weights, 15.8 GB in all. Published by BAAI under MIT.

3.9B params15.8GBOmniGen-v1safetensorspermissive
FactsParams3.9BSize15.8 GBFormatssafetensorsTasktext to imageLicenseMITFrom sourcepermissive
$ fw get BAAI/OmniGen-v1
# manifest sha256 fe7f676dcb78… · 15.8 GB · 10 files
$ fw verify ./OmniGen-v1 BAAI/OmniGen-v1
From sourceHosted (signed)BAAI/OmniGen-v1Last check: 2026-11-15 04:16 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
15.8 GB
Weights
15.8 GB (safetensors)
Parameters
3.9B
Formats
safetensors
Task
text to image
License
MIT (permissive)
Files
10, each with a sha256
Publisher
BAAI
Added
2026-11-15
Section
alt.freeweights.image
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 04:16 UTCpassed

Model card

From the publisher at commit 0c2b202. Shown as plain text with links; images open at the publisher.

OmniGen: Unified Image Generation#

More information please refer to our repo: https://github.com/VectorSpaceLab/OmniGen

Build Build License Build Build

News | Methodology | Capabilities | Quick Start | Finetune | License | Citation

1. News#

  • 2024-10-28: We release new version of inference code, optimizing the memory usage and time cost. You can refer to docs/inference.md for detailed information.
  • 2024-10-22: :fire: We release the code for OmniGen. Inference: docs/inference.md Train: docs/fine-tuning.md
  • 2024-10-22: :fire: We release the first version of OmniGen. Model Weight: Shitao/OmniGen-v1 HF Demo: 🤗

2. Overview#

OmniGen is a unified image generation model that can generate a wide range of images from multi-modal prompts. It is designed to be simple, flexible, and easy to use. We provide inference code so that everyone can explore more functionalities of OmniGen.

Existing image generation models often require loading several additional network modules (such as ControlNet, IP-Adapter, Reference-Net, etc.) and performing extra preprocessing steps (e.g., face detection, pose estimation, cropping, etc.) to generate a satisfactory image. However, we believe that the future image generation paradigm should be more simple and flexible, that is, generating various images directly through arbitrarily multi-modal instructions without the need for additional plugins and operations, similar to how GPT works in language generation.

Due to the limited resources, OmniGen still has room for improvement. We will continue to optimize it, and hope it inspires more universal image-generation models. You can also easily fine-tune OmniGen without worrying about designing networks for specific tasks; you just need to prepare the corresponding data, and then run the script. Imagination is no longer limited; everyone can construct any image-generation task, and perhaps we can achieve very interesting, wonderful, and creative things.

If you have any questions, ideas, or interesting tasks you want OmniGen to accomplish, feel free to discuss with us: 2906698981@qq.com, wangyueze@tju.edu.cn, zhengliu1026@gmail.com. We welcome any feedback to help us improve the model.

3. Methodology#

You can see details in our paper.

4. What Can OmniGen do?#

OmniGen is a unified image generation model that you can use to perform various tasks, including but not limited to text-to-image generation, subject-driven generation, Identity-Preserving Generation, image editing, and image-conditioned generation. OmniGen doesn't need additional plugins or operations, it can automatically identify the features (e.g., required object, human pose, depth mapping) in input images according to the text prompt. We showcase some examples in inference.ipynb. And in inference_demo.ipynb, we show an interesting pipeline to generate and modify an image.

You can control the image generation flexibly via OmniGen Image: demo

If you are not entirely satisfied with certain functionalities or wish to add new capabilities, you can try fine-tuning OmniGen.

5. Quick Start#

Using OmniGen#

Install via Github:

git clone https://github.com/staoxiao/OmniGen.git
cd OmniGen
pip install -e .

You also can create a new environment to avoid conflicts:

# Create a python 3.10.12 conda env (you could also use virtualenv)
conda create -n omnigen python=3.10.12
conda activate omnigen

# Install pytorch with your CUDA version, e.g.
pip install torch==2.3.1+cu118 torchvision --extra-index-url https://download.pytorch.org/whl/cu118

git clone https://github.com/staoxiao/OmniGen.git
cd OmniGen
pip install -e .

Here are some examples:

from OmniGen import OmniGenPipeline

pipe = OmniGenPipeline.from_pretrained("Shitao/OmniGen-v1")  
# Note: Your local model path is also acceptable, such as 'pipe = OmniGenPipeline.from_pretrained(your_local_model_path)', where all files in your_local_model_path should be organized as https://huggingface.co/Shitao/OmniGen-v1/tree/main


## Text to Image
images = pipe(
    prompt="A curly-haired man in a red shirt is drinking tea.", 
    height=1024, 
    width=1024, 
    guidance_scale=2.5,
    seed=0,
)
images[0].save("example_t2i.png")  # save output PIL Image

## Multi-modal to Image
# In the prompt, we use the placeholder to represent the image. The image placeholder should be in the format of <img><|image_*|></img>
# You can add multiple images in the input_images. Please ensure that each image has its placeholder. For example, for the list input_images [img1_path, img2_path], the prompt needs to have two placeholders: <img><|image_1|></img>, <img><|image_2|></img>.
images = pipe(
    prompt="A man in a black shirt is reading a book. The man is the right man in <img><|image_1|></img>.",
    input_images=["./imgs/test_cases/two_man.jpg"],
    height=1024, 
    width=1024,
    guidance_scale=2.5, 
    img_guidance_scale=1.6,
    seed=0
)
images[0].save("example_ti2i.png")  # save output PIL image
  • If out of memory, you can set offload_model=True. If the inference time is too long when inputting multiple images, you can reduce the max_input_image_size. For the required resources and the method to run OmniGen efficiently, please refer to docs/inference.md#requiremented-resources.
  • For more examples of image generation, you can refer to inference.ipynb and inference_demo.ipynb
  • For more details about the argument in inference, please refer to docs/inference.md.
Using Diffusers#

Coming soon.

Gradio Demo#

We construct an online demo in Huggingface.

For the local gradio demo, you need to install pip install gradio spaces, and then you can run:

pip install gradio spaces
python app.py
Use Google Colab#

To use with Google Colab, please use the following command:

!git clone https://github.com/staoxiao/OmniGen.git
%cd OmniGen
!pip install -e .
!pip install gradio spaces
!python app.py --share

6. Finetune#

We provide a training script train.py to fine-tune OmniGen. Here is a toy example about LoRA finetune:

accelerate launch --num_processes=1 train.py \
    --model_name_or_path Shitao/OmniGen-v1 \
    --batch_size_per_device 2 \
    --condition_dropout_prob 0.01 \
    --lr 1e-3 \
    --use_lora \
    --lora_rank 8 \
    --json_file ./toy_data/toy_subject_data.jsonl \
    --image_path ./toy_data/images \
    --max_input_length_limit 18000 \
    --keep_raw_resolution \
    --max_image_size 1024 \
    --gradient_accumulation_steps 1 \
    --ckpt_every 10 \
    --epochs 200 \
    --log_every 1 \
    --results_dir ./results/toy_finetune_lora

Please refer to docs/fine-tuning.md for more details (e.g. full finetune).

Contributors:#

Thank all our contributors for their efforts and warmly welcome new members to join in!

https://github.com/VectorSpaceLab/OmniGen/graphs/contributors

License#

This repo is licensed under the MIT License.

Citation#

If you find this repository useful, please consider giving a star ⭐ and citation

@article{xiao2024omnigen,
  title={Omnigen: Unified image generation},
  author={Xiao, Shitao and Wang, Yueze and Zhou, Junjie and Yuan, Huaying and Xing, Xingrun and Yan, Ruiran and Wang, Shuting and Huang, Tiejun and Liu, Zheng},
  journal={arXiv preprint arXiv:2409.11340},
  year={2024}
}

Files

10 files · 15.8 GBWeights 15.8 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 10 files with their sha256
FileSizesha256
.gitattributes1.57 KBb0bccc0887d65a6477800019e1a70d1e154b489789df0962230cf1181745a7d0
README.md9.09 KB30f0ef613b9fb6b13d5b07352e593db963132191952c082e638aba390f10fada
config.json3.29 KBe1d70fa61f86025d4f9b034e4fdfb5d9c59d5d331ebda11add3150a0cf483482
demo_cases.png3.42 MB0517c97c947f8226f0f39b4ca2ac61b058e52faa59ec5085668062d0162dd21e
model.safetensors15.5 GB80b7caa72c6628a30b76083208830c7b9f6d2debf8d63831414583a0a21dd395
special_tokens_map.json670 Bf9535fada19315e0d8eb89521cebe111c008fee98d16e7c6744acfb50505d8c3
tokenizer.json1.85 MB3f6bdae64eacef37b99116918799a3ca00a49ffdcaa2023d12c5d336b7e63a4e
tokenizer_config.json10.1 KB4623c7545642af80afc5b5f8d075367a516a284fba8c1fae7ddd5616998a7845
vae/config.json607 B1ab8e39aeac945453e4c4bd1dd4d0953c566cb9eb9291f87cd316e75c61073cf
vae/diffusion_pytorch_model.safetensors335 MB1598f3d24932bcfe6634e8b618ea1e30ab1d57f5aad13a6d2de446d2199f2341
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
0c2b202e43 pinned now2026-11-15 04:16 UTC10 files · 15.8 GB

Use it

$ fw get BAAI/OmniGen-v1
# manifest sha256 fe7f676dcb78… · 15.8 GB · 10 files
$ fw verify ./OmniGen-v1 BAAI/OmniGen-v1
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/BAAI/OmniGen-v1.json --dir ./OmniGen-v1 $ python3 fw.py verify ./OmniGen-v1 ./BAAI__OmniGen-v1.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download BAAI/OmniGen-v1 --revision 0c2b202e4382e1cb7952522a89d24b9cfe7f2923 --local-dir ./OmniGen-v1
Packaged for ComfyUI. Most image, video and music models run in ComfyUI . Check the publisher's page for the workflow. Freeweights does not host it.

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
30f0ef613b9fb6b13d5b07352e593db963132191952c082e638aba390f10fada
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: BAAI <huggingface.co/BAAI>Newsgroups: alt.freeweights.imageSubject: OmniGen-v1Date: 2026-11-15Commit: 0c2b202Signed: 2DC28CC7B26A283B ✓
Upstream
BAAI/OmniGen-v1
Pinned commit
0c2b202e4382e1cb7952522a89d24b9cfe7f2923
Manifest
OmniGen-v1.json · .minisig
Manifest sha256
fe7f676dcb7899050f55c13a0a787629d7fc397722c8794edb986636532f07e1
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:16 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/BAAI/OmniGen-v1.json $ curl -O https://freeweights.allternit.com/manifests/BAAI/OmniGen-v1.json.minisig $ minisign -Vm OmniGen-v1.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download BAAI/OmniGen-v1
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. OmniGen-v1.json. Provenance. Takedown history: none.
From: Comfy-Org <huggingface.co/Comfy-Org>Subject: Boogu-Image
From: Comfy-Org <huggingface.co/Comfy-Org>Subject: Chroma1-HD
From: lodestones <huggingface.co/lodestones>Subject: Chroma1-HD
From: Comfy-Org <huggingface.co/Comfy-Org>Subject: Chroma1-Radiance
From: Comfy-Org <huggingface.co/Comfy-Org>Subject: ERNIE-Image
From: baidu <huggingface.co/baidu>Subject: ERNIE-Image