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
- Draw Things
- DiffusionBee
Add generated example
Browse filesGenerated example for model ali-vilab/In-Context-LoRA.
Prompt: Elon musk wearing a grey shirt with macdonalds red logo on it
- README.md +5 -0
- images/example_jm4czauqc.png +3 -0
README.md
CHANGED
|
@@ -7,6 +7,11 @@ tags:
|
|
| 7 |
base_model: black-forest-labs/FLUX.1-dev
|
| 8 |
instance_prompt: null
|
| 9 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
📢 [[Project Page](https://ali-vilab.github.io/In-Context-LoRA-Page/)] [[Github Repo](https://github.com/ali-vilab/In-Context-LoRA)] [[Paper](https://arxiv.org/abs/2410.23775)]
|
| 12 |
# 🔥 Latest News
|
|
|
|
| 7 |
base_model: black-forest-labs/FLUX.1-dev
|
| 8 |
instance_prompt: null
|
| 9 |
license: mit
|
| 10 |
+
widget:
|
| 11 |
+
- text: Elon musk wearing a grey shirt with macdonalds red logo on it
|
| 12 |
+
output:
|
| 13 |
+
url: images/example_jm4czauqc.png
|
| 14 |
+
|
| 15 |
---
|
| 16 |
📢 [[Project Page](https://ali-vilab.github.io/In-Context-LoRA-Page/)] [[Github Repo](https://github.com/ali-vilab/In-Context-LoRA)] [[Paper](https://arxiv.org/abs/2410.23775)]
|
| 17 |
# 🔥 Latest News
|
images/example_jm4czauqc.png
ADDED
|
Git LFS Details
|