-
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
Batch processing not functioning properly #30
Comments
Hi there! There are separate problems I'm experiencing depending on the installation method, so I'll describe them both. When installing with Error reading frame When installing with [ERROR:0] global C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-obtuy4a_\opencv\modules\videoio\src\cap.cpp (162) cv::VideoCapture::open VIDEOIO(CV_IMAGES): raised OpenCV exception: Do you know what I can do to get the Batch Processing working? Thanks for the help and for making all these awesome packages!! |
Hello @Michaelhess17, Please pull recent changes from the main branch (using the instructions below) to avoid "AttributeError: 'MainW' object has no attribute 'iframes'"
For batch processing, please follow the instructions after cloning the updated version. The opencv error seems to indicate some issue with loading video so make sure you are able to load the video and 'process ROIs' before proceeding with 'process batch'. |
Hello @dgbarson, Are you trying batch processing of multiple ROIs from multiple videos taken simultaneously? |
Hey again! Do you know anything else we might try? Thanks again! |
Hi @Michaelhess17, the error tells me that your version of the code is different from the main branch. You can confirm that by searching for 'iframes' variable in your code and check against the relevant file and line number on the main branch. Hence, you will have to make sure your code is the same as main branch to avoid the error. |
Hello Michael,
You don't want to install the pip version, but simply clone the main repo. Before cloning the main repo you'll have to uninstall and remove previous versions of facemap's conda env. After cloning the repo you don't need to run setup.py but just create the conda environment using the updated environment.yml file. Once you have activated the conda environment but still run into some package errors then you can run 'pip list' command to check whether the packages exist in your environment. Hope this helps.
…________________________________
From: Michael Hess ***@***.***>
Sent: Monday, August 23, 2021 10:53 PM
To: MouseLand/facemap ***@***.***>
Cc: Atika Syeda ***@***.***>; Mention ***@***.***>
Subject: Re: [MouseLand/facemap] Batch processing not functioning properly (#30)
[△EXTERNAL]
Hi again @Atika-Syeda<https://github.com/Atika-Syeda>! I see the issue you are describing, as the code in my facemap package in my site-pacakges folder does contain this line, so it must be outdated relative to the code on github. What's puzzling though is that I have followed the instructions to do this install. When I do the install however, and try to complete step 5, I get an error that facemap is not installed, so I runpip install --upgrade facemap line to get that installed. However, the version of facemap that I get through this channel must be where the error is coming from. Do you know how I can install the version of the package found in the Github code here? I have also tried pip install git+https://github.com/mouseland/facemap but that seems to download the same version as just using pip install facemap, and I tried to clone the repo and run the setup.py script, but I get the following error: Could not find suitable distibution for Requirement.parse('PyQt5.sip') though I have PyQt5 installed... Any suggestions?
Thanks so much for all your help!!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#30 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALJMAEA5WACIHFTXRPC3VATT6MQVXANCNFSM45DJEZNQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>.
|
Also, here are some instructions for the common issues listed on facemap's readme page:
If when running python -m facemap, you receive the error: No module named PyQt5.sip, then try uninstalling and reinstalling pyqt5
pip uninstall pyqt5 pyqt5-tools
pip install pyqt5 pyqt5-tools pyqt5.sip
…________________________________
From: Atika Syeda ***@***.***>
Sent: Wednesday, August 25, 2021 5:58 AM
To: MouseLand/facemap ***@***.***>
Subject: Re: [MouseLand/facemap] Batch processing not functioning properly (#30)
Hello Michael,
You don't want to install the pip version, but simply clone the main repo. Before cloning the main repo you'll have to uninstall and remove previous versions of facemap's conda env. After cloning the repo you don't need to run setup.py but just create the conda environment using the updated environment.yml file. Once you have activated the conda environment but still run into some package errors then you can run 'pip list' command to check whether the packages exist in your environment. Hope this helps.
________________________________
From: Michael Hess ***@***.***>
Sent: Monday, August 23, 2021 10:53 PM
To: MouseLand/facemap ***@***.***>
Cc: Atika Syeda ***@***.***>; Mention ***@***.***>
Subject: Re: [MouseLand/facemap] Batch processing not functioning properly (#30)
[△EXTERNAL]
Hi again @Atika-Syeda<https://github.com/Atika-Syeda>! I see the issue you are describing, as the code in my facemap package in my site-pacakges folder does contain this line, so it must be outdated relative to the code on github. What's puzzling though is that I have followed the instructions to do this install. When I do the install however, and try to complete step 5, I get an error that facemap is not installed, so I runpip install --upgrade facemap line to get that installed. However, the version of facemap that I get through this channel must be where the error is coming from. Do you know how I can install the version of the package found in the Github code here? I have also tried pip install git+https://github.com/mouseland/facemap but that seems to download the same version as just using pip install facemap, and I tried to clone the repo and run the setup.py script, but I get the following error: Could not find suitable distibution for Requirement.parse('PyQt5.sip') though I have PyQt5 installed... Any suggestions?
Thanks so much for all your help!!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#30 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ALJMAEA5WACIHFTXRPC3VATT6MQVXANCNFSM45DJEZNQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>.
|
Thank you so much! As far as I can tell, this is working now! |
Hello!
Thanks for all your work on this! It's an amazing tool.
I have been having trouble getting batch processing to work. I can save multiple sets of ROIs (which saves multiple _proc.npy and _proc.mat files in my data directory), but they do not appear in a list under the process batch button. When I click the process batch button, Facemap runs only on the most recent movie and set of ROIs. However, it will do so multiple times (the same number of times as there are sets of saved ROIs - i.e. if I create ROIs for file1.avi, file2.avi, and file3.avi, it will process the ROIs for file3.avi three times).
I am using the most recent version of the Facemap using the conda environment on Windows 7 and Windows 10.
Thanks for your help with this!
Best,
Dan
The text was updated successfully, but these errors were encountered: