Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions python/trainer_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,6 @@ Ball3DHardBrain:
gamma: 0.995
beta: 0.001

BouncerBrain:
normalize: true
max_steps: 5.0e5
num_layers: 2
hidden_units: 56

TennisBrain:
normalize: true

Expand Down
3 changes: 3 additions & 0 deletions python/unitytrainers/ppo/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ def generate_intrinsic_rewards(self, curr_info, next_info):
:return: Intrinsic rewards for all agents.
"""
if self.use_curiosity:
if curr_info.agents != next_info.agents:
raise UnityTrainerException("Training with Curiosity-driven exploration"
" and On-Demand Decision making is currently not supported.")
feed_dict = {self.model.batch_size: len(curr_info.vector_observations), self.model.sequence_length: 1}
if self.is_continuous_action:
feed_dict[self.model.output] = next_info.previous_vector_actions
Expand Down