🚀 AWPortrait-FL
AWPortrait-FL是一款文本到圖像的模型,基於FLUX.1-dev進行微調。它使用了AWPortrait-XL的訓練集以及近2000張具有極高美學品質的時尚攝影照片進行訓練。該模型在構圖和細節方面有顯著提升,能夠生成皮膚和紋理更加細膩逼真的圖像。
🚀 快速開始
模型推理
import torch
from diffusers import FluxPipeline
pipe = FluxPipeline.from_pretrained("Shakker-Labs/AWPortrait-FL", torch_dtype=torch.bfloat16)
pipe.to("cuda")
prompt = "close up portrait, Amidst the interplay of light and shadows in a photography studio,a soft spotlight traces the contours of a face,highlighting a figure clad in a sleek black turtleneck. The garment,hugging the skin with subtle luxury,complements the Caucasian model's understated makeup,embodying minimalist elegance. Behind,a pale gray backdrop extends,its fine texture shimmering subtly in the dim light,artfully balancing the composition and focusing attention on the subject. In a palette of black,gray,and skin tones,simplicity intertwines with profundity,as every detail whispers untold stories."
image = pipe(prompt,
num_inference_steps=24,
guidance_scale=3.5,
width=768, height=1024,
).images[0]
image.save(f"example.png")
LoRA推理
為了節省內存,我們還提供了LoRA版本以實現相同的性能。
import torch
from diffusers import FluxPipeline
pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
pipe.load_lora_weights('Shakker-Labs/AWPortrait-FL', weight_name='AWPortrait-FL-lora.safetensors')
pipe.fuse_lora(lora_scale=0.9)
pipe.to("cuda")
prompt = "close up portrait, Amidst the interplay of light and shadows in a photography studio,a soft spotlight traces the contours of a face,highlighting a figure clad in a sleek black turtleneck. The garment,hugging the skin with subtle luxury,complements the Caucasian model's understated makeup,embodying minimalist elegance. Behind,a pale gray backdrop extends,its fine texture shimmering subtly in the dim light,artfully balancing the composition and focusing attention on the subject. In a palette of black,gray,and skin tones,simplicity intertwines with profundity,as every detail whispers untold stories."
image = pipe(prompt,
num_inference_steps=24,
guidance_scale=3.5,
width=768, height=1024,
).images[0]
image.save(f"example.png")
在線推理
你也可以在Shakker AI下載此模型,我們在該平臺提供了在線圖像生成界面。
✨ 主要特性
- 微調優化:基於FLUX.1-dev進行微調,使用了高質量的訓練數據,在構圖和細節上有顯著提升。
- 效果出色:生成的圖像皮膚和紋理更加細膩逼真。
- 節省內存:提供LoRA版本,可在節省內存的同時實現相同性能。
📦 模型信息
屬性 |
詳情 |
模型類型 |
文本到圖像模型 |
基礎模型 |
black-forest-labs/FLUX.1-dev |
庫名稱 |
diffusers |
訓練數據 |
AWPortrait-XL的訓練集以及近2000張時尚攝影照片 |
📄 許可證
本模型遵循flux-1-dev-non-commercial-license,生成的圖像也僅可用於非商業用途。該模型由我們擁有版權的用戶DynamicWang訓練,並在獲得許可的情況下發布。
🔍 對比展示
以下示例展示了在相同參數設置下,與FLUX.1-dev的簡單對比。
🖼️ 模型展示
海報展示
封面展示