Instructions to use Sawata97/flux2_4b_koni_animestyle with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Sawata97/flux2_4b_koni_animestyle 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.2-klein-4B", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("Sawata97/flux2_4b_koni_animestyle") prompt = "一位拥有浅蓝色波浪长发与翠绿色眼眸的少女,坐在一棵枝繁叶茂的大树树荫下的草地上。她穿着现代风格的白色短袖衬衫和深蓝色百褶裙,双腿并拢微微屈起,双手放松地搭在膝盖上。阳光透过树叶的缝隙,在她身上和周围的草地上投下斑驳的光点。她的表情宁静,目光柔和地望向侧前方。画面采用现代动画插画风格,细节清晰,色彩明亮柔和,背景是虚化的公园草地和远处的树木。" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
KeyError: 'single_blocks.20.linear1.lora_A.weight'
2
#1 opened 7 months ago
by
zhtstar