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
#3
by rmsandu - opened
- README.md +8 -0
- images/example_jg3yw7dcl.png +3 -0
README.md
CHANGED
|
@@ -28,6 +28,14 @@ widget:
|
|
| 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
|
|
|
|
| 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 |
+
- text: >-
|
| 32 |
+
[FOUR-VIEWS] This set of four images show different angles of a golden
|
| 33 |
+
motorbike; [TOP-LEFT] This photo shows a full frontal view of the motorbike;
|
| 34 |
+
[TOP-RIGHT] This photo shows a 45 degree angle of the motorbike;
|
| 35 |
+
[BOTTOM-LEFT] This photo shows a front view of the motorbike; [BOTTOM-RIGHT]
|
| 36 |
+
This photo shows the motorbike from above.
|
| 37 |
+
output:
|
| 38 |
+
url: images/example_jg3yw7dcl.png
|
| 39 |
base_model: black-forest-labs/FLUX.1-dev
|
| 40 |
instance_prompt: '[FOUR-VIEWS]'
|
| 41 |
license: apache-2.0
|
images/example_jg3yw7dcl.png
ADDED
|
Git LFS Details
|