Text-to-Image
Diffusers
TensorBoard
StableDiffusionPipeline
stable-diffusion
stable-diffusion-diffusers
Instructions to use Aminrabi/diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Aminrabi/diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Aminrabi/diffusers", 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
| name: Build Docker images (nightly) | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 0 * * *" # every day at midnight | |
| concurrency: | |
| group: docker-image-builds | |
| cancel-in-progress: false | |
| env: | |
| REGISTRY: diffusers | |
| jobs: | |
| build-docker-images: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| image-name: | |
| - diffusers-pytorch-cpu | |
| - diffusers-pytorch-cuda | |
| - diffusers-flax-cpu | |
| - diffusers-flax-tpu | |
| - diffusers-onnxruntime-cpu | |
| - diffusers-onnxruntime-cuda | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Login to Docker Hub | |
| uses: docker/login-action@v2 | |
| with: | |
| username: ${{ env.REGISTRY }} | |
| password: ${{ secrets.DOCKERHUB_TOKEN }} | |
| - name: Build and push | |
| uses: docker/build-push-action@v3 | |
| with: | |
| no-cache: true | |
| context: ./docker/${{ matrix.image-name }} | |
| push: true | |
| tags: ${{ env.REGISTRY }}/${{ matrix.image-name }}:latest | |