-
Notifications
You must be signed in to change notification settings - Fork 480
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
Errors when running in Colab #81
Comments
Hi @nyck33 There may be a problem with the link to the libraries in your system, with the module not found. Try the following: After installing deepgaze through |
I have it running online in Colab now but getting
I was getting another error before that related to |
This may be due to incompatibility between the version of Deepgaze installed and the version of OpenCV. |
Will do. Thanks for replying.
…On Wed, 10 Jul 2019 at 16:11, Massimiliano Patacchiola < ***@***.***> wrote:
Hi @nyck33 <https://github.com/nyck33>
There may be a problem with the link to the libraries in your system, with
the module not found. Try the following:
After installing deepgaze through sudo python setup.py install open a new
terminal. Start a new python console through the command python2 (for
Deepgaze 1.0) or python3 (for Deepgaze 2.0). Now just try to import the
module writing in the python console import deepgaze. If the module is
correctly installed you should not get any error, otherwise please report
the error that you get.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#81?email_source=notifications&email_token=AGAFZKIZTUVFP6LPW747T5TP6WKTHA5CNFSM4H7MM532YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZSVS5I#issuecomment-509958517>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGAFZKPI5JW3Z322CLLT2RLP6WKTHANCNFSM4H7MM53Q>
.
--
Nobutaka
Github: https://github.com/nyck33
Blog: https://nobu-portfolio.blogspot.com/
Linkedin: https://www.linkedin.com/in/stayfit4ever/
Tel:0900344207
Skype: nobutaka.gold3@gmail.com
Line: nobu_2018
|
@mpatacchiola I git cloned 2.0 version with command
Reverting back to opencv 2 on Colab is a bit of work but I'll give it a shot. Regardless, the notebooks should work with either master (1.0) or 2.0? |
Deepgaze 2.0 is still work in progress at the moment and it is possible that there may be a few hidden issues to fix. The notebooks should work with the version 2.0. @kamathhrishi is taking care of the porting at the moment, let's see if he can give a look to it... |
@nyck33 for the moment you can simply substitute: import cv2
(major, minor, _) = cv2.__version__.split(".")
if(major=='2'):
contours, hierarchy = cv2.findContours(mask, 1, 2)
elif(major=='3'):
_, contours, hierarchy = cv2.findContours(mask, 1, 2) @nyck33 if you fix it, you can send a pull request on the 2.0 branch and I will add it to the repo. |
@mpatacchiola |
This has now been fixed in branch 2.0 |
I git clone'd both master and 2.0 branches and tried to install but I keep getting a no module name 'deepgaze' error in the
face_center_color_classification
notebook's first cell.The text was updated successfully, but these errors were encountered: