-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
Import error: from models.ternausnet2 import TernausNetV2 #29
Comments
I'm running into the same problem - did you end up finding a solution? |
Have you found some solution? |
Hello folks, I faced the same problem and was stuck on the same for many days. Following solution is applicable for MacOS and Linux as I tried on these both only. Firstly, error is arising due to non compatibility of entire code base of git (and the versions they are operating on) and your respective versions of Python, Pytorch and OpenCV. So, first primarily, I'll recommend you to make a virtual environment with Python 3.6.8. Warning- DO NOT bypass this step or else you wont be able to install PyTorch 0.4 and thus proceed with pip install of each dependency as it is. (Torch 0.4, etc). You'll also need to install extra libraries of matplotlib and skimage, Then, you wont be getting this error. And further, if you dont want to run it on GPU and rather on CPU then follow this link for the answer. #16 (comment) . Comment, if problem still persists. |
Hi, i was trying to use the demo.ipynb file given, but it throws an import error.
conda version: 4.6.14
python: 3.7
cuda: 10.1
pytorch: 1.0
gcc: 5.4
The text was updated successfully, but these errors were encountered: