File size: 13,871 Bytes
2d57bdf
 
 
 
 
 
754b88e
 
 
 
 
2d57bdf
754b88e
 
 
 
 
 
 
 
 
 
2d57bdf
8e85ab2
754b88e
 
 
 
 
 
 
2d57bdf
8e85ab2
754b88e
 
 
 
 
 
 
2d57bdf
8e85ab2
754b88e
 
 
 
 
 
 
 
8e85ab2
 
754b88e
 
 
 
 
 
 
 
8e85ab2
 
754b88e
 
 
 
 
 
 
8e85ab2
 
754b88e
 
 
 
 
 
 
 
 
8e85ab2
 
754b88e
 
 
 
 
 
 
 
8e85ab2
 
754b88e
 
 
 
 
 
 
 
8e85ab2
 
2d57bdf
 
 
 
ba06f4f
2d57bdf
 
 
 
66e07f4
 
 
 
e9f109c
66e07f4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2d57bdf
 
 
 
 
8e85ab2
2d57bdf
66e07f4
 
 
 
 
 
 
 
 
 
91d1f13
e62b85e
 
 
91d1f13
 
 
e62b85e
 
 
66e07f4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2d57bdf
 
 
 
754b88e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
---
tags:
- text-to-image
- lora
- diffusers
- template:diffusion-lora
- flux
- dev
- polygon
- 3d
- character
widget:
- text: >-
    Create a hyper-realistic 3D polygon character portrait of a woman in her
    early 30s with short, tousled platinum blonde hair. She has piercing blue
    eyes, pale skin with subtle freckles, and a sharp jawline. She wears a black
    leather jacket over a simple white t-shirt, giving off a contemporary, urban
    vibe. Her expression is confident and slightly rebellious, with a smirk
    playing on her lips. The lighting is dramatic, casting shadows on one side
    of her face and highlighting the texture of her skin and the gloss on her
    lips. The background is a cityscape at night with blurred lights, adding to
    the modern and edgy atmosphere.
  output:
    url: images/999.webp
- text: >-
    Create a highly realistic 3D polygon character portrait of an elderly man
    with gray hair and a well-kept beard. He has light blue eyes, deep facial
    wrinkles, and a kind but thoughtful expression. His skin shows signs of age
    with age spots and subtle imperfections, and he’s wearing a brown sweater.
    The lighting is soft and natural, emphasizing the wisdom and experience in
    his face. The background is a cozy indoor setting with warm tones.
  output:
    url: images/888.webp
- text: >-
    Generate a 3D polygon character portrait of a young woman in her late 20s
    with long, wavy red hair and fair skin covered in freckles. She has bright
    green eyes, a friendly smile, and a casual outfit—a light green sweater. The
    lighting highlights her natural features, especially the freckles across her
    nose and cheeks. The background is an outdoor park with sunlight filtering
    through the trees, creating a warm, inviting atmosphere.
  output:
    url: images/777.webp
- text: >-
    Create a 3D polygon character portrait of a young athletic man in his early
    20s. He has short, curly black hair, dark brown eyes, and a clean-shaven
    face. His muscular build is visible through a sleeveless workout shirt, and
    his skin is glowing with sweat, hinting at recent physical activity. His
    expression is focused and intense. The lighting is dynamic, highlighting the
    contours of his muscles and the texture of his skin. The background is a gym
    setting, slightly out of focus
  output:
    url: images/666.webp
- text: >-
    Generate a 3D polygon character portrait of a woman in her mid-30s with a
    polished, sophisticated look. She has sleek, straight black hair pulled into
    a low bun, deep brown eyes, and a natural makeup look. Her skin is smooth,
    with a subtle glow, and she’s wearing a high-necked dark blue blouse. The
    lighting is soft and elegant, casting gentle highlights on her face. The
    background is minimalist, with soft, blurred tones that don’t distract from
    her poised expression.
  output:
    url: images/555.webp
- text: >-
    Create a realistic 3D polygon character portrait of a middle-aged man with a
    rugged appearance. He has short, dark hair with a bit of gray, a
    well-groomed beard, and striking hazel eyes. His skin shows signs of aging
    with visible lines, and he wears a black leather jacket. His expression is
    serious, and the lighting highlights the texture of his skin and the detail
    in his beard. The background is a dimly lit urban scene with soft shadows.
  output:
    url: images/444.webp
- text: >-
    Generate multiple side-angle shots of a highly realistic 3D polygon
    character portrait of a woman with dark brown, slicked-back hair. She has
    fair skin, full lips, and brown eyes with defined eyebrows. The facial
    texture is incredibly detailed, showcasing subtle pores, slight
    imperfections, and natural lighting on her skin. In the side angles, focus
    on her profile, capturing the sharpness of her jawline, the shape of her
    nose, and the texture of her hair. Keep the background neutral and simple,
    with soft lighting that accentuates the contours of her face.
  output:
    url: images/333.webp
- text: >-
    Create a realistic 3D polygon character portrait of a woman with blonde,
    wavy hair that falls over her shoulders. She has light skin, full lips, and
    striking green eyes. The woman is wearing elegant drop earrings and a red,
    sleeveless dress with a subtle neckline. Her expression is neutral yet
    confident. The lighting is soft and natural, emphasizing the texture of her
    skin and the shine in her hair. The background is dark and simple, keeping
    the focus on the woman’s face and upper body
  output:
    url: images/222.webp
- text: >-
    Create a highly detailed, realistic 3D polygon character portrait of a young
    man with piercing blue-green eyes, light stubble, and fair skin. He is
    wearing a backward red cap and small hoop earrings in both ears. The man has
    a serious expression, with slightly pursed lips. His hair is dark and
    appears to be wet under the cap. The lighting is soft, highlighting the
    texture of his skin, pores, and fine facial hair. The background is dark and
    blurry, allowing the focus to remain on the face of the character.
  output:
    url: images/111.webp
