Update README.md
Browse files
README.md
CHANGED
|
@@ -1,71 +1,71 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: other
|
| 3 |
-
license_name: flux-1-dev-non-commercial-license
|
| 4 |
-
license_link: >-
|
| 5 |
-
https://github.com/black-forest-labs/flux/blob/main/model_licenses/LICENSE-FLUX1-dev
|
| 6 |
-
base_model:
|
| 7 |
-
- black-forest-labs/FLUX.1-dev
|
| 8 |
-
tags:
|
| 9 |
-
- flux
|
| 10 |
-
- flux-diffusers
|
| 11 |
-
- text-to-image
|
| 12 |
-
- image-generation
|
| 13 |
-
- diffusers
|
| 14 |
-
- lora
|
| 15 |
-
pipeline_tag: text-to-image
|
| 16 |
-
library_name: diffusers
|
| 17 |
-
widget:
|
| 18 |
-
- text: 'A modern bedroom features a low platform bed with a grey upholstered headboard in the center, light oak flooring, two white nightstands with silver lamps, a large window with sheer white curtains on the left, a built-in wooden wardrobe on the right, and a textured beige rug beneath the bed.'
|
| 19 |
-
output:
|
| 20 |
-
url: assets/bedroom.png
|
| 21 |
-
- text: 'A bright living room features a beige sectional sofa, light wood flooring, a glass coffee table, a TV unit with open shelving, a large window with roller blinds, and a woven basket holding blankets near the sofa.'
|
| 22 |
-
output:
|
| 23 |
-
url: assets/livingroom.png
|
| 24 |
-
- text: 'A formal dining room has a long mahogany table with eight upholstered chairs, a crystal chandelier overhead, a Persian-style rug beneath, a mirrored wall on one side, and a built-in wine cabinet with ambient lighting.'
|
| 25 |
-
output:
|
| 26 |
-
url: assets/diningroom.png
|
| 27 |
-
- text: 'A modern kitchen features white high-gloss cabinets, a large central island with a marble countertop and bar stools, stainless steel appliances, a tiled backsplash, recessed ceiling lighting, and a window above the sink overlooking the garden.'
|
| 28 |
-
output:
|
| 29 |
-
url: assets/kitchen.png
|
| 30 |
-
- text: 'A contemporary study showcases a dark wood desk with built-in storage, a leather office chair, a floor-to-ceiling bookshelf on the left, a wall-mounted monitor, a notepad and pen on the desk, and recessed ceiling lighting.'
|
| 31 |
-
output:
|
| 32 |
-
url: assets/office.png
|
| 33 |
-
- text: 'A stylish study features a walnut desk with brass accents, a mid-century modern chair, a built-in bookshelf with ladder access, a globe on a stand, a floor lamp with a black shade, and a textured area rug.'
|
| 34 |
-
output:
|
| 35 |
-
url: assets/study.png
|
| 36 |
-
---
|
| 37 |
-
|
| 38 |
-
`FLUX.1 Panorama [dev] LoRA` is a LoRA model for [FLUX.1 [dev]](https://huggingface.co/black-forest-labs/FLUX.1-dev), designed to generate high-quality panoramic images from textual description, with a focus on realistic interior design scenes.
|
| 39 |
-
|
| 40 |
-
<Gallery />
|
| 41 |
-
|
| 42 |
-
## Diffusers
|
| 43 |
-
|
| 44 |
-
```python
|
| 45 |
-
import torch
|
| 46 |
-
from diffusers.pipelines.flux.pipeline_flux import FluxPipeline
|
| 47 |
-
|
| 48 |
-
pipe = FluxPipeline.from_pretrained(
|
| 49 |
-
"black-forest-labs/FLUX.1-dev",
|
| 50 |
-
torch_dtype=torch.bfloat16,
|
| 51 |
-
)
|
| 52 |
-
pipe.load_lora_weights("manycore-research/FLUX.1-Panorama-dev-lora")
|
| 53 |
-
pipe = pipe.to("cuda")
|
| 54 |
-
|
| 55 |
-
prompt = "A modern bedroom features a low platform bed with a grey upholstered headboard in the center, light oak flooring, two white nightstands with silver lamps, a large window with sheer white curtains on the left, a built-in wooden wardrobe on the right, and a textured beige rug beneath the bed."
|
| 56 |
-
|
| 57 |
-
image = pipe(
|
| 58 |
-
prompt=prompt,
|
| 59 |
-
height=
|
| 60 |
-
width=
|
| 61 |
-
guidance_scale=4.0,
|
| 62 |
-
num_inference_steps=20,
|
| 63 |
-
generator=torch.Generator(device="cpu").manual_seed(42),
|
| 64 |
-
).images[0]
|
| 65 |
-
|
| 66 |
-
image.save("output.png")
|
| 67 |
-
```
|
| 68 |
-
|
| 69 |
-
## LICENSE
|
| 70 |
-
|
| 71 |
The model falls under the [FLUX.1-dev Non-Commercial License](https://github.com/black-forest-labs/flux/blob/main/model_licenses/LICENSE-FLUX1-dev).
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: flux-1-dev-non-commercial-license
|
| 4 |
+
license_link: >-
|
| 5 |
+
https://github.com/black-forest-labs/flux/blob/main/model_licenses/LICENSE-FLUX1-dev
|
| 6 |
+
base_model:
|
| 7 |
+
- black-forest-labs/FLUX.1-dev
|
| 8 |
+
tags:
|
| 9 |
+
- flux
|
| 10 |
+
- flux-diffusers
|
| 11 |
+
- text-to-image
|
| 12 |
+
- image-generation
|
| 13 |
+
- diffusers
|
| 14 |
+
- lora
|
| 15 |
+
pipeline_tag: text-to-image
|
| 16 |
+
library_name: diffusers
|
| 17 |
+
widget:
|
| 18 |
+
- text: 'A modern bedroom features a low platform bed with a grey upholstered headboard in the center, light oak flooring, two white nightstands with silver lamps, a large window with sheer white curtains on the left, a built-in wooden wardrobe on the right, and a textured beige rug beneath the bed.'
|
| 19 |
+
output:
|
| 20 |
+
url: assets/bedroom.png
|
| 21 |
+
- text: 'A bright living room features a beige sectional sofa, light wood flooring, a glass coffee table, a TV unit with open shelving, a large window with roller blinds, and a woven basket holding blankets near the sofa.'
|
| 22 |
+
output:
|
| 23 |
+
url: assets/livingroom.png
|
| 24 |
+
- text: 'A formal dining room has a long mahogany table with eight upholstered chairs, a crystal chandelier overhead, a Persian-style rug beneath, a mirrored wall on one side, and a built-in wine cabinet with ambient lighting.'
|
| 25 |
+
output:
|
| 26 |
+
url: assets/diningroom.png
|
| 27 |
+
- text: 'A modern kitchen features white high-gloss cabinets, a large central island with a marble countertop and bar stools, stainless steel appliances, a tiled backsplash, recessed ceiling lighting, and a window above the sink overlooking the garden.'
|
| 28 |
+
output:
|
| 29 |
+
url: assets/kitchen.png
|
| 30 |
+
- text: 'A contemporary study showcases a dark wood desk with built-in storage, a leather office chair, a floor-to-ceiling bookshelf on the left, a wall-mounted monitor, a notepad and pen on the desk, and recessed ceiling lighting.'
|
| 31 |
+
output:
|
| 32 |
+
url: assets/office.png
|
| 33 |
+
- text: 'A stylish study features a walnut desk with brass accents, a mid-century modern chair, a built-in bookshelf with ladder access, a globe on a stand, a floor lamp with a black shade, and a textured area rug.'
|
| 34 |
+
output:
|
| 35 |
+
url: assets/study.png
|
| 36 |
+
---
|
| 37 |
+
|
| 38 |
+
`FLUX.1 Panorama [dev] LoRA` is a LoRA model for [FLUX.1 [dev]](https://huggingface.co/black-forest-labs/FLUX.1-dev), designed to generate high-quality panoramic images from textual description, with a focus on realistic interior design scenes.
|
| 39 |
+
|
| 40 |
+
<Gallery />
|
| 41 |
+
|
| 42 |
+
## Diffusers
|
| 43 |
+
|
| 44 |
+
```python
|
| 45 |
+
import torch
|
| 46 |
+
from diffusers.pipelines.flux.pipeline_flux import FluxPipeline
|
| 47 |
+
|
| 48 |
+
pipe = FluxPipeline.from_pretrained(
|
| 49 |
+
"black-forest-labs/FLUX.1-dev",
|
| 50 |
+
torch_dtype=torch.bfloat16,
|
| 51 |
+
)
|
| 52 |
+
pipe.load_lora_weights("manycore-research/FLUX.1-Panorama-dev-lora")
|
| 53 |
+
pipe = pipe.to("cuda")
|
| 54 |
+
|
| 55 |
+
prompt = "A modern bedroom features a low platform bed with a grey upholstered headboard in the center, light oak flooring, two white nightstands with silver lamps, a large window with sheer white curtains on the left, a built-in wooden wardrobe on the right, and a textured beige rug beneath the bed."
|
| 56 |
+
|
| 57 |
+
image = pipe(
|
| 58 |
+
prompt=prompt,
|
| 59 |
+
height=960,
|
| 60 |
+
width=1920,
|
| 61 |
+
guidance_scale=4.0,
|
| 62 |
+
num_inference_steps=20,
|
| 63 |
+
generator=torch.Generator(device="cpu").manual_seed(42),
|
| 64 |
+
).images[0]
|
| 65 |
+
|
| 66 |
+
image.save("output.png")
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
+
## LICENSE
|
| 70 |
+
|
| 71 |
The model falls under the [FLUX.1-dev Non-Commercial License](https://github.com/black-forest-labs/flux/blob/main/model_licenses/LICENSE-FLUX1-dev).
|