Skip to content

Commit 53d7212

Browse files
committed
Remove deprecated np.sum arg
1 parent 5dc6b39 commit 53d7212

File tree

1 file changed

+1
-1
lines changed
  • happypose/pose_estimators/cosypose/cosypose/multiview

1 file changed

+1
-1
lines changed

happypose/pose_estimators/cosypose/cosypose/multiview/ransac.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def make_obj_infos(matched_candidates):
133133
scene_infos = matched_candidates.infos.loc[:, ["obj_id", "score", "label"]].copy()
134134
gb = scene_infos.groupby("obj_id")
135135
scene_infos["n_cand"] = gb["score"].transform(len).astype(int)
136-
scene_infos["score"] = gb["score"].transform(np.sum)
136+
scene_infos["score"] = gb["score"].transform("sum")
137137
scene_infos = gb.first().reset_index(drop=False)
138138
return scene_infos
139139

0 commit comments

Comments
 (0)