SuperAPIAI Directory

OneDiffusion

github.com · AI developer platforms

OneDiffusion is the official implementation of the CVPR 2025 paper, a large-scale diffusion model that supports bidirectional image synthesis and understanding, and can handle a variety of tasks such as text-to-image generation, image editing, multiview generation, and subject-driven generation. The project has open-sourced the weights and inference code, and provides a Gradio demo. The model weights use the CC BY-NC license and are for non-commercial use only.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

OneDiffusion is the official implementation of the CVPR 2025 paper, open-sourced by lehduong on GitHub. It is a versatile, large-scale diffusion model capable of seamlessly supporting bidirectional image synthesis and understanding, covering a variety of tasks.

Main Capabilities

According to the official repository information, OneDiffusion supports the following tasks:

  • Text-to-Image
  • Image editing (editing images according to instructions)
  • Subject-driven generation
  • Multiview generation, including single-image-to-multiview and text-to-multiview
  • Condition-to-Image and vice versa
  • ID customization
  • Zero-shot Task combinations, which can combine conditional images and task tokens, but performance may be unstable and is sensitive to the order of task tokens or descriptions.

Usage

The official release provides inference code and a Gradio demo.

  • For text-to-image generation, code snippets can be used (see inference.py in the repository for the specific code).
  • The command to run the Gradio demo:python app.py(For the specific command, please refer to the repository).
  • The demo provides guidance to help correctly format prompts for each task.
  • By default, a quantized Molmo is loaded to generate captions for source images, significantly increasing memory usage. Running the demo usually requires a GPU with at least 40GB of VRAM; if LLaVA is used, this can be reduced to about 27GB, but the captions may be less accurate; you can also manually provide captions and disable the mode, in which case an empty string is returned, but you still need to click the "Generate Caption" button to correctly format the input text, and this mode requires about 12GB of memory.
  • Note: When using higher resolutions or more input images, the required memory may vary.

Applicable Scenarios

Suitable for research and experimental scenarios that require a unified diffusion model to handle multiple image generation and understanding tasks, such as text-to-image generation, image editing, multiview generation, subject-driven generation, and more.

Limitations

  • The model weights use the CC BY-NC license and are for non-commercial use only, because training used non-commercially licensed datasets (such as DL3DV and Unsplash).
  • The performance of zero-shot task combinations may not be robust and is sensitive to the order of task tokens or descriptions. For example, when using image inpainting and ID customization at the same time, the target prompt and the caption of the masked image must be consistent. It is recommended to fine-tune these combined tasks for better performance and simpler use.
  • Running the demo requires relatively high VRAM, and the specific requirement depends on the configuration.

Update Log

  • 2024/12/11: The Huggingface space went live, and the VRAM requirement for running the demo with Molmo was reduced to 21GB.
  • 2024/12/10: Released weights and inference code.
  • 2024/12/06: Added instruction-based image editing.
  • 2024/12/02: Added subject-driven generation.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools