Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -105,10 +105,10 @@ class HybridHeadModel(nn.Module):
|
|
| 105 |
|
| 106 |
# --- Model Catalog ---
|
| 107 |
MODEL_CATALOG = {
|
| 108 |
-
"AnatomyFlaws-v15.5 (DINOv3 7b
|
| 109 |
"repo_id": "Enferlain/lumi-classifier",
|
| 110 |
"config_filename": "AnatomyFlaws-v15.5_dinov3_7b_bnb_fl.config.json",
|
| 111 |
-
"head_filename": "AnatomyFlaws-v15.
|
| 112 |
# Explicitly define the vision model repo ID to prevent errors
|
| 113 |
# "vision_model_repo_id": "Enferlain/dinov3-vit7b16-pretrain-lvd1689m-8bit"
|
| 114 |
"vision_model_repo_id": "Enferlain/dinov3-vit7b16-pretrain-lvd1689m-int4",
|
|
@@ -257,6 +257,7 @@ def predict_anatomy_v3(image: Image.Image, model_name: str):
|
|
| 257 |
DESCRIPTION = """
|
| 258 |
## Lumi's Anatomy Flaw Classifier Demo ✨
|
| 259 |
Select a model from the dropdown, then upload an image to classify its anatomy/structural correctness.
|
|
|
|
| 260 |
"""
|
| 261 |
EXAMPLE_DIR = "examples"
|
| 262 |
|
|
|
|
| 105 |
|
| 106 |
# --- Model Catalog ---
|
| 107 |
MODEL_CATALOG = {
|
| 108 |
+
"AnatomyFlaws-v15.5 (DINOv3 7b int4)": {
|
| 109 |
"repo_id": "Enferlain/lumi-classifier",
|
| 110 |
"config_filename": "AnatomyFlaws-v15.5_dinov3_7b_bnb_fl.config.json",
|
| 111 |
+
"head_filename": "AnatomyFlaws-v15.5_dinov3_7b_bnb_fl_s3K_best_val.safetensors",
|
| 112 |
# Explicitly define the vision model repo ID to prevent errors
|
| 113 |
# "vision_model_repo_id": "Enferlain/dinov3-vit7b16-pretrain-lvd1689m-8bit"
|
| 114 |
"vision_model_repo_id": "Enferlain/dinov3-vit7b16-pretrain-lvd1689m-int4",
|
|
|
|
| 257 |
DESCRIPTION = """
|
| 258 |
## Lumi's Anatomy Flaw Classifier Demo ✨
|
| 259 |
Select a model from the dropdown, then upload an image to classify its anatomy/structural correctness.
|
| 260 |
+
Might be slow and quality might be off, has to be int4 cuz bnb8bit needs cuda and the demo runs on cpu.
|
| 261 |
"""
|
| 262 |
EXAMPLE_DIR = "examples"
|
| 263 |
|