Skip to content

Commit 7a824a1

Browse files
committed
updated skeleton handling for dpp
1 parent c1fb0a8 commit 7a824a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/poser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def extract_to_animal_skeleton(coords):
242242
return animal_skeletons
243243

244244

245-
"""DLC LIVE"""
245+
"""DLC LIVE & DeepPoseKit"""
246246

247247

248248

@@ -288,11 +288,11 @@ def calculate_skeletons(peaks: dict, animals_number: int) -> list:
288288
elif MODEL_ORIGIN == 'MADLC':
289289
animal_skeletons = calculate_ma_skeletons(peaks, animals_number)
290290

291-
elif MODEL_ORIGIN == 'DLC-LIVE':
291+
elif MODEL_ORIGIN == 'DLC-LIVE' or MODEL_ORIGIN == 'DEEPPOSEKIT':
292292
animal_skeletons = calculate_skeletons_dlc_live(peaks, animals_number= 1)
293293
if animals_number != 1:
294294
raise ValueError('Multiple animals are currently not supported by DLC-LIVE.'
295-
' If you are using differently colored animals, please refere to the bodyparts directly.')
295+
' If you are using differently colored animals, please refer to the bodyparts directly.')
296296

297297

298298

0 commit comments

Comments
 (0)