Update inference.py
Browse files- inference.py +1 -1
inference.py
CHANGED
@@ -61,7 +61,7 @@ actor = Actor(model=model,
|
|
61 |
num_neighbors_action=params['num_neighbors_action'],
|
62 |
device=device,
|
63 |
normalize=False)
|
64 |
-
actor.
|
65 |
|
66 |
nn_actor = Actor(model=None, num_movers=1, num_neighbors_action=1, device=device)
|
67 |
nn_actor.nearest_neighbors()
|
|
|
61 |
num_neighbors_action=params['num_neighbors_action'],
|
62 |
device=device,
|
63 |
normalize=False)
|
64 |
+
actor.model.eval()
|
65 |
|
66 |
nn_actor = Actor(model=None, num_movers=1, num_neighbors_action=1, device=device)
|
67 |
nn_actor.nearest_neighbors()
|