Instructions to use althjs/sig-a-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use althjs/sig-a-lora 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("althjs/sig-a-lora") prompt = "hejin_sig_a, close-up portrait of a Korean woman, soft pastel sweater, calm smile, Studio Ghibli watercolor" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
| license: apache-2.0 | |
| language: | |
| - ko | |
| - en | |
| base_model: black-forest-labs/FLUX.2-klein-4B | |
| tags: | |
| - lora | |
| - flux2 | |
| - character | |
| - hejin-signature | |
| - 20s | |
| - female | |
| - korean | |
| pipeline_tag: text-to-image | |
| library_name: diffusers | |
| widget: | |
| - text: "hejin_sig_a, close-up portrait of a Korean woman, soft pastel sweater, calm smile, Studio Ghibli watercolor" | |
| # sig_a_20s_female_korean | |
| > **20๋ ํ๊ตญ ์ฌ์ฑ ยท ๋ฏธ์๋ ** | |
| ํ๊ตญ YouTube ์ฝํ ์ธ ์๋ํ ํ์ดํ๋ผ์ธ [hejin](https://github.com/althjs/hejin) ์ ์๊ทธ๋์ฒ ์บ๋ฆญํฐ ๋ผ์ด๋ธ๋ฌ๋ฆฌ LoRA. | |
| ## ํต์ฌ ์ ๋ณด | |
| | ํญ๋ชฉ | ๊ฐ | | |
| |---|---| | |
| | **Trigger word** | `hejin_sig_a` | | |
| | **๊ถ์ฅ strength** | `0.8` | | |
| | **Base model** | [Flux 2 Klein 4B](https://huggingface.co/black-forest-labs/FLUX.2-klein-4B) | | |
| | **๋ผ์ด์ผ์ค** | `apache-2.0` | | |
| | **ํ์ผ๋ช ** | `sig_a_20s_female_korean_flux2_v1.safetensors` | | |
| ## ์บ๋ฆญํฐ ์ ๋ณด | |
| ์ธ๋ชจ ๋ฒ ์ด์ค: a young Korean woman in her early 20s with soft natural beauty, shoulder-length dark brown hair with gentle side bangs, large warm brown eyes, soft pale skin, gentle calm expression often with a subtle warm smile, slender graceful build. ๊ถ์ฅ ์์ prior: ์บ์ฃผ์ผ ํ์คํ sweater (sky blue / pink / cream) / ํ์ดํธ ๋ธ๋ผ์ฐ์ค / light blue tee / cream knit + beige wide-leg pants / yellow sundress / blue gingham dress / ํ๊ต ๊ต๋ณต (ํฐ ๋ธ๋ผ์ฐ์ค + ๋ค์ด๋น ๋ธ๋ ์ด์ ) / ํ๋ณต (jeogori + chima ๋ถํยท์ฐํ์คํ ) / modern hanbok with simple lines / ๋ฒ ์ด์ง ํธ๋ ์น ์ฝํธ / dark turtleneck / red plaid shirt. ๊ถ์ฅ ๋ถ์๊ธฐ: ํ๊ตญ ์ฒญ์ถ ๋๋ผ๋ง ์ฌ์ฃผ์ธ๊ณต, ํ๊ตญ ํ์๋ฌผ ์ฃผ์ธ๊ณต, ์ฒซ์ฌ๋ ํํํ ๋ถ์๊ธฐ, ๋จ์ ํ๊ณ ๋ฐ๋ปํ ์ธ์, ํ๊ตญ ์ฒญ์ถ ์ฌ๊ทน์ ์๋ฐ๊ฐ ์ฒ๋ , ๋์ ๋ํ์ ์ ์ ์ฌ์ฑ. ํ์ฉ ์ํ ์: ํ๊ตญ ์ฒญ์ถ ๋๋ผ๋ง ์ฌ์ฃผ, ํ๊ตญ ํ์๋ฌผ / ์ฒญ์ถ๋ฌผ ์ฃผ์ธ๊ณต, ํ๊ตญ ๊ฐ์กฑ ๋๋ผ๋ง ๋ธ/์กฐ์นด, ํ์ /ํ ์ง ๊ฐ์ ์ฌ๊ทน์ ์๋ฐ๊ฐ ์ฒ๋ , ๋์ ๋ํ (์ด๋ฆฐ์์์ ์ฅ๋ฏธ ๊ฐ์) ์ ์ ์ ์ฌ์ฑ, ํ๊ตญ ์ฒซ์ฌ๋ / ํ์๋ฌผ ์ฌ์ฃผ. ํ์ต ์ caption โ 60~90 chars sweet spot, <trigger>, <framing> of a Korean woman, <์์ 1~2 ๋จ์ด>, <ํ์ 1~2 ๋จ์ด> ํ์. face ๋ฌ์ฌ (๋์/๋จธ๋ฆฌ ๊ธธ์ด/ํผ๋ถ ๋ฑ) ๋ caption ์ ๋ฐ์ง ๋ง ๊ฒ โ trigger word hejin_sig_a ๋ง์ผ๋ก face ํธ์ถ. Klein 4B v3 ํ์ต ๊ฒ์ฆ ์๋ฃ (Apache 2.0 ๋ผ์ด์ผ์ค, ์ฑ๋ ์์ตํ ์์ ). dataset ์์ฑ prompt ๋ฒ ์ด์ค: 'a young Korean woman in her early 20s, soft natural beauty, shoulder-length dark brown hair with gentle side bangs, large warm brown eyes, soft pale skin, gentle calm expression with a subtle warm smile, painterly Studio Ghibli watercolor, soft warm afternoon light.' | |
| ## ํ์ต ์ ๋ณด | |
| - **๋ฐ์ดํฐ์ **: 20 ์ปท (1024ร1024) โ ์์ / ํ์ / ๋ฐฐ๊ฒฝ ๋ค์ํ | |
| - **Caption ํ์**: `hejin_sig_a, <framing> of <identity>, <์์ 1~2 ๋จ์ด>, <ํ์ 1~2 ๋จ์ด>` (60~90 chars sweet spot) | |
| - **Caption ์์น**: face ๋ฌ์ฌ (๋์ยท๋จธ๋ฆฌ ๊ธธ์ดยทํผ๋ถ ๋ฑ) ๋ caption ์ ๋ฐ์ง ์๊ณ trigger word ๋ง์ผ๋ก face ํธ์ถ โ face ํ์ต ์ ํธ dominant | |
| - **Base model**: Flux 2 Klein 4B | |
| - **ํ์ต ๋๊ตฌ**: [ai-toolkit](https://github.com/ostris/ai-toolkit) (Ostris) โ rank 24 / alpha 16 / lr 1e-4 / steps 1500 / flowmatch scheduler | |
| ## ์ฌ์ฉ ์์ โ WaveSpeed Cloud API | |
| ```bash | |
| curl -X POST https://api.wavespeed.ai/api/v3/wavespeed-ai/flux-2-klein-4b/text-to-image-lora \ | |
| -H "Authorization: Bearer $WAVESPEED_API_KEY" \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "prompt": "hejin_sig_a, close-up portrait of a Korean woman, soft pastel sweater, calm smile, Studio Ghibli watercolor", | |
| "size": "1024*1024", | |
| "seed": 12345, | |
| "loras": [{"path": "https://huggingface.co/althjs/sig-a-lora/resolve/main/sig_a_klein4b_v3.safetensors", "scale": 0.8}] | |
| }' | |
| ``` | |
| ## ๋ผ์ด์ผ์ค | |
| ์ด LoRA ๋ base model `Flux 2 Klein 4B` ์ ๋ผ์ด์ผ์ค (`apache-2.0`) ๋ฅผ ๋ฐ๋ฅธ๋ค. | |
| Apache 2.0 โ ์์ ์ฌ์ฉ / ์์ / ์ฌ๋ฐฐํฌ ์์ . royalty-free. | |
| ## ํ์ต ๋ฐ์ดํฐ์ ๋ฏธ๋ฆฌ๋ณด๊ธฐ | |
| ํ์ต์ ์ฌ์ฉ๋ dataset ์ผ๋ถ (์ ์ฒด 20์ปท์ `dataset/` ํด๋ ์ฐธ์กฐ): | |
| ||||| | |
| |:-:|:-:|:-:|:-:| | |
| ||||| | |
| |#01|#05|#10|#15| | |
| ๊ฐ ์ปท์ caption ํ์ผ (`dataset/NN.txt`) ์ ํ์ต ์ ์ฌ์ฉ๋ ์งง์ ํ์ (60~90 chars) ์ผ๋ก trigger + framing + identity + ์์ + ํ์ ๋ง ํฌํจ. |