Instructions to use elvis92/pets_rank_2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use elvis92/pets_rank_2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("elvis92/pets_rank_2") 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 diffusers/.github/workflows/pr_dependency_test.yml from elvis92/pets_rank_2: direct link, hf CLI and curl.
- Browser
- Download file 702 Bytes
-
https://huggingface.co/elvis92/pets_rank_2/resolve/main/diffusers/.github/workflows/pr_dependency_test.yml
- Command line
-
hf download hf://elvis92/pets_rank_2/diffusers/.github/workflows/pr_dependency_test.yml
-
curl -L -o pr_dependency_test.yml https://huggingface.co/elvis92/pets_rank_2/resolve/main/diffusers/.github/workflows/pr_dependency_test.yml
702 Bytes
| name: Run dependency tests | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| check_dependencies: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.8" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| pip install pytest | |
| - name: Check for soft dependencies | |
| run: | | |
| pytest tests/others/test_dependencies.py | |