Instructions to use WoodRoof/shanghai with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use WoodRoof/shanghai with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("WoodRoof/shanghai", 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 text_encoder/pytorch_model.bin from WoodRoof/shanghai: direct link, hf CLI and curl.
- Browser
- Download file 492 MB
-
https://huggingface.co/WoodRoof/shanghai/resolve/main/text_encoder/pytorch_model.bin
- Command line
-
hf download hf://WoodRoof/shanghai/text_encoder/pytorch_model.bin
-
curl -L -o pytorch_model.bin https://huggingface.co/WoodRoof/shanghai/resolve/main/text_encoder/pytorch_model.bin
492 MB
- Xet hash:
- 41859631882c67bbfcf7b86e4a8dfbb8807a7020980c0cf8a9fc481e53604414
- Size of remote file:
- 492 MB
- SHA256:
- 127d2a76ba3df795867f165c43b4bf9ad0d38b39495f0be98f6488d1022f8a96
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.