Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KincoActuatorIsaacLab
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kevin
KincoActuatorIsaacLab
Commits
a2554881
Commit
a2554881
authored
Jan 26, 2023
by
Mayank Mittal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renames tb namespace for episode info in skrl
parent
a46c7d6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
conf.py
docs/conf.py
+1
-1
skrl.py
...c.orbit_envs/omni/isaac/orbit_envs/utils/wrappers/skrl.py
+2
-2
No files found.
docs/conf.py
View file @
a2554881
...
@@ -138,7 +138,7 @@ suppress_warnings = [
...
@@ -138,7 +138,7 @@ suppress_warnings = [
# of these warnings when parsing PEP-compliant type hints via static
# of these warnings when parsing PEP-compliant type hints via static
# analysis. Since those hints are actual hints that *CANNOT* by definition
# analysis. Since those hints are actual hints that *CANNOT* by definition
# by canonicalized, our only recourse is to squelch warnings altogether.
# by canonicalized, our only recourse is to squelch warnings altogether.
'ref.python'
,
"ref.python"
,
]
]
# -- Options for HTML output -------------------------------------------------
# -- Options for HTML output -------------------------------------------------
...
...
source/extensions/omni.isaac.orbit_envs/omni/isaac/orbit_envs/utils/wrappers/skrl.py
View file @
a2554881
...
@@ -156,7 +156,7 @@ class SkrlSequentialLogTrainer(Trainer):
...
@@ -156,7 +156,7 @@ class SkrlSequentialLogTrainer(Trainer):
if
"episode"
in
infos
:
if
"episode"
in
infos
:
for
k
,
v
in
infos
[
"episode"
]
.
items
():
for
k
,
v
in
infos
[
"episode"
]
.
items
():
if
isinstance
(
v
,
torch
.
Tensor
)
and
v
.
numel
()
==
1
:
if
isinstance
(
v
,
torch
.
Tensor
)
and
v
.
numel
()
==
1
:
self
.
agents
.
track_data
(
f
"Episode / {k}"
,
v
.
item
())
self
.
agents
.
track_data
(
f
"Episode
Info
/ {k}"
,
v
.
item
())
# post-interaction
# post-interaction
self
.
agents
.
post_interaction
(
timestep
=
timestep
,
timesteps
=
self
.
timesteps
)
self
.
agents
.
post_interaction
(
timestep
=
timestep
,
timesteps
=
self
.
timesteps
)
# reset the environments
# reset the environments
...
@@ -220,7 +220,7 @@ class SkrlSequentialLogTrainer(Trainer):
...
@@ -220,7 +220,7 @@ class SkrlSequentialLogTrainer(Trainer):
if
"episode"
in
infos
:
if
"episode"
in
infos
:
for
k
,
v
in
infos
[
"episode"
]
.
items
():
for
k
,
v
in
infos
[
"episode"
]
.
items
():
if
isinstance
(
v
,
torch
.
Tensor
)
and
v
.
numel
()
==
1
:
if
isinstance
(
v
,
torch
.
Tensor
)
and
v
.
numel
()
==
1
:
agent
.
track_data
(
f
"Episode / {k}"
,
v
.
item
())
agent
.
track_data
(
f
"Episode
Info
/ {k}"
,
v
.
item
())
# perform post-interaction
# perform post-interaction
super
(
type
(
agent
),
agent
)
.
post_interaction
(
timestep
=
timestep
,
timesteps
=
self
.
timesteps
)
super
(
type
(
agent
),
agent
)
.
post_interaction
(
timestep
=
timestep
,
timesteps
=
self
.
timesteps
)
...
...
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