Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
pydensecrf
Commits
d51b026b
Commit
d51b026b
authored
Nov 23, 2015
by
Lucas Beyer
Browse files
Merge pull request #1 from swehrwein/master
A couple README fixes for generic addPairwiseEnergy
parents
321bfbdb
aea69d56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
README.md
README.md
+1
-1
No files found.
README.md
View file @
d51b026b
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment