Instructions to use Shakker-Labs/FilmPortrait with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Shakker-Labs/FilmPortrait with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Shakker-Labs/FilmPortrait", dtype=torch.bfloat16, device_map="cuda") prompt = "A young asian girl, filmfotos,film grain, reversal film photography" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -64,7 +64,7 @@ from diffusers import FluxPipeline
|
|
| 64 |
|
| 65 |
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
|
| 66 |
pipe.load_lora_weights('Shakker-Labs/FilmPortrait', weight_name='filmfotos.safetensors')
|
| 67 |
-
pipe.fuse_lora(lora_scale=
|
| 68 |
pipe.to("cuda")
|
| 69 |
|
| 70 |
prompt = "a young girl, filmfotos, film grain, reversal film photography"
|
|
|
|
| 64 |
|
| 65 |
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
|
| 66 |
pipe.load_lora_weights('Shakker-Labs/FilmPortrait', weight_name='filmfotos.safetensors')
|
| 67 |
+
pipe.fuse_lora(lora_scale=0.9)
|
| 68 |
pipe.to("cuda")
|
| 69 |
|
| 70 |
prompt = "a young girl, filmfotos, film grain, reversal film photography"
|