Runware / hidream-e1-full

huggingface.co
Total runs: 27
24-hour runs: 0
7-day runs: 2
30-day runs: 23
Model's Last Updated: May 24 2025
any-to-any

Introduction of hidream-e1-full

Model Details of hidream-e1-full

HiDream-E1 Demo

HiDream-E1 is an image editing model built on HiDream-I1 .

For more features and to experience the full capabilities of our product, please visit https://vivago.ai/ .

Project Updates
  • 🚀 April 28, 2025 : We've open-sourced the instruction-based image editing model HiDream-E1 .
Quick Start

Please make sure you have installed Flash Attention and latest Diffusers . We recommend CUDA versions 12.4 for the manual installation.

pip install -r requirements.txt
pip install -U flash-attn --no-build-isolation
pip install -U git+https://github.com/huggingface/diffusers.git

Then you can run the inference scripts to generate images:

python ./inference.py

Alternatively, you can use the model in your own code:

import torch
from transformers import PreTrainedTokenizerFast, LlamaForCausalLM
from pipeline_hidream_image_editing import HiDreamImageEditingPipeline
from PIL import Image

# Load the tokenizer and text encoder
tokenizer_4 = PreTrainedTokenizerFast.from_pretrained("meta-llama/Llama-3.1-8B-Instruct")
text_encoder_4 = LlamaForCausalLM.from_pretrained(
    "meta-llama/Llama-3.1-8B-Instruct",
    output_hidden_states=True,
    output_attentions=True,
    torch_dtype=torch.bfloat16,
)

# Load the HiDream pipeline
pipe = HiDreamImageEditingPipeline.from_pretrained(
    "HiDream-ai/HiDream-E1-Full",
    tokenizer_4=tokenizer_4,
    text_encoder_4=text_encoder_4,
    torch_dtype=torch.bfloat16,
)

# Load and prepare input image
test_image = Image.open("your_image.jpg")
test_image = test_image.resize((768, 768))

# Move pipeline to GPU
pipe = pipe.to("cuda", torch.bfloat16)

# Generate edited image
image = pipe(
    prompt = 'Editing Instruction: Convert the image into a Ghibli style. Target Image Description: A person in a light pink t-shirt with short dark hair, depicted in a Ghibli style against a plain background.',
    negative_prompt = "low resolution, blur",
    image = test_image,
    guidance_scale=5.0,
    image_guidance_scale=4.0,
    num_inference_steps=28,
    generator=torch.Generator("cuda").manual_seed(3),
).images[0]

# Save output image
image.save("output.jpg")

The inference script will try to automatically download meta-llama/Llama-3.1-8B-Instruct model files. You need to agree to the license of the Llama model on your HuggingFace account and login using huggingface-cli login in order to use the automatic downloader.

The model accepts instructions in the following format:

Editing Instruction: {instruction}. Target Image Description: {description}

Example:

Editing Instruction: Convert the image into a Ghibli style. Target Image Description: A person in a light pink t-shirt with short dark hair, depicted in a Ghibli style against a plain background.

To refine your instructions, use the provided script:

python ./instruction_refinement.py --src_image ./test.jpeg --src_instruction "convert the image into a Ghibli style"

The instruction refinement script requires a VLM API key - you can either run vllm locally or use OpenAI's API.

Gradio Demo

We also provide a Gradio demo for interactive image editing. You can run the demo with:

python gradio_demo.py 
Evaluation Metrics

Evaluation results on EmuEdit and ReasonEdit Benchmarks. Higher is better.

Model EmuEdit Global EmuEdit Add EmuEdit Text EmuEdit BG EmuEdit Color EmuEdit Style EmuEdit Remove EmuEdit Local EmuEdit Average ReasonEdit
OmniGen 1.37 2.09 2.31 0.66 4.26 2.36 4.73 2.10 2.67 7.36
MagicBrush 4.06 3.54 0.55 3.26 3.83 2.07 2.70 3.28 2.81 1.75
UltraEdit 5.31 5.19 1.50 4.33 4.50 5.71 2.63 4.58 4.07 2.89
Gemini-2.0-Flash 4.87 7.71 6.30 5.10 7.30 3.33 5.94 6.29 5.99 6.95
HiDream-E1 5.32 6.98 6.45 5.01 7.57 6.49 5.99 6.35 6.40 7.54
License Agreement

The Transformer models in this repository are licensed under the MIT License. The VAE is from FLUX.1 [schnell] , and the text encoders from google/t5-v1_1-xxl and meta-llama/Meta-Llama-3.1-8B-Instruct . Please follow the license terms specified for these components. You own all content you create with this model. You can use your generated content freely, but you must comply with this license agreement. You are responsible for how you use the models. Do not create illegal content, harmful material, personal information that could harm others, false information, or content targeting vulnerable groups.

Acknowledgements
  • The VAE component is from FLUX.1 [schnell] , licensed under Apache 2.0.
  • The text encoders are from google/t5-v1_1-xxl (licensed under Apache 2.0) and meta-llama/Meta-Llama-3.1-8B-Instruct (licensed under the Llama 3.1 Community License Agreement).

Runs of Runware hidream-e1-full on huggingface.co

27
Total runs
0
24-hour runs
1
3-day runs
2
7-day runs
23
30-day runs

More Information About hidream-e1-full huggingface.co Model

More hidream-e1-full license Visit here:

https://choosealicense.com/licenses/mit

hidream-e1-full huggingface.co

hidream-e1-full huggingface.co is an AI model on huggingface.co that provides hidream-e1-full's model effect (), which can be used instantly with this Runware hidream-e1-full model. huggingface.co supports a free trial of the hidream-e1-full model, and also provides paid use of the hidream-e1-full. Support call hidream-e1-full model through api, including Node.js, Python, http.

hidream-e1-full huggingface.co Url

https://huggingface.co/Runware/hidream-e1-full

Runware hidream-e1-full online free

hidream-e1-full huggingface.co is an online trial and call api platform, which integrates hidream-e1-full's modeling effects, including api services, and provides a free online trial of hidream-e1-full, you can try hidream-e1-full online for free by clicking the link below.

Runware hidream-e1-full online free url in huggingface.co:

https://huggingface.co/Runware/hidream-e1-full

hidream-e1-full install

hidream-e1-full is an open source model from GitHub that offers a free installation service, and any user can find hidream-e1-full on GitHub to install. At the same time, huggingface.co provides the effect of hidream-e1-full install, users can directly use hidream-e1-full installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

hidream-e1-full install url in huggingface.co:

https://huggingface.co/Runware/hidream-e1-full

Url of hidream-e1-full

hidream-e1-full huggingface.co Url

Provider of hidream-e1-full huggingface.co

Runware
ORGANIZATIONS

Other API from Runware

huggingface.co

Total runs: 3.9K
Run Growth: 1.6K
Growth Rate: 40.87%
Updated:October 30 2025
huggingface.co

Total runs: 101
Run Growth: -38
Growth Rate: -38.38%
Updated:July 30 2025
huggingface.co

Total runs: 95
Run Growth: 0
Growth Rate: 0.00%
Updated:August 07 2025
huggingface.co

Total runs: 46
Run Growth: 29
Growth Rate: 82.86%
Updated:July 30 2025
huggingface.co

Total runs: 1
Run Growth: 0
Growth Rate: 0.00%
Updated:August 05 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 26 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 09 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 03 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 25 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 05 2025