Spaces:
Paused
Paused
Add complex typography examples
Browse files
.gitattributes
CHANGED
|
@@ -39,3 +39,7 @@ assets/examples/desk_lamp_1024.png filter=lfs diff=lfs merge=lfs -text
|
|
| 39 |
assets/examples/desk_lamp_1536.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
assets/examples/red_apple_1024.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
assets/examples/red_apple_1536.png filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
assets/examples/desk_lamp_1536.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
assets/examples/red_apple_1024.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
assets/examples/red_apple_1536.png filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
assets/examples/chinese_tea_packaging_1024.png filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
assets/examples/cyrillic_museum_poster_1024.png filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
assets/examples/korean_night_jazz_poster_1024.png filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
assets/examples/multiscript_design_festival_1024.png filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -39,10 +39,14 @@ The SeFi checkpoints are gated under CC BY-NC 4.0. The Space uses an `HF_TOKEN`
|
|
| 39 |
secret to download model files, so the Space owner account must first be approved
|
| 40 |
for each selected SeFi model repository.
|
| 41 |
|
| 42 |
-
The Space generates fixed 1024x1024 images. The
|
| 43 |
-
from this Space with `SeFi-Image-1B-turbo`
|
| 44 |
-
|
| 45 |
-
seed
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
The vendored `sefi/` inference package comes from
|
| 48 |
`jmliu206/SeFi-Image` at commit `2f02744a187639ee41a296f8177cbbe7e5f333f5`
|
|
|
|
| 39 |
secret to download model files, so the Space owner account must first be approved
|
| 40 |
for each selected SeFi model repository.
|
| 41 |
|
| 42 |
+
The Space generates fixed 1024x1024 images. The simple product-photo examples
|
| 43 |
+
were generated from this Space with `SeFi-Image-1B-turbo`; the typography and
|
| 44 |
+
script-heavy examples use `SeFi-Image-5B-RL`. Selecting an example fills the
|
| 45 |
+
prompt, parameters, seed, and output image while leaving the randomized seed
|
| 46 |
+
option enabled for the next generation.
|
| 47 |
+
|
| 48 |
+
The advanced examples cover complex poster and packaging prompts with Cyrillic,
|
| 49 |
+
Korean, Chinese, and mixed-script typography.
|
| 50 |
|
| 51 |
The vendored `sefi/` inference package comes from
|
| 52 |
`jmliu206/SeFi-Image` at commit `2f02744a187639ee41a296f8177cbbe7e5f333f5`
|
app.py
CHANGED
|
@@ -171,6 +171,68 @@ EXAMPLES = [
|
|
| 171 |
"seed": 6203,
|
| 172 |
"image": str(EXAMPLE_ASSETS_DIR / "desk_lamp_1024.png"),
|
| 173 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 174 |
]
|
| 175 |
|
| 176 |
_MODEL_LOCK = threading.Lock()
|
|
|
|
| 171 |
"seed": 6203,
|
| 172 |
"image": str(EXAMPLE_ASSETS_DIR / "desk_lamp_1024.png"),
|
| 173 |
},
|
| 174 |
+
{
|
| 175 |
+
"label": "Cyrillic museum poster",
|
| 176 |
+
"model_key": "5b-rl",
|
| 177 |
+
"prompt": (
|
| 178 |
+
'A complex museum poster for a northern light exhibition, strong '
|
| 179 |
+
'editorial typography, large readable Cyrillic headline "СЕВЕРНЫЙ '
|
| 180 |
+
'СВЕТ", smaller Cyrillic subheading "выставка света и льда", '
|
| 181 |
+
"asymmetric Swiss grid composition, layered translucent paper, icy "
|
| 182 |
+
"blue and black ink, precise margins, high-end graphic design, "
|
| 183 |
+
"photographed as a printed poster on a gallery wall."
|
| 184 |
+
),
|
| 185 |
+
"steps": 50,
|
| 186 |
+
"guidance": 4.0,
|
| 187 |
+
"seed": 7301,
|
| 188 |
+
"image": str(EXAMPLE_ASSETS_DIR / "cyrillic_museum_poster_1024.png"),
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"label": "Korean night jazz poster",
|
| 192 |
+
"model_key": "5b-rl",
|
| 193 |
+
"prompt": (
|
| 194 |
+
'A sophisticated Korean night jazz festival poster, large Hangul '
|
| 195 |
+
'title "서울의 밤", smaller Hangul text "재즈 페스티벌", vertical '
|
| 196 |
+
"composition with a saxophone silhouette, neon reflections on rain, "
|
| 197 |
+
"black paper, magenta and cyan spot colors, tight typographic "
|
| 198 |
+
"hierarchy, centered moon circle, elegant modern Seoul design."
|
| 199 |
+
),
|
| 200 |
+
"steps": 50,
|
| 201 |
+
"guidance": 4.0,
|
| 202 |
+
"seed": 7302,
|
| 203 |
+
"image": str(EXAMPLE_ASSETS_DIR / "korean_night_jazz_poster_1024.png"),
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"label": "Chinese tea packaging",
|
| 207 |
+
"model_key": "5b-rl",
|
| 208 |
+
"prompt": (
|
| 209 |
+
'Premium Chinese tea packaging poster, large brush-style Chinese '
|
| 210 |
+
'characters "春风茶馆", small vertical Chinese seal text, ceramic '
|
| 211 |
+
"tea cup and folded paper wrapper, balanced negative space, deep "
|
| 212 |
+
"jade green and warm ivory, gold foil accents, product photography "
|
| 213 |
+
"mixed with graphic layout, calm luxury composition."
|
| 214 |
+
),
|
| 215 |
+
"steps": 50,
|
| 216 |
+
"guidance": 4.0,
|
| 217 |
+
"seed": 7303,
|
| 218 |
+
"image": str(EXAMPLE_ASSETS_DIR / "chinese_tea_packaging_1024.png"),
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"label": "Multiscript design festival",
|
| 222 |
+
"model_key": "5b-rl",
|
| 223 |
+
"prompt": (
|
| 224 |
+
'International design festival poster with three writing systems in '
|
| 225 |
+
'one composition: Cyrillic "ТИХИЙ ГОРОД", Korean "고요한 도시", '
|
| 226 |
+
'Chinese "静城". Use the texts as bold typographic blocks, modular '
|
| 227 |
+
"grid, architectural isometric city fragments, layered risograph "
|
| 228 |
+
"texture, red black and pale gray palette, disciplined composition, "
|
| 229 |
+
"poster photographed flat on a studio table."
|
| 230 |
+
),
|
| 231 |
+
"steps": 50,
|
| 232 |
+
"guidance": 4.0,
|
| 233 |
+
"seed": 7304,
|
| 234 |
+
"image": str(EXAMPLE_ASSETS_DIR / "multiscript_design_festival_1024.png"),
|
| 235 |
+
},
|
| 236 |
]
|
| 237 |
|
| 238 |
_MODEL_LOCK = threading.Lock()
|
assets/examples/chinese_tea_packaging_1024.png
ADDED
|
Git LFS Details
|
assets/examples/cyrillic_museum_poster_1024.png
ADDED
|
Git LFS Details
|
assets/examples/korean_night_jazz_poster_1024.png
ADDED
|
Git LFS Details
|
assets/examples/multiscript_design_festival_1024.png
ADDED
|
Git LFS Details
|