Instructions to use pandaphd/generative_photography with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use pandaphd/generative_photography with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("pandaphd/generative_photography", 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
Fix pipeline tag and add library name
#2
by nielsr HF Staff - opened
This PR updates the model card by correcting the pipeline tag to text-to-image and adding the diffusers library name. This change improves the model's discoverability on the Hub and enables the "Use in Spaces" button.