Skip to content

Commit

Permalink
fix fill_diag (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouGengmo authored May 6, 2024
1 parent 7394647 commit 31df659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unimol/unimol/utils/docking_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def docking_data_pre(raw_data_path, predict_path):
distance_predict = distance_predict.numpy().astype(np.float32)
holo_distance_predict = holo_distance_predict.numpy().astype(np.float32)
# Fill diagonal with 0, issue with the model not learning to predict 0 distance
holo_distance_predict = np.fill_diagonal(holo_distance_predict, 0)
np.fill_diagonal(holo_distance_predict, 0)
#
holo_coords = holo_coordinates.numpy().astype(np.float32)

Expand Down

0 comments on commit 31df659

Please sign in to comment.