Update inference.py

#3
by antonypamo - opened
Files changed (1) hide show
  1. inference.py +1 -1
inference.py CHANGED
@@ -5,7 +5,7 @@ def load_model(weights_path="model.pt", device=None):
5
  if device is None:
6
  device = "cuda" if torch.cuda.is_available() else "cpu"
7
  # Replace 'YourModelClass' with the actual class name from model.py
8
- model = YourModelClass()
9
  state = torch.load(weights_path, map_location=device)
10
  model.load_state_dict(state)
11
  model.to(device)
 
5
  if device is None:
6
  device = "cuda" if torch.cuda.is_available() else "cpu"
7
  # Replace 'YourModelClass' with the actual class name from model.py
8
+ model = IcosahedralRRF()
9
  state = torch.load(weights_path, map_location=device)
10
  model.load_state_dict(state)
11
  model.to(device)