wanghaofan
commited on
Commit
•
ff69145
1
Parent(s):
03c1928
Update README.md
Browse files
README.md
CHANGED
@@ -2,43 +2,76 @@
|
|
2 |
tags:
|
3 |
- text-to-image
|
4 |
- stable-diffusion
|
5 |
-
- lora
|
6 |
- diffusers
|
7 |
-
-
|
|
|
|
|
8 |
widget:
|
9 |
- text: A young asian girl, filmfotos,film grain, reversal film photography
|
10 |
output:
|
11 |
-
url: images/
|
12 |
- text: >-
|
13 |
A young Japanese girl, profile, blue hours, Tokyo tower, filmfotos,film
|
14 |
grain, reversal film photography
|
15 |
output:
|
16 |
-
url: images/
|
17 |
- text: Tokyo street photography, filmfotos,film grain, reversal film photography
|
18 |
output:
|
19 |
-
url: images/
|
20 |
base_model: black-forest-labs/FLUX.1-dev
|
21 |
instance_prompt: filmfotos, film grain, reversal film photography
|
22 |
license: other
|
23 |
license_name: flux-1-dev-non-commercial-license
|
24 |
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
|
|
|
|
|
|
|
25 |
---
|
26 |
# FilmPortrait
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
<Gallery />
|
29 |
|
30 |
|
31 |
## Trigger words
|
32 |
|
33 |
-
You should use `filmfotos` to trigger the image generation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
|
35 |
-
|
36 |
|
37 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
|
|
|
39 |
|
40 |
-
|
41 |
|
42 |
-
Weights for this model are available in Safetensors format.
|
43 |
|
44 |
-
|
|
|
|
2 |
tags:
|
3 |
- text-to-image
|
4 |
- stable-diffusion
|
|
|
5 |
- diffusers
|
6 |
+
- image-generation
|
7 |
+
- flux
|
8 |
+
- safetensors
|
9 |
widget:
|
10 |
- text: A young asian girl, filmfotos,film grain, reversal film photography
|
11 |
output:
|
12 |
+
url: images/1.png
|
13 |
- text: >-
|
14 |
A young Japanese girl, profile, blue hours, Tokyo tower, filmfotos,film
|
15 |
grain, reversal film photography
|
16 |
output:
|
17 |
+
url: images/2.png
|
18 |
- text: Tokyo street photography, filmfotos,film grain, reversal film photography
|
19 |
output:
|
20 |
+
url: images/3.png
|
21 |
base_model: black-forest-labs/FLUX.1-dev
|
22 |
instance_prompt: filmfotos, film grain, reversal film photography
|
23 |
license: other
|
24 |
license_name: flux-1-dev-non-commercial-license
|
25 |
license_link: https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md
|
26 |
+
language:
|
27 |
+
- en
|
28 |
+
library_name: diffusers
|
29 |
---
|
30 |
# FilmPortrait
|
31 |
|
32 |
+
<div class="container">
|
33 |
+
<img src="./poster.jpeg" width="1024"/>
|
34 |
+
</div>
|
35 |
+
|
36 |
+
FilmPortrait is a LoRA model finetuned on FLUX.1-dev, specifically designed to enhance the film texture. It embodies a subdued, low-saturation color palette reminiscent of classic Japanese cinema, which is particularly evident in its portrayal of characters (with a subtle bias towards Asian features), serene still lifes, and sweeping landscapes. The model delivers an exceptional aesthetic experience, capturing the essence of a bygone era with modern precision.
|
37 |
+
|
38 |
+
<div class="container">
|
39 |
+
<img src="./cover.jpeg" width="1024"/>
|
40 |
+
</div>
|
41 |
+
|
42 |
<Gallery />
|
43 |
|
44 |
|
45 |
## Trigger words
|
46 |
|
47 |
+
You should use `filmfotos, film grain, reversal film photography` to trigger the image generation.
|
48 |
+
|
49 |
+
|
50 |
+
## Inference
|
51 |
+
|
52 |
+
```python
|
53 |
+
import torch
|
54 |
+
from diffusers import FluxPipeline
|
55 |
+
|
56 |
+
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
|
57 |
+
pipe.load_lora_weights('Shakker-Labs/FilmPortrait', weight_name='filmfotos.safetensors')
|
58 |
+
pipe.fuse_lora(lora_scale=1.0)
|
59 |
+
pipe.to("cuda")
|
60 |
|
61 |
+
prompt = "a young girl, filmfotos, film grain, reversal film photography"
|
62 |
|
63 |
+
image = pipe(prompt,
|
64 |
+
num_inference_steps=24,
|
65 |
+
guidance_scale=3.5,
|
66 |
+
width=768, height=1024,
|
67 |
+
).images[0]
|
68 |
+
image.save(f"example.png")
|
69 |
+
```
|
70 |
|
71 |
+
## Online Inference
|
72 |
|
73 |
+
You can also download this model at [Shakker AI](https://www.shakker.ai/modelinfo/baa0dc46adb34547860a17a571065c9d?from=feed), where we provide an online interface to generate images.
|
74 |
|
|
|
75 |
|
76 |
+
## Acknowledgements
|
77 |
+
This model is trained by our copyrighted users [DynamicWang](https://www.shakker.ai/userpage/dfca7abc67c04a9492ea738d864de070/publish). We release this model under permissions. The model follows [flux-1-dev-non-commercial-license](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md).
|