Skip to content

Commit 9ca939b

Browse files
authored
Error message when using ODD and Curiosity (#883)
* Remove extra bouncer brain hyperparameters * Add error when using curiosity+odd
1 parent 906c372 commit 9ca939b

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

python/trainer_config.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,6 @@ Ball3DHardBrain:
130130
gamma: 0.995
131131
beta: 0.001
132132

133-
BouncerBrain:
134-
normalize: true
135-
max_steps: 5.0e5
136-
num_layers: 2
137-
hidden_units: 56
138-
139133
TennisBrain:
140134
normalize: true
141135

python/unitytrainers/ppo/trainer.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ def generate_intrinsic_rewards(self, curr_info, next_info):
204204
:return: Intrinsic rewards for all agents.
205205
"""
206206
if self.use_curiosity:
207+
if curr_info.agents != next_info.agents:
208+
raise UnityTrainerException("Training with Curiosity-driven exploration"
209+
" and On-Demand Decision making is currently not supported.")
207210
feed_dict = {self.model.batch_size: len(curr_info.vector_observations), self.model.sequence_length: 1}
208211
if self.is_continuous_action:
209212
feed_dict[self.model.output] = next_info.previous_vector_actions

0 commit comments

Comments
 (0)