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
28251769
Commit
28251769
authored
May 01, 2016
by
Lucas Beyer
Browse files
Merge pull request #12 from sqy12/master
fixed a bug in create_pair_gaussian method in utils.py
parents
abe7c4c4
4a79fdfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pydensecrf/utils.py
pydensecrf/utils.py
+1
-1
No files found.
pydensecrf/utils.py
View file @
28251769
...
@@ -55,7 +55,7 @@ def create_pairwise_gaussian(sdims, shape):
...
@@ -55,7 +55,7 @@ def create_pairwise_gaussian(sdims, shape):
"""
"""
# create mesh
# create mesh
hcord_range
=
[
range
(
s
)
for
s
in
shape
]
hcord_range
=
[
range
(
s
)
for
s
in
shape
]
mesh
=
np
.
array
(
np
.
meshgrid
(
*
cord_range
,
indexing
=
'ij'
),
dtype
=
np
.
float32
)
mesh
=
np
.
array
(
np
.
meshgrid
(
*
h
cord_range
,
indexing
=
'ij'
),
dtype
=
np
.
float32
)
# scale mesh accordingly
# scale mesh accordingly
for
i
,
s
in
enumerate
(
sdims
):
for
i
,
s
in
enumerate
(
sdims
):
...
...
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