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
ModelZoo
ResNet50_tensorflow
Commits
331e1372
Unverified
Commit
331e1372
authored
Jan 29, 2018
by
Neal Wu
Committed by
GitHub
Jan 29, 2018
Browse files
Merge pull request #3258 from cclauss/fix-five-undefined-names
CogMap: Fix five undefined names
parents
10805b06
eae72a5a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
research/cognitive_mapping_and_planning/src/depth_utils.py
research/cognitive_mapping_and_planning/src/depth_utils.py
+2
-1
research/cognitive_mapping_and_planning/src/file_utils.py
research/cognitive_mapping_and_planning/src/file_utils.py
+1
-1
research/cognitive_mapping_and_planning/src/graph_utils.py
research/cognitive_mapping_and_planning/src/graph_utils.py
+8
-7
No files found.
research/cognitive_mapping_and_planning/src/depth_utils.py
View file @
331e1372
...
...
@@ -17,6 +17,7 @@
"""
import
numpy
as
np
import
src.rotation_utils
as
ru
import
src.utils
as
utils
def
get_camera_matrix
(
width
,
height
,
fov
):
"""Returns a camera matrix from image size and fov."""
...
...
research/cognitive_mapping_and_planning/src/file_utils.py
View file @
331e1372
...
...
@@ -34,7 +34,7 @@ def write_image(image_path, rgb):
f
.
write
(
img_str
)
def
read_image
(
image_path
,
type
=
'rgb'
):
with
fopen
(
file_name
,
'r'
)
as
f
:
with
fopen
(
image_path
,
'r'
)
as
f
:
I
=
PIL
.
Image
.
open
(
f
)
II
=
np
.
array
(
I
)
if
type
==
'rgb'
:
...
...
research/cognitive_mapping_and_planning/src/graph_utils.py
View file @
331e1372
...
...
@@ -20,6 +20,7 @@ import numpy as np
import
networkx
as
nx
import
itertools
import
logging
from
datasets.nav_env
import
get_path_ids
import
graph_tool
as
gt
import
graph_tool.topology
import
graph_tool.generation
...
...
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