Dinamush Cursor commited on
Commit ·
dc624ae
1
Parent(s): fdb87aa
chore: drop personal default selected-tags lists from tooling
Browse files
backend/app/realism_eval.py
CHANGED
|
@@ -111,6 +111,7 @@ def run_realism_eval(
|
|
| 111 |
if text:
|
| 112 |
selected.add(text)
|
| 113 |
if len(selected) < 3:
|
|
|
|
| 114 |
selected.update({"SFW", "scenery", "1girl"})
|
| 115 |
|
| 116 |
for sample in samples:
|
|
|
|
| 111 |
if text:
|
| 112 |
selected.add(text)
|
| 113 |
if len(selected) < 3:
|
| 114 |
+
# Generic competitors only — never seed personal destination prefs.
|
| 115 |
selected.update({"SFW", "scenery", "1girl"})
|
| 116 |
|
| 117 |
for sample in samples:
|
backend/scripts/run_realism_debug_eval.py
CHANGED
|
@@ -64,7 +64,7 @@ def _probe_local_videos(settings: AppSettings, model: str, limit: int = 8) -> di
|
|
| 64 |
)
|
| 65 |
is_rl, folder, score, evidence = predict_real_life(
|
| 66 |
scores,
|
| 67 |
-
selected={"real_life", "photo"},
|
| 68 |
)
|
| 69 |
items.append(
|
| 70 |
{
|
|
|
|
| 64 |
)
|
| 65 |
is_rl, folder, score, evidence = predict_real_life(
|
| 66 |
scores,
|
| 67 |
+
selected={"real_life", "photo", *(settings.selected_tags or [])},
|
| 68 |
)
|
| 69 |
items.append(
|
| 70 |
{
|
backend/scripts/verify_all_taggers.py
CHANGED
|
@@ -186,7 +186,7 @@ def main() -> int:
|
|
| 186 |
if not ok:
|
| 187 |
print(f"FAIL model={model}", file=sys.stderr)
|
| 188 |
|
| 189 |
-
# Optionally restore
|
| 190 |
restore_root = os.environ.get("THR3SHR_RESTORE_ROOT_REPO", "").strip()
|
| 191 |
restore_cats = os.environ.get("THR3SHR_RESTORE_CATEGORIES_ROOT", "").strip()
|
| 192 |
if restore_root and restore_cats:
|
|
@@ -195,7 +195,6 @@ def main() -> int:
|
|
| 195 |
{
|
| 196 |
"root_repo": restore_root,
|
| 197 |
"categories_root": restore_cats,
|
| 198 |
-
"selected_tags": [],
|
| 199 |
"tagger_model": "wd_swinv2_v3",
|
| 200 |
"confidence_threshold": 0.6,
|
| 201 |
"wd_general_threshold": 0.35,
|
|
@@ -203,7 +202,7 @@ def main() -> int:
|
|
| 203 |
}
|
| 204 |
)
|
| 205 |
req("PUT", "/settings", user_settings)
|
| 206 |
-
print("\nRestored UI
|
| 207 |
else:
|
| 208 |
print(
|
| 209 |
"\nSkipped UI path restore (set THR3SHR_RESTORE_ROOT_REPO and "
|
|
|
|
| 186 |
if not ok:
|
| 187 |
print(f"FAIL model={model}", file=sys.stderr)
|
| 188 |
|
| 189 |
+
# Optionally restore library paths only (never rewrite selected_tags).
|
| 190 |
restore_root = os.environ.get("THR3SHR_RESTORE_ROOT_REPO", "").strip()
|
| 191 |
restore_cats = os.environ.get("THR3SHR_RESTORE_CATEGORIES_ROOT", "").strip()
|
| 192 |
if restore_root and restore_cats:
|
|
|
|
| 195 |
{
|
| 196 |
"root_repo": restore_root,
|
| 197 |
"categories_root": restore_cats,
|
|
|
|
| 198 |
"tagger_model": "wd_swinv2_v3",
|
| 199 |
"confidence_threshold": 0.6,
|
| 200 |
"wd_general_threshold": 0.35,
|
|
|
|
| 202 |
}
|
| 203 |
)
|
| 204 |
req("PUT", "/settings", user_settings)
|
| 205 |
+
print("\nRestored UI paths from THR3SHR_RESTORE_* env vars", flush=True)
|
| 206 |
else:
|
| 207 |
print(
|
| 208 |
"\nSkipped UI path restore (set THR3SHR_RESTORE_ROOT_REPO and "
|