Commit d51b026b authored by Lucas Beyer's avatar Lucas Beyer
Browse files

Merge pull request #1 from swehrwein/master

A couple README fixes for generic addPairwiseEnergy
parents 321bfbdb aea69d56
...@@ -154,7 +154,7 @@ Instead, you need to use the generic `addPairwiseEnergy` method like this: ...@@ -154,7 +154,7 @@ Instead, you need to use the generic `addPairwiseEnergy` method like this:
d = dcrf.DenseCRF(100, 3) # npoints, nlabels d = dcrf.DenseCRF(100, 3) # npoints, nlabels
feats = np.array(...) # Get the pairwise features from somewhere. feats = np.array(...) # Get the pairwise features from somewhere.
print(feats.shape) # -> (100, 3) print(feats.shape) # -> (5, 100) = (feature dimensionality, npoints)
print(feats.dtype) # -> dtype('float32') print(feats.dtype) # -> dtype('float32')
dcrf.addPairwiseEnergy(feats) dcrf.addPairwiseEnergy(feats)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment