Adhikary, Dhruba
commited on
Commit
·
127ad90
1
Parent(s):
b0306c0
push changes to hugging face
Browse files
app.py
CHANGED
@@ -14,8 +14,8 @@ import os
|
|
14 |
import matplotlib.pyplot as plt
|
15 |
from utils import *
|
16 |
|
17 |
-
checkpoint_filename = "object_detection_app/custom_yolo_v3.pt"
|
18 |
-
relative_path = os.path.join(os.getcwd(),"hugging_space_app", checkpoint_filename)
|
19 |
|
20 |
model = YOLOv3(num_classes=config.NUM_CLASSES).to(config.DEVICE)
|
21 |
model.load_state_dict(torch.load("custom_yolo_v3.pt", map_location=torch.device('cpu')), strict=False)
|
|
|
14 |
import matplotlib.pyplot as plt
|
15 |
from utils import *
|
16 |
|
17 |
+
# checkpoint_filename = "object_detection_app/custom_yolo_v3.pt"
|
18 |
+
# relative_path = os.path.join(os.getcwd(),"hugging_space_app", checkpoint_filename)
|
19 |
|
20 |
model = YOLOv3(num_classes=config.NUM_CLASSES).to(config.DEVICE)
|
21 |
model.load_state_dict(torch.load("custom_yolo_v3.pt", map_location=torch.device('cpu')), strict=False)
|