Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Habitat Lab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
Meta Research
Habitat Lab
Commits
e94e6f39
Commit
e94e6f39
authored
5 years ago
by
Bhavana Mahendra Jain
Committed by
Oleksandr
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Check scene paths, minor fix in pointnav generator (#111)
* check scene paths, minor fix in pointnav generator
parent
b6a3d649
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
habitat/datasets/pointnav/pointnav_dataset.py
+1
-1
1 addition, 1 deletion
habitat/datasets/pointnav/pointnav_dataset.py
test/test_pointnav_dataset.py
+2
-0
2 additions, 0 deletions
test/test_pointnav_dataset.py
with
3 additions
and
1 deletion
habitat/datasets/pointnav/pointnav_dataset.py
+
1
−
1
View file @
e94e6f39
...
@@ -35,7 +35,7 @@ class PointNavDatasetV1(Dataset):
...
@@ -35,7 +35,7 @@ class PointNavDatasetV1(Dataset):
def
check_config_paths_exist
(
config
:
Config
)
->
bool
:
def
check_config_paths_exist
(
config
:
Config
)
->
bool
:
return
os
.
path
.
exists
(
return
os
.
path
.
exists
(
config
.
POINTNAVV1
.
DATA_PATH
.
format
(
split
=
config
.
SPLIT
)
config
.
POINTNAVV1
.
DATA_PATH
.
format
(
split
=
config
.
SPLIT
)
)
)
and
os
.
path
.
exists
(
config
.
SCENES_DIR
)
@staticmethod
@staticmethod
def
get_scenes_to_load
(
config
:
Config
)
->
List
[
str
]:
def
get_scenes_to_load
(
config
:
Config
)
->
List
[
str
]:
...
...
This diff is collapsed.
Click to expand it.
test/test_pointnav_dataset.py
+
2
−
0
View file @
e94e6f39
...
@@ -141,6 +141,8 @@ def test_pointnav_episode_generator():
...
@@ -141,6 +141,8 @@ def test_pointnav_episode_generator():
config
.
DATASET
.
SPLIT
=
"
val
"
config
.
DATASET
.
SPLIT
=
"
val
"
config
.
ENVIRONMENT
.
MAX_EPISODE_STEPS
=
500
config
.
ENVIRONMENT
.
MAX_EPISODE_STEPS
=
500
config
.
freeze
()
config
.
freeze
()
if
not
PointNavDatasetV1
.
check_config_paths_exist
(
config
.
DATASET
):
pytest
.
skip
(
"
Test skipped as dataset files are missing.
"
)
env
=
habitat
.
Env
(
config
)
env
=
habitat
.
Env
(
config
)
env
.
seed
(
config
.
SEED
)
env
.
seed
(
config
.
SEED
)
random
.
seed
(
config
.
SEED
)
random
.
seed
(
config
.
SEED
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment