sgoldenlab / simba

SimBA (Simple Behavioral Analysis), a pipeline and GUI for developing supervised behavioral classifiers
https://simba-uw-tf-dev.readthedocs.io/
GNU General Public License v3.0
273 stars 137 forks source link

Unable to Create Pose Config #224

Closed mrnels19 closed 1 year ago

mrnels19 commented 1 year ago

Describe the bug I am trying to create my own pose config in SimBA. In this pose config, there are two mice in each frame, and each moues has 13 body parts. I am running into an issue when I click on the button titled Save Pose Configs and the Define pose window pops up. I am instructed to double left-click on the position of each body part. However, as soon as I double left-click on the first body part for the first mouse, the image zooms in and I am unable to scroll across the image or zoom out to continue clicking on the other body parts.

To Reproduce Steps to reproduce the behavior:

  1. Open SimBA
  2. Create a new project, select the project path, and give the project a name. Then, in the SML settings, set the number of predictive classifiers equal to 1 (I was going through the tutorial on GitHub) and then click Add predictive classifier to give that behavior a name.
  3. Under Type of Tracking, select Multi Tracking.
  4. Under #config, select Create Pose Config.
  5. In the Pose Configuration window that pops up, give the pose config a name, set the number of animals equal to 2 and the number of body parts equal to 13.
  6. Find the Image Path and press Confirm.
  7. Enter in the body part names and the corresponding animal ID number. Press Save Pose Config for the Define pose window to pop up.
  8. Double left-click on each body part on the appropriate animal. (I am trying to do this, but I can't get past the first body part on the first animal because the image permanently zooms in)

Expected behavior After I did a double left-click on the first body part for the first mouse, I expected the image to not zoom in and remain the way it is depicted in the screenshot titled Original Pose Labeling Image. I tried hitting the esc key and by doing Ctrl- to zoom out, but neither of these commands worked.

Screenshots The screenshot titled Original Pose Labeling Image shows the initial image I saw when I clicked on the Save Pose Config button. The screenshot titled Final Pose Labeling Image shows the zoomed image I encountered after doing a double left-click to label the first body part on the first mouse.

Desktop (please complete the following information):

If you could help with this, I would really appreciate it!

Final Pose Labeling Image Original Pose Labeling Image

mrnels19 commented 1 year ago

I realize that the names of the screenshots do not appear when I add them into my post. The screenshot titled Original Pose Labeling is the screenshot with the zoomed out image in it. The screenshot titled Final Pose Labeling is the one with the zoomed in image.

sronilsson commented 1 year ago

Thanks again @mrnels19 - I was unable to recreate this, maybe because I only have a mac available, but inserted a potential fix that hopefully takes care of it. if you update simba with pip install simba-uw-tf-dev --upgrade (version 1.30.9) how does it look?

sronilsson commented 1 year ago

@mrnels19 - I saw your report about the windows and dropdowns not closing/updating as expected (although I can't see comment anymore). It should be OK if you close them and open windows again.

That said, I made an update that should take care of it. If you have time, can you let me know if it behaves as expected on your end after running pip install simba-uw-tf-dev --upgrade (version 1.31.1).

mrnels19 commented 1 year ago

This worked, thank you so much!