Run this model with HF Jobs
Run jdopensource/JoyAI-Image-Edit-Diffusers on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/jdopensource/JoyAI-Image-Edit-Diffusers on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use jdopensource/JoyAI-Image-Edit-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use jdopensource/JoyAI-Image-Edit-Diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("jdopensource/JoyAI-Image-Edit-Diffusers", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files26 unmodified lines27282930313233343536373839404142434445467 unmodified lines5455565758596042 unmodified lines10310410510610710810911025 unmodified lines13613713813914014114214314430 unmodified lines1751761771781791801811821831841 unmodified line18618718818919026 unmodified lines**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](https://github.com/huggingface/diffusers/pull/13444]) of JoyAI-Image-Edit of diffusers```bashpip install git+https://github.com/huggingface/diffusers.git@refs/pull/13444```#### Running with Diffusers```pythonimport torchfrom PIL import Image7 unmodified linesprint("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"]42 unmodified lines**Example:**```textMove the apple into the red box and finally remove the red box.```#### 2. Object Rotation25 unmodified lines**Examples:**```textRotate the chair to show the front side view.Rotate the car to show the rear left side view.```#### 3. Camera Control30 unmodified lines```textMove the camera.- Camera rotation: Yaw -90°, Pitch 20°.- Camera zoom: unchanged.- Keep the 3D scene static; only change the viewpoint.```## License Agreement1 unmodified line## ☎️ 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: [huanghaoyang.ocean@jd.com](mailto:huanghaoyang.ocean@jd.com)26 unmodified lines272829303132333435363738394041424344454647484950515253547 unmodified lines6263646566676842 unmodified lines11111211311411511611711811912012112225 unmodified lines14814915015115215315415515615715815916030 unmodified lines1911921931941951961971981992002012022032041 unmodified line20620720820921026 unmodified lines**Requirements**: Python >= 3.10, CUDA-capable GPU### Core DependenciesThe transformers version must be **between 4.57 and 4.58**; otherwise, incorrect results may occur.| Package | Version | Purpose ||---------|---------|---------|| `torch` | >= 2.8 | PyTorch || `transformers` | >= 4.57.0, < 4.58.0 | Text encoder || `torchvison` | - |Image process|| `einops` | - |Tensor manipulation|### Install the [Pull Request](https://github.com/huggingface/diffusers/pull/13444]) of JoyAI-Image-Edit of diffusers```bashpip install git+https://github.com/huggingface/diffusers.git@refs/pull/13444/head```### Or install from this repo (PR will merge to diffusers main branch soon)```bashpip install torch==2.8 transformers==4.57.6 torchvision einopspip install git+https://github.com/Moran232/diffusers.git@joyimage_edit```### Running with Diffusers```pythonimport torchfrom PIL import Image7 unmodified linesprint("pipeline loaded")img_path = "./test_images/input.png"prompt = "Move the board into the red box and finally remove the red box."image = Image.open(img_path).convert("RGB")prompts = [f"<|im_start|>user\n<image>\n{prompt}<|im_end|>\n"]42 unmodified lines**Example:**```textMove the board into the red box and finally remove the red box.```<p align="center"><img src="test_images/input1.png" width="40%" /><img src="test_images/output1_predicted.png" width="40%" /></p>#### 2. Object Rotation25 unmodified lines**Examples:**```textRotate the dog to show the left side view.```<p align="center"><img src="test_images/input2.png" width="40%" /><img src="test_images/output2_predicted.png" width="40%" /></p>#### 3. Camera Control30 unmodified lines```textMove the camera.- Camera rotation: Yaw 0.0°, Pitch -15.0°.- Camera zoom: unchanged.- Keep the 3D scene static; only change the viewpoint.```<p align="center"><img src="test_images/input3.png" width="40%" /><img src="test_images/output3_predicted.png" width="40%" /></p>## License Agreement1 unmodified line## ☎️ We're Hiring!We are actively hiring Research Scientists, AI Infra 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: [huanghaoyang.ocean@jd.com](mailto:huanghaoyang.ocean@jd.com)
README.md+31-11