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
279 stars 138 forks source link

ROI #179

Closed carlitomu closed 2 years ago

carlitomu commented 2 years ago

HI, I can't draw a different ROI for every single video in my project. When a draw a new ROI in a video, the others ROI disappears from the Region of Interest Settings .

I can only draw a "unique" ROI and the apply (without any changes) to all the videos (through the "Apply to all" button).

I'm using simba 0.87.7 (I followed this suggestion) on a mac (OS 10.13.6).

Carlo.

sronilsson commented 2 years ago

Hi @carlitomu thanks for reporting - can you update simba to the latest version pip install simba-uw-tf-dev --upgrade or pip install simba-uw-tf-dev==0.91.8 and let me know if that fixes the issue?

carlitomu commented 2 years ago

Thanks.

I tried to update simba to the latest version (pip install simba-uw-tf-dev --upgrade) and to 0.91.8 release, but it doesn't work. I get this error message: Schermata 2022-05-11 alle 23 12 09 Schermata 2022-05-11 alle 23 14 53

sronilsson commented 2 years ago

I see - not immediately familiar with this error but can you try pip install simba-uw-tf-dev --upgrade --no-deps and let me know if that works?

carlitomu commented 2 years ago

no, it doesn't work and I get the same error message.

sronilsson commented 2 years ago

@carlitomu - I gave it a go on macos and see if I could replicate and did not see the issue, so may not be a general bug...

(i) Can you try the solution with these three commands? https://github.com/matplotlib/matplotlib/issues/16700/#issuecomment-604373104

(ii) If that does not work, could you try to create a new conda python3.6 environment, run pip install simba-uw-tf-dev, and see if that fixes it?

carlitomu commented 2 years ago

(I) I tried this solution, uninstalling and installing matplotlib and I get this error message Schermata 2022-05-12 alle 18 05 53

So I uninstalled matplotib again and numpy, Pillow and shapely. Then I installed the required versions of these packages, getting a new error message: Schermata 2022-05-12 alle 18 08 02

(II) I tried all your solution in a new conda environments!

sronilsson commented 2 years ago

Thanks - the warnings should not be an issue ans appears to be related to version of matplotlib. Can you try this answer and see if it boots up?

https://stackoverflow.com/a/65939524

So first either pip uninstall matplotlib or conda remove --force matplotlib Followed by either pip install matplotlib==3.0.3 or conda install matplotlib=3.0.3

carlitomu commented 2 years ago

mhm, as I wrote earlier, I'have just tried and installed that matplotlib version.

So again the message error is this one:

Schermata 2022-05-12 alle 20 20 31

sronilsson commented 2 years ago

Sorry read it too quickly, did you also try to install matplotlib through conda rather than pip?

https://github.com/ludwig-ai/ludwig/issues/114#issuecomment-464684304

carlitomu commented 2 years ago

yes, with conda I get a new one: Schermata 2022-05-12 alle 20 36 23 Schermata 2022-05-12 alle 20 36 48

sronilsson commented 2 years ago

I see thanks for troubleshooting, might be some compatibility issue with older MacOS version, as I'm running 12.x, I will get back to you tomorrow

carlitomu commented 2 years ago

Ok, thanks!

sronilsson commented 2 years ago

Right I did a bit of reading - and seems to be a known issue on some more dated macOS versions with the specific matplotlob and tkinter versions required by simba… what confuses me is that the older versions of simba seems to run on your computer, while the reason one does not, and I have made no changes to any dependencies...

https://stackoverflow.com/questions/30031063/nsexception-with-tkinter-on-mac

You could try and:

(i) update your MacOS - this is probably the more ardous suggestion so understand if you don’t want to go down that route…

(ii) See if you can get it running using python 3.7 or 3.8 in conda instead of python 3.6. This ensures that you have a different version of tkinter so might avoid the clash. I confimed it runs on my MacOS in python 3.7 (but I have MacOS 12.3.1).

carlitomu commented 2 years ago

Hi, finally I have decided to run simba on another workstation with Windows. In any case, thank you for your help!

sronilsson commented 2 years ago

Thanks for letting me know @carlitomu, very helpful - I'll make a note about this in the FAQ