Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Flatland
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sfwatergit
Flatland
Commits
5de931f0
Commit
5de931f0
authored
5 years ago
by
spmohanty
Browse files
Options
Downloads
Patches
Plain Diff
Add a check to ensure that visualizations are generated only if screenshots exist
parent
ad9d154c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
flatland/evaluators/service.py
+1
-3
1 addition, 3 deletions
flatland/evaluators/service.py
with
1 addition
and
3 deletions
flatland/evaluators/service.py
+
1
−
3
View file @
5de931f0
...
@@ -146,7 +146,6 @@ class FlatlandRemoteEvaluationService:
...
@@ -146,7 +146,6 @@ class FlatlandRemoteEvaluationService:
os
.
path
.
join
(
root
,
file
)
os
.
path
.
join
(
root
,
file
)
)
)
env_paths
=
sorted
(
env_paths
)
env_paths
=
sorted
(
env_paths
)
print
(
self
.
video_generation_envs
)
for
_idx
,
env_path
in
enumerate
(
env_paths
):
for
_idx
,
env_path
in
enumerate
(
env_paths
):
"""
"""
Here we collect the indices of the environments for which
Here we collect the indices of the environments for which
...
@@ -157,7 +156,6 @@ class FlatlandRemoteEvaluationService:
...
@@ -157,7 +156,6 @@ class FlatlandRemoteEvaluationService:
env_step
env_step
"""
"""
for
vg_env
in
self
.
video_generation_envs
:
for
vg_env
in
self
.
video_generation_envs
:
print
(
vg_env
,
env_path
)
if
vg_env
in
env_path
:
if
vg_env
in
env_path
:
self
.
video_generation_indices
.
append
(
_idx
+
1
)
self
.
video_generation_indices
.
append
(
_idx
+
1
)
return
sorted
(
env_paths
)
return
sorted
(
env_paths
)
...
@@ -431,7 +429,7 @@ class FlatlandRemoteEvaluationService:
...
@@ -431,7 +429,7 @@ class FlatlandRemoteEvaluationService:
mean_reward
=
np
.
mean
(
self
.
simulation_rewards
)
mean_reward
=
np
.
mean
(
self
.
simulation_rewards
)
mean_percentage_complete
=
np
.
mean
(
self
.
simulation_percentage_complete
)
mean_percentage_complete
=
np
.
mean
(
self
.
simulation_percentage_complete
)
if
self
.
visualize
:
if
self
.
visualize
and
len
(
os
.
listdir
(
self
.
vizualization_folder_name
))
>
0
:
# Generate the video
# Generate the video
#
#
# Note, if you had depdency issues due to ffmpeg, you can
# Note, if you had depdency issues due to ffmpeg, you can
...
...
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