Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,7 +58,7 @@ def _load_age_model():
|
|
| 58 |
|
| 59 |
print("[AgeModel] Downloading ONNX from HuggingFace Hub …")
|
| 60 |
onnx_path = hf_hub_download(
|
| 61 |
-
repo_id = "
|
| 62 |
filename = "faceage_dino_fp32.onnx",
|
| 63 |
)
|
| 64 |
|
|
@@ -268,7 +268,7 @@ Upload a photo. **YuNet** auto-detects faces, then **FaceAge-DINOv3** predicts a
|
|
| 268 |
|
| 269 |
| | |
|
| 270 |
|--|--|
|
| 271 |
-
| 🏆 LAGENDA 84k MAE | **3.760** (beats MiVOLO v2 measured
|
| 272 |
| 🧠 Backbone | DINOv3-ViT-L/16 (Meta AI, 307M params) |
|
| 273 |
| ⚡ Speed | ~100 ms / face on CPU (ONNX FP32) |
|
| 274 |
| 🔍 Detector | YuNet (OpenCV, ~350 KB) |
|
|
@@ -281,7 +281,8 @@ with gr.Blocks(title="FaceAge-DINOv3", theme=gr.themes.Soft()) as demo:
|
|
| 281 |
|
| 282 |
with gr.Row():
|
| 283 |
with gr.Column(scale=1):
|
| 284 |
-
inp_img = gr.Image(type="pil", label="📷 Upload photo"
|
|
|
|
| 285 |
with gr.Row():
|
| 286 |
inp_max = gr.Slider(1, 10, value=5, step=1,
|
| 287 |
label="Max faces")
|
|
@@ -301,7 +302,7 @@ with gr.Blocks(title="FaceAge-DINOv3", theme=gr.themes.Soft()) as demo:
|
|
| 301 |
|
| 302 |
gr.Markdown("""
|
| 303 |
---
|
| 304 |
-
*Trained on
|
| 305 |
*DINOv3-ViT-L pretrained by Meta AI on LVD-1.68B images.*
|
| 306 |
""")
|
| 307 |
|
|
|
|
| 58 |
|
| 59 |
print("[AgeModel] Downloading ONNX from HuggingFace Hub …")
|
| 60 |
onnx_path = hf_hub_download(
|
| 61 |
+
repo_id = "trungthanhtran/faceage-dino",
|
| 62 |
filename = "faceage_dino_fp32.onnx",
|
| 63 |
)
|
| 64 |
|
|
|
|
| 268 |
|
| 269 |
| | |
|
| 270 |
|--|--|
|
| 271 |
+
| 🏆 LAGENDA 84k MAE | **3.760** (beats MiVOLO v2 measured 3.859) |
|
| 272 |
| 🧠 Backbone | DINOv3-ViT-L/16 (Meta AI, 307M params) |
|
| 273 |
| ⚡ Speed | ~100 ms / face on CPU (ONNX FP32) |
|
| 274 |
| 🔍 Detector | YuNet (OpenCV, ~350 KB) |
|
|
|
|
| 281 |
|
| 282 |
with gr.Row():
|
| 283 |
with gr.Column(scale=1):
|
| 284 |
+
inp_img = gr.Image(type="pil", label="📷 Upload photo or use webcam",
|
| 285 |
+
sources=["upload", "webcam", "clipboard"])
|
| 286 |
with gr.Row():
|
| 287 |
inp_max = gr.Slider(1, 10, value=5, step=1,
|
| 288 |
label="Max faces")
|
|
|
|
| 302 |
|
| 303 |
gr.Markdown("""
|
| 304 |
---
|
| 305 |
+
*Trained on LAGENDA · IMDB-Clean · UTKFace · AgeDB · FairFace · Open Images.*
|
| 306 |
*DINOv3-ViT-L pretrained by Meta AI on LVD-1.68B images.*
|
| 307 |
""")
|
| 308 |
|