Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,12 +10,12 @@ from utils import non_max_suppression, plot_image, cells_to_bboxes
|
|
10 |
import config
|
11 |
import albumentations as A
|
12 |
from albumentations.pytorch import ToTensorV2
|
13 |
-
from model import
|
14 |
import matplotlib.pyplot as plt
|
15 |
import matplotlib.patches as patches
|
16 |
|
17 |
# Load the model
|
18 |
-
model =
|
19 |
model.load_state_dict(torch.load('Yolov3.pth', map_location=torch.device('cpu')), strict=False)
|
20 |
model.eval()
|
21 |
|
|
|
10 |
import config
|
11 |
import albumentations as A
|
12 |
from albumentations.pytorch import ToTensorV2
|
13 |
+
from model import YoloVersion3
|
14 |
import matplotlib.pyplot as plt
|
15 |
import matplotlib.patches as patches
|
16 |
|
17 |
# Load the model
|
18 |
+
model = YoloVersion3( )
|
19 |
model.load_state_dict(torch.load('Yolov3.pth', map_location=torch.device('cpu')), strict=False)
|
20 |
model.eval()
|
21 |
|