Commit aea69d56 authored by Scott Wehrwein's avatar Scott Wehrwein
Browse files

Fixed transposed pairwise feature size in README, and noted that feature...

Fixed transposed pairwise feature size in README, and noted that feature dimensionality is not necessarily equal to number of labels.
parent 321bfbdb
...@@ -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