CoolFace
Modelpublic

ATH-MaaS/Ovis-U1-3B

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
215likes969downloads
Model Card

Ovis-U1

<div align="center"> <img src=https://cdn-uploads.huggingface.co/production/uploads/637aebed7ce76c3b834cea37/3IK823BZ8w-mz_QfeYkDn.png width="30%"/> </div>

<p align="center"> <a href="https://arxiv.org/abs/2506.23044"><img src="https://img.shields.io/badge/arXivpaper-2506.23044-b31b1b.svg" alt="arxiv"></a> <!-- <a href="https://github.com/AIDC-AI/Ovis-U1/blob/main/docs/OvisU1Report.pdf"><img src="https://img.shields.io/badge/Paper-TechReport-b31b1b" alt="paper"></a> --> <a href="https://github.com/AIDC-AI/Ovis-U1"><img src="https://img.shields.io/badge/GitHub-AIDC--AI/Ovis--U1-blue?style=flat&logo=github" alt="code"></a> <a href="https://huggingface.co/spaces/AIDC-AI/Ovis-U1-3B"><img src="https://img.shields.io/badge/๐ŸŽจHFSpaces-AIDC--AI/Ovis--U1--3B-lightblack" alt="demo"></a> <a href="https://huggingface.co/AIDC-AI/Ovis-U1-3B"><img src="https://img.shields.io/badge/๐Ÿค—_Model-AIDC--AI/Ovis--U1--3B-yellow" alt="model"></a> </p>

<p align="left"> Building on the foundation of the Ovis series, Ovis-U1 is a 3-billion-parameter unified model that seamlessly integrates <b>multimodal understanding</b>, <b>text-to-image generation</b>, and <b>image editing</b> within a single powerful framework. </p>

<p align="center"> <img src="https://cdn-uploads.huggingface.co/production/uploads/636f4c6b5d2050767e4a1491/EmEEGmot9JzaBfHP2uWld.jpeg" width="95%"> <br> <em>The overall architecture of Ovis-U1 (cf. Fig.2 in our report).</em> </p>

๐Ÿ“ฆ Installation

Ovis-U1 has been tested with Python 3.10, Torch 2.4.0, Transformers 4.51.3, and DeepSpeed 0.15.4. For a comprehensive list of package dependencies, please consult the requirements.txt file.

bash
git clone git@github.com:AIDC-AI/Ovis-U1.git
conda create -n ovis-u1 python=3.10 -y
conda activate ovis-u1
cd Ovis-U1
pip install -r requirements.txt
pip install -e .

๐Ÿ› ๏ธ Inference

For single image understanding, please run

bash
python test_img_to_txt.py

For multi-image understanding, please run

bash
python test_multi_img_to_txt.py

For text-to-image, please run

bash
python test_txt_to_img.py \
    --height 1024 \
    --width 1024  \
    --steps 50 \
    --seed 42 \
    --txt_cfg 5  

For image editing, please run

bash
python test_img_edit.py \
    --steps 50 \
    --img_cfg 1.5 \
    --txt_cfg 6  

๐Ÿ“Š Performance

OpenCompass Multi-modal Academic Benchmarks
ModelAvgMMBMMSMMMUMathVistaHallusionAI2DOCRBenchMMVet
GPT-4o75.48670.272.971.65786.382.276.9
InternVL2.5-2B59.970.954.343.251.142.374.980.262.6
SAIL-VL-2B6173.756.544.162.845.977.483.144.2
InternVL3-2B61.17861.148.757.641.978.683.1<ins>67</ins>
Qwen2.5-VL-3B64.576.856.351.261.246.681.482.860
Ovis2-2B65.276.956.745.664.150.282.787.358.3
SAIL-VL-1.5-2B6778.562.646.4675083.789.158.8
Ristretto-3B67.7<ins>80.2</ins><ins>62.8</ins><ins>51.3</ins>67.650.284.284.760.7
Ovis-U1<ins>69.6</ins>77.861.351.1<ins>69.4</ins><ins>56.3</ins><ins>85.6</ins><ins>88.3</ins>66.7
GenEval
ModelOverallSingle objectTwo objectCountingColorsPositionAttribute binding
GPT-4o0.84<ins>0.99</ins>0.92<ins>0.85</ins>0.920.750.61
BAGEL0.82<ins>0.99</ins>0.940.810.880.640.63
BAGEL ๐Ÿ“<ins>0.88</ins>0.980.950.84<ins>0.95</ins><ins>0.78</ins>0.77
UniWorld-V10.80<ins>0.99</ins>0.930.790.890.490.70
UniWorld-V1 ๐Ÿ“0.840.980.930.810.890.740.71
OmniGen0.680.980.840.660.740.400.43
OmniGen20.8010.950.640.880.55<ins>0.76</ins>
OmniGen2 ๐Ÿ“0.86<ins>0.99</ins><ins>0.96</ins>0.740.980.710.75
Ovis-U10.890.980.980.900.920.790.75

