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

AttributeError: 'module' object has no attribute 'DenseCRF2D' #75

Closed manishh closed 5 years ago

manishh commented 5 years ago

I am facing this issue 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

Error - AttributeError: 'module' object has no attribute 'DenseCRF2D'

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

manishh commented 5 years ago

Never mind, there were some version conflict issues. I have fixed them and this problem is solved now.

duan147 commented 5 years ago

Hello, I'd like to ask you how you solved this problem. Can you give me a reply if it's convenient?thank you @manishh