Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Dipam Chakraborty
neurips-2020-procgen-competition
Commits
df3d29a1
Commit
df3d29a1
authored
Oct 26, 2020
by
Dipam Chakraborty
Browse files
accumulate gradfix
parent
85641d3e
Changes
3
Hide whitespace changes
Inline
Side-by-side
experiments/custom-ppg.yaml
View file @
df3d29a1
...
...
@@ -70,7 +70,7 @@ procgen-ppo:
entropy_schedule
:
False
# Memory management, if batch size overflow, batch splitting is done to handle it
max_minibatch_size
:
1
5
00
max_minibatch_size
:
1
0
00
updates_per_batch
:
8
normalize_actions
:
False
...
...
experiments/custom-torch-ppo.yaml
View file @
df3d29a1
...
...
@@ -61,7 +61,7 @@ procgen-ppo:
entropy_schedule
:
False
# Memory management, if batch size overflow, batch splitting is done to handle it
max_minibatch_size
:
1
5
00
max_minibatch_size
:
1
0
00
updates_per_batch
:
8
normalize_actions
:
False
...
...
@@ -77,7 +77,7 @@ procgen-ppo:
# === Settings for Model ===
model
:
custom_model
:
impala_torch_custom
custom_
options
:
custom_
model_config
:
depths
:
[
32
,
64
,
64
]
nlatents
:
512
use_layernorm
:
True
...
...
models/impala_torch_custom.py
View file @
df3d29a1
...
...
@@ -87,11 +87,11 @@ class ImpalaCNN(TorchModelV2, nn.Module):
nn
.
Module
.
__init__
(
self
)
self
.
device
=
device
depths
=
model_config
[
'custom_
options
'
].
get
(
'depths'
)
or
[
16
,
32
,
32
]
nlatents
=
model_config
[
'custom_
options
'
].
get
(
'nlatents'
)
or
256
d2rl
=
model_config
[
'custom_
options
'
].
get
(
'd2rl'
)
or
False
self
.
use_layernorm
=
model_config
[
'custom_
options
'
].
get
(
'use_layernorm'
)
or
False
self
.
diff_framestack
=
model_config
[
'custom_
options
'
].
get
(
'diff_framestack'
)
or
False
depths
=
model_config
[
'custom_
model_config
'
].
get
(
'depths'
)
nlatents
=
model_config
[
'custom_
model_config
'
].
get
(
'nlatents'
)
d2rl
=
model_config
[
'custom_
model_config
'
].
get
(
'd2rl'
)
self
.
use_layernorm
=
model_config
[
'custom_
model_config
'
].
get
(
'use_layernorm'
)
self
.
diff_framestack
=
model_config
[
'custom_
model_config
'
].
get
(
'diff_framestack'
)
h
,
w
,
c
=
obs_space
.
shape
...
...
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