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

Bad shape for unary energy #73

Closed bionick87 closed 5 years ago

bionick87 commented 5 years ago

Hi,

I had the following bug:

File "pydensecrf/densecrf.pyx", line 82, in pydensecrf.densecrf.DenseCRF.setUnaryEnergy ValueError: Bad shape for unary energy Need (1, 268800), got (2, 268800))

Size of input image is 420x640, whit 2 lables

I have installed the version of the github repository.

Thanks.

zking-a commented 5 years ago

solved!

How can you solved the problem? I get the same issue. Can you tell me ,Thanks.

freimann89 commented 4 years ago

please share the solution

Junaid199f commented 4 years ago

Could you please share the solution as i also got this error