lucasb-eyer / pydensecrf

Python wrapper to Philipp Krähenbühl's dense (fully connected) CRFs with gaussian edge potentials.
MIT License
1.94k stars 413 forks source link

ImportError: No module named densecrf #46

Closed chowkamlee81 closed 6 years ago

chowkamlee81 commented 6 years ago

Hai,

I installed densecrf module using python setup.py install

It got installed succesfully. import pydensecrf---->works import pydensecrf.densecrf as dcrf----> fails with Import error..

Kindly suggest how to go further

yaxingwang commented 6 years ago

you should put __init__.py into the file: densecrf.

lucasb-eyer commented 6 years ago

huh, that's odd, it works just fine for me, and I can't reproduce your problem, no matter what I try. I will need more info in order to help here.

@yaxingwang That file has existed for a long time, are you somehow missing it?

lucasb-eyer commented 6 years ago

Also, the recommended way of installing is now through pip from the cheeseshop pip install pydensecrf.

chowkamlee81 commented 6 years ago

Problem got solved since i copied .so files from /usr/loca/pydense.egg to my local directory. Iam able to retrieve the result. Thanks for your kind reply.