Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions deeplabcut/pose_estimation_pytorch/runners/shelving.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,13 @@ def add_prediction(
scores = [bpt[:, 2:3] for bpt in bodyparts]

# full pickle has bodyparts and unique bodyparts in same array
unique_bodyparts = kwargs.get("unique_bodyparts", None)
if unique_bodyparts is not None:
unique_bpts = unique_bodyparts.transpose((1, 0, 2))
coordinates += [bpt[:, :2] for bpt in unique_bpts]
scores += [bpt[:, 2:] for bpt in unique_bpts]

output = dict(coordinates=(coordinates,), confidence=scores, costs=None)

identity_scores = kwargs.get("identity_scores", None)
if identity_scores is not None:
# Reshape id scores from (num_assemblies, num_bpts, num_individuals)
# to the original DLC full pickle format: (num_bpts, num_assem, num_ind)
Expand Down