base_model: black-forest-labs/FLUX.1-dev
instance_prompt: 3D Polygon
license: creativeml-openrail-m
---

# Castor-Character-Polygon-LoRA-Flux

<Gallery />

**The model is still in the training phase. This is not the final version and may contain artifacts and perform poorly in some cases.**

## Model description 

**prithivMLmods/Castor-Character-Polygon-LoRA**

Image Processing Parameters 

| Parameter                 | Value  | Parameter                 | Value  |
|---------------------------|--------|---------------------------|--------|
| LR Scheduler              | constant | Noise Offset              | 0.03   |
| Optimizer                 | AdamW  | Multires Noise Discount   | 0.1    |
| Network Dim               | 64     | Multires Noise Iterations | 10     |
| Network Alpha             | 32     | Repeat & Steps           | 27 & 1.9K+ |
| Epoch                     | 15     | Save Every N Epochs       | 1      |

    Labeling: florence2-en(natural language & English)
    
    Total Images Used for Training : 25+ [ Hi-RES ]

## Data Source  

    https://search.muz.li/

## Trigger words

You should use `3D Polygon` to trigger the image generation.

You should use `3D Polygon Character` to trigger the image generation.

# Character Creation Prompts

| Character Type                        | Description                                                                                                                                        |
| ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Hyper-Realistic Young Man**          | "Create a hyper-realistic polygon 3D portrait of a young man in his late 20s. He has short, dark hair, deep blue eyes, and light stubble on his face. He wears a red cap, slightly worn, with a casual, loose-fitting t-shirt. His expression is neutral, with a focused gaze. The lighting highlights his detailed facial textures, showing light freckles and a slight sheen on his skin, adding to the realism. The background is out of focus, with industrial elements, giving a gritty, urban feel." |
| **Elegant Woman in a Red Dress**       | "Create a hyper-realistic polygon 3D portrait of an elegant woman in her early 30s. She has long, wavy blonde hair and wears a vibrant red evening gown with delicate earrings. Her expression is poised and confident, with soft makeup accentuating her features. The lighting highlights her clear skin and the slight shimmer of her dress. The background is a soft-focus dark texture, drawing attention to her serene yet powerful presence."                             |
| **Realistic Woman with Wet Hair**      | "Create a hyper-realistic polygon 3D portrait of a woman in her late 20s with dark brown, wet hair slicked back. She has golden-brown eyes and subtle freckles on her face. She wears minimal makeup, and her skin shows natural imperfections, adding to the realism. Her expression is neutral yet focused, with slightly parted lips. The lighting is soft and even, emphasizing the texture of her skin and wet hair. The background is a simple gray gradient, keeping the focus on her." |
| **Modern-Day Woman with Short Hair**   | "Create a hyper-realistic polygon 3D portrait of a woman in her early 30s with short, tousled platinum blonde hair. She has piercing blue eyes, pale skin with subtle freckles, and a sharp jawline. She wears a black leather jacket over a simple white t-shirt, giving off a contemporary, urban vibe. Her expression is confident and slightly rebellious, with a smirk playing on her lips. The lighting is dramatic, casting shadows on one side of her face and highlighting the texture of her skin and the gloss on her lips. The background is a cityscape at night with blurred lights, adding to the modern and edgy atmosphere." |
| **Stylish Man with Beard and Glasses** | "Create a hyper-realistic polygon 3D portrait of a man in his mid-30s with neatly trimmed brown hair and a full beard. He wears black-rimmed glasses and a navy-blue suit with a crisp white shirt. His expression is serious yet approachable, with a slight furrow in his brow. The lighting highlights the texture of his beard and the slight glare on his glasses. The background is a blurred modern office environment, giving a professional yet relaxed tone." |

# Sample Image + Prompt

![3D Character Portrait](images/1000.webp)

| **Prompt**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Create multiple side-angle shots of a highly realistic 3D polygon character portrait featuring a young woman with vibrant curly red hair and a light complexion. Her hair is voluminous, showcasing a variety of textured curls that catch the light beautifully. She has a face adorned with delicate freckles scattered across her cheeks and nose, contributing to her youthful appearance. Her striking green eyes are large and expressive, framed by long lashes that add depth to her gaze. She possesses soft, naturally colored lips that are slightly parted, enhancing her inviting demeanor. The character has an oval face shape with soft contours, complemented by a petite nose that adds to her delicate features. The side views should highlight the luxurious volume of her curls, allowing for dynamic play of light and shadow, emphasizing the texture and richness of her hair. The background should be neutral and unobtrusive, designed to enhance the vibrant red hues in her hair and the softness of her complexion. Soft, diffused lighting should be used to create an ethereal glow on her skin, emphasizing her freckles and adding a warm undertone that complements her overall look. Focus on capturing the intricate details of her features, including the reflections in her green eyes, the subtle blush on her cheeks, and the gentle curvature of her lips. |



## Setting Up
```
import torch
from pipelines import DiffusionPipeline

base_model = "black-forest-labs/FLUX.1-dev"
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)

lora_repo = "prithivMLmods/Castor-Character-Polygon-LoRA"
trigger_word = "3D Polygon"  # Leave trigger_word blank if not used.
pipe.load_lora_weights(lora_repo)

device = torch.device("cuda")
pipe.to(device)
```
## App File Structure

/project-root/

├── .gitattributes         
├── README.md      
├── app.py             
├── pythonproject.py     

## Download model

Weights for this model are available in Safetensors format.

[Download](/prithivMLmods/Castor-Character-Polygon-LoRA/tree/main) them in the Files & versions tab.