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
#5
by rmsandu - opened
- README.md +7 -0
- images/example_cujunw6xh.png +3 -0
README.md
CHANGED
|
@@ -35,6 +35,13 @@ widget:
|
|
| 35 |
[BOTTOM-RIGHT] A low angle view of the bedroom.
|
| 36 |
output:
|
| 37 |
url: images/example_w9qva3imf.png
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
base_model: black-forest-labs/FLUX.1-dev
|
| 39 |
instance_prompt: '[FOUR-VIEWS]'
|
| 40 |
license: apache-2.0
|
|
|
|
| 35 |
[BOTTOM-RIGHT] A low angle view of the bedroom.
|
| 36 |
output:
|
| 37 |
url: images/example_w9qva3imf.png
|
| 38 |
+
- text: >-
|
| 39 |
+
[FOUR-VIEWS] this photo set shows a cute pug dog from multiple
|
| 40 |
+
angles;[TOP-LEFT] This photo shows a 45-degree angle of the pug ;[TOP-RIGHT]
|
| 41 |
+
This photo shows a high-angle shot of the pug; [BOTTOM-LEFT] Here is a side
|
| 42 |
+
view shot of the pug.[BOTTOM-RIGHT] A low angle view of the pug..
|
| 43 |
+
output:
|
| 44 |
+
url: images/example_cujunw6xh.png
|
| 45 |
base_model: black-forest-labs/FLUX.1-dev
|
| 46 |
instance_prompt: '[FOUR-VIEWS]'
|
| 47 |
license: apache-2.0
|
images/example_cujunw6xh.png
ADDED
|
Git LFS Details
|