JoyAI-Image-Edit
Awakening Spatial Intelligence in Unified Multimodal Understanding and Generation
🐶 JoyAI-Image-Edit
JoyAI-Image-Edit is a multimodal foundation model specialized in instruction-guided image editing. It enables precise and controllable edits by leveraging strong spatial understanding, including scene parsing, relational grounding, and instruction decomposition, allowing complex modifications to be applied accurately to specified regions.
🚀 Quick Start
Requirements
: Python >= 3.10, CUDA-capable GPU
Core Dependencies
Package
Version
Purpose
torch
>= 2.8
PyTorch
transformers
>= 4.57.0, < 4.58.0
Text encoder
Install the
Pull Request
of JoyAI-Image-Edit of diffusers
import torch
from PIL import Image
from diffusers import JoyImageEditPipeline
pipeline = JoyImageEditPipeline.from_pretrained("jdopensource/JoyAI-Image-Edit-Diffusers")
pipeline.to(torch.bfloat16)
pipeline.to("cuda")
pipeline.set_progress_bar_config(disable=None)
print("pipeline loaded")
img_path = "./test_images/input.png"
prompt = "Remove the construction structure from the top of the crane."
image = Image.open(img_path).convert("RGB")
prompts = [f"<|im_start|>user\n<image>\n{prompt}<|im_end|>\n"]
inputs = {
"image": image,
"prompt": prompts,
"generator": torch.manual_seed(0),
"num_inference_steps": 30,
"guidance_scale": 4.0,
}
print("run pipeline...")
with torch.inference_mode():
output = pipeline(**inputs)
image = output.images[0]
image.save("joyai_image_edit_output.png")
print("image saved.")
More Usages
Spatial Editing Reference
JoyAI-Image supports three spatial editing prompt patterns:
Object Move
,
Object Rotation
, and
Camera Control
. For the most stable behavior, we recommend following the prompt templates below as closely as possible.
1. Object Move
Use this pattern when you want to move a target object into a specified region.
Prompt template:
Move the <object> into the red box and finally remove the red box.
Rules:
Replace
<object>
with a clear description of the target object to be moved.
The
red box
indicates the target destination in the image.
The phrase
"finally remove the red box"
means the guidance box should not appear in the final edited result.
Example:
Move the apple into the red box and finally remove the red box.
2. Object Rotation
Use this pattern when you want to rotate an object to a specific canonical view.
Prompt template:
Rotate the <object> to show the <view> side view.
Supported
<view>
values:
front
right
left
rear
front right
front left
rear right
rear left
Rules:
Replace
<object>
with a clear description of the object to rotate.
Replace
<view>
with one of the supported directions above.
This instruction is intended to change the
object orientation
, while keeping the object identity and surrounding scene as consistent as possible.
Examples:
Rotate the chair to show the front side view.
Rotate the car to show the rear left side view.
3. Camera Control
Use this pattern when you want to change only the camera viewpoint while keeping the 3D scene itself unchanged.
Prompt template:
Move the camera.
- Camera rotation: Yaw {y_rotation}°, Pitch {p_rotation}°.
- Camera zoom: in/out/unchanged.
- Keep the 3D scene static; only change the viewpoint.
Rules:
{y_rotation}
specifies the yaw rotation angle in degrees.
{p_rotation}
specifies the pitch rotation angle in degrees.
Camera zoom
must be one of:
in
out
unchanged
The last line is important: it explicitly tells the model to preserve the 3D scene content and geometry, and only adjust the camera viewpoint.
Examples:
Move the camera.
- Camera rotation: Yaw 45°, Pitch 0°.
- Camera zoom: in.
- Keep the 3D scene static; only change the viewpoint.
Move the camera.
- Camera rotation: Yaw -90°, Pitch 20°.
- Camera zoom: unchanged.
- Keep the 3D scene static; only change the viewpoint.
License Agreement
JoyAI-Image is licensed under Apache 2.0.
☎️ We're Hiring!
We are actively hiring Research Scientists, Engineers, and Interns to join us in building next-generation generative foundation models and bringing them into real-world applications. If you’re interested, please send your resume to:
[email protected]
Runs of jdopensource JoyAI-Image-Edit-Diffusers on huggingface.co
74.7K
Total runs
0
24-hour runs
-2.9K
3-day runs
-4.6K
7-day runs
29.9K
30-day runs
More Information About JoyAI-Image-Edit-Diffusers huggingface.co Model
More JoyAI-Image-Edit-Diffusers license Visit here:
JoyAI-Image-Edit-Diffusers huggingface.co is an AI model on huggingface.co that provides JoyAI-Image-Edit-Diffusers's model effect (), which can be used instantly with this jdopensource JoyAI-Image-Edit-Diffusers model. huggingface.co supports a free trial of the JoyAI-Image-Edit-Diffusers model, and also provides paid use of the JoyAI-Image-Edit-Diffusers. Support call JoyAI-Image-Edit-Diffusers model through api, including Node.js, Python, http.
JoyAI-Image-Edit-Diffusers huggingface.co is an online trial and call api platform, which integrates JoyAI-Image-Edit-Diffusers's modeling effects, including api services, and provides a free online trial of JoyAI-Image-Edit-Diffusers, you can try JoyAI-Image-Edit-Diffusers online for free by clicking the link below.
jdopensource JoyAI-Image-Edit-Diffusers online free url in huggingface.co:
JoyAI-Image-Edit-Diffusers is an open source model from GitHub that offers a free installation service, and any user can find JoyAI-Image-Edit-Diffusers on GitHub to install. At the same time, huggingface.co provides the effect of JoyAI-Image-Edit-Diffusers install, users can directly use JoyAI-Image-Edit-Diffusers installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
JoyAI-Image-Edit-Diffusers install url in huggingface.co: