Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ from pytorch_grad_cam.utils.image import show_cam_on_image
|
|
| 19 |
|
| 20 |
# --- Configuration ---------------------------------------------------------
|
| 21 |
REPO_ID = "telecomadm1145/swin-ai-detection"
|
| 22 |
-
HF_FILENAME = "
|
| 23 |
LOCAL_CKPT_DIR = "./checkpoints"
|
| 24 |
MODEL_NAME = "swin_large_patch4_window12_384" # ← 使用 large
|
| 25 |
NUM_CLASSES = 2
|
|
|
|
| 19 |
|
| 20 |
# --- Configuration ---------------------------------------------------------
|
| 21 |
REPO_ID = "telecomadm1145/swin-ai-detection"
|
| 22 |
+
HF_FILENAME = "swin_classifier_stage1_v2_epoch_3.pth"
|
| 23 |
LOCAL_CKPT_DIR = "./checkpoints"
|
| 24 |
MODEL_NAME = "swin_large_patch4_window12_384" # ← 使用 large
|
| 25 |
NUM_CLASSES = 2
|