Run this model with HF Jobs
Run nitrosocke/archer-diffusion on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/nitrosocke/archer-diffusion. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/nitrosocke/archer-diffusion on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use nitrosocke/archer-diffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use nitrosocke/archer-diffusion with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("nitrosocke/archer-diffusion", 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
Commit ·
6e4dac8
1
Parent(s): e2c6509
Add diffusers example
Browse files7 unmodified lines89101112137 unmodified linesIf you enjoy this model, please check out my other models on [Huggingface](https://huggingface.co/nitrosocke)**Portraits rendered with the model:****Celebrities rendered with the model:**7 unmodified lines8910111213141516171819202122232425262728293031323334357 unmodified linesIf you enjoy this model, please check out my other models on [Huggingface](https://huggingface.co/nitrosocke)### 🧨 DiffusersThis model can be used just like any other Stable Diffusion model. For more information,please have a look at the [Stable Diffusion](https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion).You can also export the model to [ONNX](https://huggingface.co/docs/diffusers/optimization/onnx), [MPS](https://huggingface.co/docs/diffusers/optimization/mps) and/or [FLAX/JAX]().```python#!pip install diffusers transformers scipy torchfrom diffusers import StableDiffusionPipelineimport torchmodel_id = "nitrosocke/archer-diffusion"pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)pipe = pipe.to("cuda")prompt = "a magical princess with golden hair, archer style"image = pipe(prompt).images[0]image.save("./magical_princess.png")```**Portraits rendered with the model:****Celebrities rendered with the model:**
README.md+22