MouseLand / facemap

Framework for predicting neural activity from mouse orofacial movements tracked using a pose estimation model. Package also includes singular value decomposition (SVD) of behavioral videos.
https://facemap.readthedocs.io
GNU General Public License v3.0
153 stars 60 forks source link

Can not load video from installation on Ubuntu 22.04 #146

Open chfbao opened 3 months ago

chfbao commented 3 months ago

Describe the issue:

When click on the gui menu, it gave Ignoring window icon 4533780 exceeds maximum xcb request length 4194303 and then nothing happens after, videos not show up in the GUI. I have tried both install using 'python -m pip install facemap[gui]` and install from the repo, both installations gave the same warnings and the video data can not be loaded.

Provide environment info:

python -m facemap

facemap version:    1.0.7.dev5+g7f6981c
platform:           linux
python version:     3.8.13
torch version:      2.3.0+cu121
numpy version:      1.24.4
** TORCH CUDA version installed and working. **

Error message:

Ignoring window icon 4533780 exceeds maximum xcb request length 4194303
Ignoring window icon 4533780 exceeds maximum xcb request length 4194303
Ignoring window icon 4533780 exceeds maximum xcb request length 4194303
Ignoring window icon 4533780 exceeds maximum xcb request length 4194303
Atika-Syeda commented 3 months ago

Hi @chfbao that warning isn't related to video loading. Can you please share how you load the video i.e. via command line or file browser? There's also a drag and drop option.

chfbao commented 3 months ago

Hi @Atika-Syeda , I was using file browser and got the warning Ignoring window icon 4533780 exceeds maximum xcb request length 4194303. And each time I click on the menu in the GUI, the same warning appears, and then nothing loads. I also tried drag and drop, but encountered the same issue, nothing loads. I suspect there may be an issue with the installation of the GUI, causing it to not respond correctly (By the way, I tried version 1.0.7, and 1.0.6, same issure). Is there a debug mode available that I can use to gather more information? Thanks.

Atika-Syeda commented 3 months ago

Hi @chfbao can you please try facemap v1.03 with pyqt5?

chfbao commented 3 months ago

Hi @Atika-Syeda , I just tried v1.03, there's no above warnings anymore, but still the video can not be loaded properly.

facemap version:    1.0.3
platform:           linux
python version:     3.8.19
torch version:      2.3.0+cu121
numpy version:      1.24.4

** TORCH CUDA version installed and working. **
Atika-Syeda commented 3 months ago

Can you please share more information about the video (file size, extension, etc)?

chfbao commented 3 months ago

The file size is about 600 MB, 120 fps, 640 * 480 resolution. I just tried to load the data using a borrowed win11, seems it works well, video and frames can be loaded correctly. But only the Ubuntu installation can not work.

Atika-Syeda commented 3 months ago

Hi @chfbao thanks for sharing the info. I'm happy to look into it further. I can test on Ubuntu 20 so if you can please share a sample video to this email: syedaa[at]janelia.hhmi.org.