Instructions to use xfcghj/AR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use xfcghj/AR with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("xfcghj/AR", 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
Download scripts/download.sh from xfcghj/AR: direct link, hf CLI and curl.
- Browser
- Download file 357 Bytes
-
https://huggingface.co/xfcghj/AR/resolve/main/scripts/download.sh
- Command line
-
hf download hf://xfcghj/AR/scripts/download.sh
-
curl -L -o download.sh https://huggingface.co/xfcghj/AR/resolve/main/scripts/download.sh
357 Bytes
| set -e | |
| export HF_ENDPOINT=https://hf-mirror.com | |
| MODEL_ID="microsoft/TRELLIS-image-large" | |
| TARGET_DIR="/home/dataset-assist-0/models/TRELLIS-image-large" | |
| mkdir -p "$TARGET_DIR" | |
| huggingface-cli download "$MODEL_ID" \ | |
| --local-dir "$TARGET_DIR" \ | |
| --local-dir-use-symlinks False \ | |
| --resume-download | |
| echo "下载完成:$TARGET_DIR" |