Instructions to use openai/shap-e-img2img with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use openai/shap-e-img2img 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("openai/shap-e-img2img", 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
Commit History
-
new_renderer_folder (#7)
- renderer -> shap_e_renderer (9ce2fafebd09e9637e46ad784a09815391358e3d)0e0aba8
-
Serialize variables with FP16: True and safetensors: True. (#4)
- Serialize variables with FP16: True and safetensors: True. (1aa085749d610570134e5c29525cac521946e93e) Co-authored-by: Sayak Paul <sayakpaul@users.noreply.huggingface.co>d719bd9
-
Upload diffusion_pytorch_model.bin
ac86348 -
Let background default to white
c3a2d5c -
Update model_index.json (#3)
- Update model_index.json (d3fe7f6ce01607d19990f8b046ef406985af428f) Co-authored-by: YiYi Xu <YiYiXu@users.noreply.huggingface.co>5de4bfd -
Update README.md (#2)
- Update README.md (3bdc4d392ba7f55602763ef238a43e9e7b85c2c7) Co-authored-by: Sayak Paul <sayakpaul@users.noreply.huggingface.co>f57a050 -
Fix scheduler JSON config (#1)
- Update scheduler/scheduler_config.json (873418e71b7505dc766e856250e9d393b0ef472e) Co-authored-by: Sayak Paul <sayakpaul@users.noreply.huggingface.co>089e3f2
-
Update README.md
d919967 -
Update README.md
da6b844 -
Duplicate from YiYiXu/shap-e-img2img
Co-authored-by: YiYi Xu <YiYiXu@users.noreply.huggingface.co>6fd50d3