api_server.py: fix model path

main
Nils Koch 3 years ago
parent ed71c16912
commit d1ee2bc4f2
  1. 2
      api_server.py

@ -33,7 +33,7 @@ class IrImage(BaseModel):
reference_pattern_path = '/home/nils/kinect_reference_cropped.png' reference_pattern_path = '/home/nils/kinect_reference_cropped.png'
reference_pattern = cv2.imread(reference_pattern_path) reference_pattern = cv2.imread(reference_pattern_path)
model_path = "../train_log/models/latest.pth" model_path = "train_log/models/latest.pth"
device = torch.device('cuda:0') device = torch.device('cuda:0')
model = Model(max_disp=256, mixed_precision=False, test_mode=True) model = Model(max_disp=256, mixed_precision=False, test_mode=True)

Loading…
Cancel
Save