File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,8 @@ There's two common ways of getting unary potentials:
77772 . From a probability distribution computed by, e.g. the softmax output of a
7878 deep network. For this, see ` from pydensecrf.utils import softmax_to_unary ` .
7979
80+ For usage of both of these, please refer to their docstrings or have a look at [ the example] ( examples/utils_example.py ) .
81+
8082Pairwise potentials
8183-------------------
8284
Original file line number Diff line number Diff line change 33
44def compute_unary (labels , M , GT_PROB = 0.5 ):
55 """
6- Simple classifier that is 50% certain that the annotation is correct
6+ Simple classifier that is 50% certain that the annotation is correct.
77 (same as in the inference example).
88
99
1010 Parameters
1111 ----------
1212 labels: nummpy.array
13- The label-map.
13+ The label-map. The label value `0` is not a label, but the special
14+ value indicating that the location has no label/information and thus
15+ every label is equally likely.
1416 M: int
15- The number of labels there are.
17+ The number of labels there are, not including the special `0` value .
1618 GT_PROB: float
1719 The certainty of the ground-truth (must be within (0,1)).
1820 """
You can’t perform that action at this time.
0 commit comments