How to import pydensecrf.densecrf?

Asked

Viewed 141 times

0

I’m getting the following error when I try to run the code:

ImportError: No module named densecrf 

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

I’m using Jupyter Notebook 5.5.0 from Anaconda on Ubuntu 18.04

Does anyone know what could be? I try to insert the folder pydensecrf in my project folder, but I still get the same error.

I installed the pydensecrf using the command:

pip install pydensecrf

I also tried to install with:

conda install -c conda-forge pydensecrf

but I get the same mistake for both.

  • How Jupyter was installed?

  • I installed anaconda and it installed Jupyter itself.

  • Hi, I could not replicate your error, I created in Ubuntu 18.04 an environment for Python 3 using Virtualenv, I entered it, I installed Jupyter and pydensecrf via PIP and everything worked normally (of course, I did not use Anaconda, I did it directly with the distribution resources).

  • Hi Giovanni, I managed to solve the mistake. I was creating my Notebook project inside the Workspace/models/research/slim folder of this library that I downloaded: https://github.com/tensorflow/models/tree/master/research/slim Because I needed to use VGG 16. After I created the notebook project in my home, pydensecrf worked normally. Thank you for your attention!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.