talmo / leap

LEAP is now deprecated -- check out its successor SLEAP!
https://sleap.ai
Apache License 2.0
206 stars 48 forks source link

Fix visualization functions when predicting a unique skeleton joint #13

Closed iteal closed 5 years ago

iteal commented 5 years ago

These visualization functions are called during training, if we are only predicting one joint (one channel), then the old functions will fail. The fix allows to run LEAP normally with predicting only one joint in the skeleton.

The squeeze function with no axis argument was removing the channel dimension (of size 1 for one joint).

talmo commented 5 years ago

Merged, thanks!