Update preprocessing_router.py
Browse files- preprocessing_router.py +10 -1
preprocessing_router.py
CHANGED
|
@@ -253,9 +253,18 @@ async def finalize_casting(
|
|
| 253 |
print(f" 📂 Carpeta origen: {c_folder}")
|
| 254 |
print(f" 🖼️ Archivos seleccionados ({len(c_files)}):")
|
| 255 |
for f in c_files:
|
| 256 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 257 |
print(emb)
|
| 258 |
print(f" - {f}")
|
|
|
|
| 259 |
casting_json["face_col"].append({
|
| 260 |
"nombre": c_name,
|
| 261 |
"embedding": emb,
|
|
|
|
| 253 |
print(f" 📂 Carpeta origen: {c_folder}")
|
| 254 |
print(f" 🖼️ Archivos seleccionados ({len(c_files)}):")
|
| 255 |
for f in c_files:
|
| 256 |
+
REAL_BASE = "/tmp/temp"
|
| 257 |
+
|
| 258 |
+
f_path = Path(f)
|
| 259 |
+
|
| 260 |
+
if str(f_path).startswith("/files/"):
|
| 261 |
+
f_path = Path(REAL_BASE) / f_path.relative_to("/files")
|
| 262 |
+
|
| 263 |
+
emb = get_face_embeddings_simple(str(f_path))
|
| 264 |
+
|
| 265 |
print(emb)
|
| 266 |
print(f" - {f}")
|
| 267 |
+
print(f" - {f_path}")
|
| 268 |
casting_json["face_col"].append({
|
| 269 |
"nombre": c_name,
|
| 270 |
"embedding": emb,
|