Update preprocessing_router.py
Browse files- preprocessing_router.py +2 -6
preprocessing_router.py
CHANGED
|
@@ -253,12 +253,8 @@ 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 |
-
|
| 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 |
|
|
|
|
| 253 |
print(f" 📂 Carpeta origen: {c_folder}")
|
| 254 |
print(f" 🖼️ Archivos seleccionados ({len(c_files)}):")
|
| 255 |
for f in c_files:
|
| 256 |
+
f_name = Path(f).name # face_000042_000.jpg
|
| 257 |
+
f_path = Path(c_folder) / f_name
|
|
|
|
|
|
|
|
|
|
|
|
|
| 258 |
|
| 259 |
emb = get_face_embeddings_simple(str(f_path))
|
| 260 |
|