Instructions to use ali-vilab/In-Context-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ali-vilab/In-Context-LoRA with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("ali-vilab/In-Context-LoRA") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download images/386534865-9612cf8a-858d-4684-819e-7b97981d993c.png from ali-vilab/In-Context-LoRA: direct link, hf CLI and curl.
- Browser
- Download file 2.49 MB
-
https://huggingface.co/ali-vilab/In-Context-LoRA/resolve/main/images/386534865-9612cf8a-858d-4684-819e-7b97981d993c.png
- Command line
-
hf download hf://ali-vilab/In-Context-LoRA/images/386534865-9612cf8a-858d-4684-819e-7b97981d993c.png
-
curl -L -o 386534865-9612cf8a-858d-4684-819e-7b97981d993c.png https://huggingface.co/ali-vilab/In-Context-LoRA/resolve/main/images/386534865-9612cf8a-858d-4684-819e-7b97981d993c.png
2.49 MB

- Xet hash:
- 0fc625e20c43903db73e6eb6ed5e22ebe7ec91ad2c317e92198c230c1ffa808e
- Size of remote file:
- 2.49 MB
- SHA256:
- 123ccb9ebe43e8c0bddba1747107f7d14c060814ba9f8b6cca325ed08d7a2d11
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.