Skip to content

Commit

Permalink
Fix list-based indexing in the movement module.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 568791855
  • Loading branch information
mjanusz authored and copybara-github committed Sep 27, 2023
1 parent 6c503de commit 0b30abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffn/inference/movement.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def get_scored_move_offsets(deltas, prob_map, threshold=0.9):
# of the subvolume orthogonal to the current axis.
face_sel = subvol_sel[:]
face_sel[axis] = axis_offset + center[axis]
face_prob = prob_map[face_sel]
face_prob = prob_map[tuple(face_sel)]
shape = face_prob.shape

# Find voxel with maximum activation.
Expand Down

0 comments on commit 0b30abb

Please sign in to comment.