Expand picker: 24 animals (lookalike-grouped) + 16 places
Browse files- Animals +12: mouse, wolf, bear, pig, cow, pony, chicken, otter, octopus,
bee, ladybug, dragon โ reordered into lookalike groups (pets ยท canines/bears ยท
big cats ยท farm ยท water/amphibian ยท bugs ยท mythical)
- Places +6: canyon, castle, theme park, tent, disco ball, circus
- Kept ANIMAL_EMOJIS/PLACE_EMOJIS (app.py picker) and ANIMAL_MAP/PLACE_MAP
(image_generator prompts) in identical key + order โ verified no fallbacks
The style LoRA generalizes to the new animals/places (trained on the original
12ร10 but it's a style adapter, so new subjects still render in the cozy look).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- app.py +12 -2
- image_generator.py +16 -4
app.py
CHANGED
|
@@ -18,8 +18,18 @@ from image_generator import generate_reward_image
|
|
| 18 |
|
| 19 |
ANSWERS_PER_LEVEL = 5
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
MATH_LEVEL_NAMES = {1: "Additions", 2: "Subtractions", 3: "Multiplications", 4: "Mix", 5: "Mix +"}
|
| 25 |
|
|
|
|
| 18 |
|
| 19 |
ANSWERS_PER_LEVEL = 5
|
| 20 |
|
| 21 |
+
# Animals โ ordered by lookalike groups (pets ยท canines/bears ยท big cats ยท farm ยท
|
| 22 |
+
# water/amphibian ยท bugs ยท mythical) so similar creatures sit together in the picker.
|
| 23 |
+
ANIMAL_EMOJIS = [
|
| 24 |
+
"๐ถ", "๐ฑ", "๐ฐ", "๐ญ", "๐ฆ", "๐บ",
|
| 25 |
+
"๐ป", "๐ผ", "๐จ", "๐ฆ", "๐ฏ", "๐ท",
|
| 26 |
+
"๐ฎ", "๐ด", "๐", "๐ธ", "๐ฆฆ", "๐ง",
|
| 27 |
+
"๐", "๐ฆ", "๐", "๐", "๐ฆ", "๐",
|
| 28 |
+
]
|
| 29 |
+
PLACE_EMOJIS = [
|
| 30 |
+
"๐", "๐๏ธ", "๐ธ", "๐", "๐", "โญ", "๐ด", "๐ก", "๐บ", "๐",
|
| 31 |
+
"๐๏ธ", "๐ฐ", "๐ข", "โบ", "๐ชฉ", "๐ช",
|
| 32 |
+
]
|
| 33 |
|
| 34 |
MATH_LEVEL_NAMES = {1: "Additions", 2: "Subtractions", 3: "Multiplications", 4: "Mix", 5: "Mix +"}
|
| 35 |
|
image_generator.py
CHANGED
|
@@ -163,13 +163,19 @@ else:
|
|
| 163 |
# Emoji โ descriptive text maps (fed into FLUX prompt)
|
| 164 |
# ---------------------------------------------------------------------------
|
| 165 |
|
|
|
|
| 166 |
ANIMAL_MAP: dict[str, str] = {
|
| 167 |
-
"๐ถ": "puppy",
|
| 168 |
-
"
|
| 169 |
-
"
|
| 170 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 171 |
}
|
| 172 |
|
|
|
|
| 173 |
PLACE_MAP: dict[str, str] = {
|
| 174 |
"๐": "on a sunny beach with ocean waves",
|
| 175 |
"๐๏ธ": "on a snowy mountain top",
|
|
@@ -181,6 +187,12 @@ PLACE_MAP: dict[str, str] = {
|
|
| 181 |
"๐ก": "in a cosy cottage garden",
|
| 182 |
"๐บ": "in a field of tropical flowers",
|
| 183 |
"๐": "in an enchanted mushroom forest",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 184 |
}
|
| 185 |
|
| 186 |
# Shared style suffix โ must stay in sync with STYLE in scripts/generate_dataset.py.
|
|
|
|
| 163 |
# Emoji โ descriptive text maps (fed into FLUX prompt)
|
| 164 |
# ---------------------------------------------------------------------------
|
| 165 |
|
| 166 |
+
# Keep keys + order in sync with ANIMAL_EMOJIS in app.py (grouped by lookalike).
|
| 167 |
ANIMAL_MAP: dict[str, str] = {
|
| 168 |
+
"๐ถ": "puppy", "๐ฑ": "kitten", "๐ฐ": "bunny",
|
| 169 |
+
"๐ญ": "baby mouse", "๐ฆ": "baby fox", "๐บ": "baby wolf",
|
| 170 |
+
"๐ป": "baby bear", "๐ผ": "baby panda", "๐จ": "baby koala",
|
| 171 |
+
"๐ฆ": "baby lion", "๐ฏ": "baby tiger", "๐ท": "baby pig",
|
| 172 |
+
"๐ฎ": "baby cow", "๐ด": "pony", "๐": "chicken",
|
| 173 |
+
"๐ธ": "baby frog", "๐ฆฆ": "baby otter", "๐ง": "baby penguin",
|
| 174 |
+
"๐": "baby octopus", "๐ฆ": "butterfly", "๐": "bee",
|
| 175 |
+
"๐": "ladybug", "๐ฆ": "unicorn", "๐": "baby dragon",
|
| 176 |
}
|
| 177 |
|
| 178 |
+
# Keep keys + order in sync with PLACE_EMOJIS in app.py.
|
| 179 |
PLACE_MAP: dict[str, str] = {
|
| 180 |
"๐": "on a sunny beach with ocean waves",
|
| 181 |
"๐๏ธ": "on a snowy mountain top",
|
|
|
|
| 187 |
"๐ก": "in a cosy cottage garden",
|
| 188 |
"๐บ": "in a field of tropical flowers",
|
| 189 |
"๐": "in an enchanted mushroom forest",
|
| 190 |
+
"๐๏ธ": "in a red rock canyon",
|
| 191 |
+
"๐ฐ": "in a fairytale castle",
|
| 192 |
+
"๐ข": "at a fun theme park",
|
| 193 |
+
"โบ": "in a cosy camping tent",
|
| 194 |
+
"๐ชฉ": "under a sparkling disco ball",
|
| 195 |
+
"๐ช": "at a colourful circus",
|
| 196 |
}
|
| 197 |
|
| 198 |
# Shared style suffix โ must stay in sync with STYLE in scripts/generate_dataset.py.
|