Run this model with HF Jobs
Run kiigii/imagedream-ipmv-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/kiigii/imagedream-ipmv-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/kiigii/imagedream-ipmv-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 kiigii/imagedream-ipmv-diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use kiigii/imagedream-ipmv-diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("kiigii/imagedream-ipmv-diffusers", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files12345674 unmodified lines121314151617---license: apache-2.0tags:- diffusers:ImageDreamPipeline---# ImageDream-diffusers Model CardThis is a port of https://huggingface.co/Peng-Wang/ImageDream into diffusers.4 unmodified linesThis work has been fully ported to diffusers, including UNet.And separated the IP-adapter-plus from the unet.## Citation```@article{wang2023imagedream,123454 unmodified lines101112131415161718192021222324252627282930313233343536373839404142434445---license: apache-2.0---# ImageDream-diffusers Model CardThis is a port of https://huggingface.co/Peng-Wang/ImageDream into diffusers.4 unmodified linesThis work has been fully ported to diffusers, including UNet.And separated the IP-adapter-plus from the unet.## Diffusers```pythonimport torchfrom diffusers import DiffusionPipelinefrom diffusers.utils import make_image_gridfrom PIL import Imagepipe = DiffusionPipeline.from_pretrained("kiigii/imagedream-ipmv-diffusers",torch_dtype=torch.float16,trust_remote_code=True,custom_pipeline="pipeline_imagedream",)pipe.load_ip_adapter()pipe.to("cude")prompt = ""image = Image.open(...)mv_images = pipe(ip_adapter_image=image,guidance_scale=5,num_inference_steps=30,elevation=0,num_images_per_prompt=1).imagesmv_grid = make_image_grid(mv_images[:4], 2, 2)mv_grid.save("mv_image.png")```## Citation```@article{wang2023imagedream,
README.md+30-2