stevfoy commited on
Commit
9222fe1
·
1 Parent(s): 01869fd
Files changed (2) hide show
  1. app.py +1 -1
  2. config.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ import gradio as gr
30
  import os
31
 
32
  model = YOLOv3Lightning()
33
- model.load_state_dict(torch.load("yolov3_model.pth", map_location=torch.device('cpu')), strict=False)
34
  model.setup(stage="test")
35
 
36
  IMAGE_SIZE = 416
 
30
  import os
31
 
32
  model = YOLOv3Lightning()
33
+ model.load_state_dict(torch.load("yolov3_608_ckpt_40.pth", map_location=torch.device('cpu')), strict=False)
34
  model.setup(stage="test")
35
 
36
  IMAGE_SIZE = 416
config.py CHANGED
@@ -10,7 +10,7 @@ DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
10
  # seed_everything() # If you want deterministic behavior
11
  NUM_WORKERS = 4
12
  BATCH_SIZE = 16
13
- IMAGE_SIZE = 608
14
  NUM_CLASSES = 2
15
  LEARNING_RATE = 1e-5
16
  WEIGHT_DECAY = 1e-4
 
10
  # seed_everything() # If you want deterministic behavior
11
  NUM_WORKERS = 4
12
  BATCH_SIZE = 16
13
+ IMAGE_SIZE = 416
14
  NUM_CLASSES = 2
15
  LEARNING_RATE = 1e-5
16
  WEIGHT_DECAY = 1e-4