-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG:IndexError: list index out of range (process_ROIs-savename = process.run) #127
Comments
when I process mot/movSVD |
I have the same issue... |
same here |
Same here! the output saves but has no motSVD or movSVD. facemap version: 1.0.4 Error:
pip list
|
okay in my case it was incorrect frame rate reading! |
Hi @magdalenasabat could you please try reinstalling facemap and creating a new virtual environment. The output of pip list shows you have pyqt5 and pyqt6 while we're only using pyqt6 so just to eliminate that as the issue. |
Hi @liwei4932 @inchinn1 @JohannesCD could you please provide more details so I can try to reproduce the error. It's working fine when I tested with the new version. More details about the video loaded and the steps that lead to the error would be great. If you updated to the new version then I'd suggest creating a new virtual env. |
Hi! PyQT5 is part of spyder installation. Everything is working well now. In my case the cv2 was reading in incorrect number of frames. I know that somewhere burried in the metadata my videos have wrong framerate (600), even though cv2 is reading in the correct frame rate (10) the total number of frames seems to be calculated with the wring framerate (exactly 600 times more than there should be). So correcting the property cv2.CAP_PROP_POS_FRAMES fixes the issue and everything works bueno. |
I have the same issue. What do you mean by cv2. Is this the object in the metadata? |
Hi @Atika-Syeda, thanks for looking into this. The error seems independent of the particular video that I try to process. I tried some of mine but the same error also comes up when using 'mouse_face.mp4' from the list of provided example videos (https://drive.google.com/drive/folders/1cRWCDl8jxWToz50dCX1Op-dHcAC-ttto). All I have done was to load the video into the GUI and click 'process' with 'motSVD', 'Save *.mat' and 'multivideo' checked. facemap version: 1.0.4 ** Using CPU version. ** |
Hi @JohannesCD thanks for testing it. We've found the bug and it should be fixed in the new release (v1.0.6). Could you please install the latest pip version (v1.0.6) and let us know if the issue still persists. |
Hello! I believe I'm having the same issues; it started when I added a second and third 'motion SVD' ROI. |
Version information:
facemap version:1.0.4
platform: win32
python version:3.8.18
torch version:2.1.0+cpu
numpy version:1.24.4
Describe the issue:
When I try running python -m facemap I receive the following error.
Computing subsampled mean...
Computed subsampled mean at 10.42s
Computing subsampled SVD...
computed svd chunk 0 / 3, time 5.73sec
computed svd chunk 1 / 3, time 12.10sec
computed svd chunk 2 / 3, time 18.60sec
Computed subsampled SVD at 30.09s
File "C:\Users\ASUS.conda\envs\facemap\lib\site-packages\facemap\gui\gui.py", line 1300, in process_ROIs
savename = process.run(
File "C:\Users\ASUS.conda\envs\facemap\lib\site-packages\facemap\process.py", line 806, in run
U_mov[k].copy(), (ly, lx, U_mov[k].shape[-1])
IndexError: list index out of range
Error message:
No response
The text was updated successfully, but these errors were encountered: