Instructions to use Nihirc/Prompt2MedImage with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Nihirc/Prompt2MedImage with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Nihirc/Prompt2MedImage", 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
- Local Apps Settings
- Draw Things
- DiffusionBee
Download examples/hand.png from Nihirc/Prompt2MedImage: direct link, hf CLI and curl.
- Browser
- Download file 299 kB
-
https://huggingface.co/Nihirc/Prompt2MedImage/resolve/main/examples/hand.png
- Command line
-
hf download hf://Nihirc/Prompt2MedImage/examples/hand.png
-
curl -L -o hand.png https://huggingface.co/Nihirc/Prompt2MedImage/resolve/main/examples/hand.png
299 kB
