Gosula commited on
Commit
099e5bf
1 Parent(s): bdad945

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 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
 
 
10
  import config
11
  import albumentations as A
12
  from albumentations.pytorch import ToTensorV2
13
+ from model import YOLOv3
14
  import matplotlib.pyplot as plt
15
  import matplotlib.patches as patches
16
 
17
  # Load the model
18
+ model = YOLOv3( )
19
  model.load_state_dict(torch.load('Yolov3.pth', map_location=torch.device('cpu')), strict=False)
20
  model.eval()
21