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

module ‘pydenecrf.densecrf’ has no attribute 'DenseCRF2D' #71

Closed liangfengjiao closed 6 years ago

liangfengjiao commented 6 years ago

densecrf file was coded by C++, why can not call 'DenseCRF2D'

lucasb-eyer commented 6 years ago

Hi, it is likely you did not properly install the package. There is no way for me to help you given that you do not give any information.

I'm closing the issue, but feel free to re-open it with exact steps required to reproduce the problem.

liangfengjiao commented 6 years ago

Thanks very much,I have solved this problem.

在2018-07-15 18:50:37,梁凤娇16120383@bjtu.edu.cn写道:

Closed #71.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

lucasb-eyer commented 6 years ago

Could you please tell me what step solved it for you?

manishh commented 5 years ago

I am also facing this when I am simply trying to run this simple 3-line sample code -

import numpy as np
import pydensecrf.densecrf as dcrf

d = dcrf.DenseCRF2D(640, 480, 5)  # width, height, nlabels

Any pointers how to get this running? README instructions are not helpful.

lucasb-eyer commented 5 years ago

Pretty sure you are doing a mistake when installing it (mixing up pythons for example), as I was just able to install it in a fresh environment.