๐Ÿ“ denotes using the rewritten prompts

DPG-Bench
ModelOverallGlobalEntityAttributeRelationOther
BAGEL85.0788.9490.3791.29<ins>90.82</ins><ins>88.67</ins>
UniWorld-V181.3883.6488.3988.4489.2787.22
OmniGen81.1687.9088.9788.4787.9583.56
OmniGen283.57<ins>88.81</ins>88.83<ins>90.18</ins>89.3790.27
Ovis-U1<ins>83.72</ins>82.37<ins>90.08</ins>88.6893.3585.20
ImgEdit-Bench
ModelOverallAddAdjustExtractReplaceRemoveBackgroundStyleHybridAction
GPT-4o4.24.614.33<ins>2.9</ins><ins>4.35</ins><ins>3.66</ins>4.574.933.964.89
MagicBrush1.902.841.581.511.971.581.752.381.621.22
Instruct-P2P1.882.451.831.442.011.501.443.551.21.46
AnyEdit2.453.182.951.882.472.232.242.851.562.65
UltraEdit2.73.442.812.132.961.452.833.761.912.98
OmniGen2.963.473.041.712.942.433.214.192.243.38
Step1X-Edit3.063.883.141.763.402.413.164.632.642.52
ICEdit3.053.583.391.733.152.933.083.842.043.68
BAGEL3.23.563.311.73.32.623.244.492.384.17
UniWorld-V13.263.823.642.273.473.242.994.212.962.74
OmniGen23.443.573.061.773.743.23.57<ins>4.81</ins>2.52<ins>4.68</ins>
Ovis-U1<ins>4.00</ins><ins>4.13</ins><ins>3.62</ins>2.984.454.06<ins>4.22</ins>4.69<ins>3.45</ins>4.61
GEdit-Bench-EN
ModelAvgBackground ChangeColor AlterationMaterial ModificationMotion ChangePortrait BeautificationStyle TransferSubject AdditionSubject RemovalSubject ReplacementText ModificationTone Transformation
GPT-4o7.5347.2056.4916.6078.0967.768<ins>6.961</ins>7.6228.3318.0677.4278.301
AnyEdit3.2124.6634.2602.5372.0243.4792.0323.9953.0893.1800.9225.151
Instruct-Pix2Pix3.6843.8255.1823.6883.5094.3394.5603.4612.0314.2370.9554.733
MagicBrush4.5185.6375.1365.0784.5134.4874.4395.2523.7044.9411.3845.130
OmniGen5.0625.2816.0035.3082.9163.0874.9036.6286.3525.6164.5195.064
Gemini6.3156.7816.3696.0406.9385.5914.6767.5016.4477.0035.7656.350
Step1X-Edit6.7016.5476.5456.2046.4836.7877.2216.9756.5127.068<ins>6.921</ins>6.448
Doubao<ins>6.754</ins><ins>7.430</ins>7.0956.339<ins>6.973</ins><ins>6.972</ins>6.767<ins>7.674</ins>6.748<ins>7.447</ins>3.471<ins>7.383</ins>
BAGEL6.5197.324<ins>6.909</ins><ins>6.381</ins>4.7534.5736.1507.8967.1647.0217.3206.218
Ovis-U16.4207.4866.8796.2084.7905.9816.4637.491<ins>7.254</ins>7.2664.4826.314

๐Ÿ“š Citation

If you find Ovis-U1 useful, please cite our paper:

bibtex
@article{wang2025ovisu1,
  title={Ovis-U1 Technical Report}, 
  author={Wang, Guo-Hua and Zhao, Shanshan and Zhang, Xinjie and Cao, Liangfu and Zhan, Pengxin and Duan, Lunhao and Lu, Shiyin and Fu, Minghao and Zhao, Jianshan and Li, Yang and Chen, Qing-Guo},
  journal={arXiv preprint arXiv:2506.23044},
  year={2025}
}

๐Ÿ™ Acknowledgments

The code is built upon Ovis and FLUX.

๐Ÿ“„ License

The project is released under Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0, SPDX-License-identifier: Apache-2.0).

๐Ÿšจ Disclaimer

We used compliance checking algorithms during the training process, to ensure the compliance of the trained model to the best of our ability. Due to complex data and the diversity of language model usage scenarios, we cannot guarantee that the model is completely free of copyright issues or improper content. If you believe anything infringes on your rights or generates improper content, please contact us, and we will promptly address the matter.