LukasT9 commited on
Commit
f83bc3e
·
verified ·
1 Parent(s): 54bcb00

Update inference.py

Browse files
Files changed (1) hide show
  1. inference.py +1 -1
inference.py CHANGED
@@ -31,7 +31,7 @@ def predict(model, image_tensor, device, threshold=0.5):
31
 
32
  if __name__ == "__main__":
33
  model_path = r"model.pt" # Path to Flux-Detector
34
- image_path = r"test_image.jpg" # Path to test image
35
 
36
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
37
  model = load_model(model_path, device)
 
31
 
32
  if __name__ == "__main__":
33
  model_path = r"model.pt" # Path to Flux-Detector
34
+ image_path = r"test_image.png" # Path to test image
35
 
36
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
37
  model = load_model(model_path, device)