Instructions to use rmsandu/fourviews-incontext-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use rmsandu/fourviews-incontext-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("rmsandu/fourviews-incontext-lora") prompt = "[FOUR-VIEWS] a red desk lamp from multiple views;[TOP-LEFT] This photo shows a 45-degree angle of desk lamp;[TOP-RIGHT] This photo shows a high-angle shot of the lamp; [BOTTOM-LEFT] Here is a side view shot of lamp; [BOTTOM-RIGHT] The back view of the desk lamp." image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Add generated example
Browse filesGenerated example for model rmsandu/fourviews-incontext-lora.
Prompt: [FOUR-VIEWS] This set of four images show different angles of an IKEA white bed ; [TOP-LEFT] This photo shows a side view of the bed; [TOP-RIGHT] This photo shows the left view of the bed; [BOTTOM-LEFT] This photo shows a front view of the bed; [BOTTOM-RIGHT] This photo shows a back view of the bed."
- README.md +8 -0
- images/example_n5u06nx5j.png +3 -0
README.md
CHANGED
|
@@ -21,10 +21,18 @@ widget:
|
|
| 21 |
[BOTTOM-RIGHT] The back view of the desk lamp.
|
| 22 |
output:
|
| 23 |
url: images/example_qevsnjb3v.png
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
base_model: black-forest-labs/FLUX.1-dev
|
| 25 |
instance_prompt: '[FOUR-VIEWS]'
|
| 26 |
license: apache-2.0
|
| 27 |
pipeline_tag: text-to-image
|
|
|
|
| 28 |
---
|
| 29 |
# fourviews-incontext-lora
|
| 30 |
|
|
|
|
| 21 |
[BOTTOM-RIGHT] The back view of the desk lamp.
|
| 22 |
output:
|
| 23 |
url: images/example_qevsnjb3v.png
|
| 24 |
+
- text: >-
|
| 25 |
+
[FOUR-VIEWS] This set of four images show different angles of an IKEA white
|
| 26 |
+
bed ; [TOP-LEFT] This photo shows a side view of the bed; [TOP-RIGHT] This
|
| 27 |
+
photo shows the left view of the bed; [BOTTOM-LEFT] This photo shows a front
|
| 28 |
+
view of the bed; [BOTTOM-RIGHT] This photo shows a back view of the bed."
|
| 29 |
+
output:
|
| 30 |
+
url: images/example_n5u06nx5j.png
|
| 31 |
base_model: black-forest-labs/FLUX.1-dev
|
| 32 |
instance_prompt: '[FOUR-VIEWS]'
|
| 33 |
license: apache-2.0
|
| 34 |
pipeline_tag: text-to-image
|
| 35 |
+
|
| 36 |
---
|
| 37 |
# fourviews-incontext-lora
|
| 38 |
|
images/example_n5u06nx5j.png
ADDED
|
Git LFS Details
|