|
|
|
|
|
|
def create_behavior_spec(num_visual, num_vector, vector_size): |
|
|
|
obs_shapes = [(84, 84, 3)] * int(num_visual) + [(vector_size,)] * int(num_vector) |
|
|
|
sensor_types = [SensorType.OBSERVATION for _ in range(len(obs_shapes))] |
|
|
|
behavior_spec = BehaviorSpec(obs_shapes, sensor_types, ActionSpec.create_discrete((1,))) |
|
|
|
behavior_spec = BehaviorSpec( |
|
|
|
obs_shapes, sensor_types, ActionSpec.create_discrete((1,)) |
|
|
|
) |
|
|
|
return behavior_spec |
|
|
|
|
|
|
|
|
|
|
|