Instructions to use aifeifei798/AWPortraitCN with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use aifeifei798/AWPortraitCN 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.1-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("aifeifei798/AWPortraitCN") prompt = "this photo is a Chinese girl" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("aifeifei798/AWPortraitCN")
prompt = "this photo is a Chinese girl"
image = pipe(prompt).images[0]AWPortraitCN
.webp)
- Prompt
- this photo is a Chinese girl
Model description
https://huggingface.co/Shakker-Labs/AWPortraitCN
AWPortraitCN is based on the FLUX.1-dev. It is trained on images that is more in line with the appearance and aesthetics of Chinese people. It includes many types of portraits, such as indoor and outdoor portraits, fashion, and studio photos. It has strong generalization. Compared with the original version, AWPortraitCN is more delicate and realistic in skin quality. In order to pursue a more realistic raw image effect, it can be used with the AWPortraitSR workflow.
Trigger words
No trigger words are requireds. LoRA recommends a weight of 0.9-1.
Download model
Weights for this model are available in Safetensors format.
Download them in the Files & versions tab.
- Downloads last month
- 15
Model tree for aifeifei798/AWPortraitCN
Base model
black-forest-labs/FLUX.1-dev