RockStarCoders / alienMarkovNetworks

Using MRFs and CRFs for computer vision problems.
21 stars 9 forks source link

bug in data class distribution code #4

Closed jsherrah closed 11 years ago

jsherrah commented 11 years ago

in pomio.py:

# TODO: there is a bug here.  If numberSamples is 1 for example, all these are 0.
classSampleSizes = np.round((numberSamples * classDist) , 0).astype('int')

The problem comes when you feed in only 1 image

jsherrah commented 11 years ago

fixed now ant?

amb-enthusiast commented 11 years ago

Added hacks to fix this, if you don't experience any issues go ahead and close.