Skip to content
Back to skills

Dreamomni2

ASecurity

Routes DreamOmni2 image generation, image editing, and Gradio demo workflows.

  • 247 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 8, 2026
devopspythongo

Works with

  • cli

Security analysis

A100/100

Pro scans all 19 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill dreamomni2 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dreamomni2?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dreamomni2
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-dreamomni2/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-dreamomni2)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dreamomni2
description: "Routes DreamOmni2 image generation, image editing, and Gradio demo workflows."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# DreamOmni2

Use this skill when the task names DreamOmni2, FLUX.1-Kontext, two-image instruction-based image editing, two-image image generation, or the bundled Gradio demos.

## What this skill covers
- Two-image editing and generation on a CUDA GPU
- The VLM prompt stage that converts instructions into a diffusion prompt
- Gradio launchers for the editing and generation demos
- Shared model-path, environment, and troubleshooting guidance

## Prerequisites
- NVIDIA CUDA hardware with enough VRAM for the DreamOmni2 / Qwen2.5-VL / FLUX.1-Kontext stack
- Python 3.11 or another supported modern CPython
- Runtime dependencies from `requirements.txt` plus Gradio
- Local model assets or hub IDs for the VLM and LoRA weights

## Start here
1. Read `references/model-setup.md` for the expected model layout.
2. Run `scripts/check_env.py` to verify the Python, torch, and GPU setup.
3. Run `scripts/check_models.py` to confirm the model paths you intend to use.
4. Choose the matching sub-skill:
   - `sub-skills/inference/` for CLI generation and editing.
   - `sub-skills/web-demo/` for the Gradio launchers.

## Shared runtime helpers
- `scripts/dreamomni2_common.py` contains the bundled image-resize and prompt-format helpers used by both sub-skills.
- `references/troubleshooting.md` collects the shared install, GPU, model-path, and import failures.

## Route map
### `sub-skills/inference/`
Use this route for:
- editing one source image with a second reference image
- generating a new image from two references
- prompt-stage and diffusion-pipeline questions
- `inference_edit.py` and `inference_gen.py`-style command-line runs

### `sub-skills/web-demo/`
Use this route for:
- launching the editing or generation Gradio UI
- choosing ports, server names, and upload order
- UI-specific troubleshooting such as port conflicts and browser launch issues

## Do not use this skill for
- training, FSDP, or distributed optimization helpers
- dataset preparation or benchmark infrastructure
- generic diffusion research that is not DreamOmni2-specific

## Routing notes
- The CLI and web demo workflows both depend on the same model layout and the same CUDA-capable stack.
- The editing workflow requires the source image to be first and the reference image to be second.
- The generation workflow uses the same two-image VLM prompt stage but a different LoRA adapter.
- If the user only needs installation or model-layout validation, start with the root helper scripts and the model-setup reference before going into a sub-skill.

Files in this skill

  • SKILL.md2.7 KB
  • references/model-setup.md2 KB
  • references/repo-provenance.md1 KB
  • references/repo-routing-metadata.json503 B
  • references/troubleshooting.md3 KB
  • scripts/check_env.py2.4 KB
  • scripts/check_models.py2 KB
  • scripts/dreamomni2_common.py7.3 KB
  • sub-skills/inference/SKILL.md2.6 KB
  • sub-skills/inference/references/api-reference.md3.6 KB
  • sub-skills/inference/references/troubleshooting.md1.9 KB
  • sub-skills/inference/references/workflows.md2.4 KB
  • sub-skills/inference/scripts/inference_edit.py1.9 KB
  • sub-skills/inference/scripts/inference_gen.py2.3 KB
  • sub-skills/web-demo/SKILL.md2.2 KB
  • sub-skills/web-demo/references/troubleshooting.md1.8 KB
  • sub-skills/web-demo/references/workflows.md1.8 KB
  • sub-skills/web-demo/scripts/web_edit.py3.6 KB
  • sub-skills/web-demo/scripts/web_generate.py3.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.