-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where is numpy.object_ from? #211
Comments
and I don't want pool layer, how do I remove it? |
For the "numpy.object_" problem, try checking ray-project/ray#26863, you may find the solution in commits. Pooling layer is hardcoded in here, if you want to get rid out of it, some modification of the library may needed. MARLlib/marllib/marl/models/zoo/encoder/base_encoder.py Lines 79 to 80 in 368c617
|
Thanks, is probleme of pythorch version. And I think it don't change anything if pool_size = 1 |
from marllib import marl
env = marl.make_env(environment_name="sisl", map_name="pursuit")
mappo = marl.algos.mappo(hyperparam_source="common")
model = marl.build_model(env, mappo, {
"conv_layer": 3,
"out_channel_layer_0": 64,
"kernel_size_layer_0": 3,
"stride_layer_0": 1,
"padding_layer_0": 0,
"pool_size_layer_0": 1,
"out_channel_layer_1": 128,
"kernel_size_layer_1": 3,
"stride_layer_1": 1,
"padding_layer_1": 0,
"pool_size_layer_1": 1,
"out_channel_layer_2": 256,
"kernel_size_layer_2": 3,
"stride_layer_2": 1,
"padding_layer_2": 0,
"pool_size_layer_2": 1,
"hidden_state_size": 512,
"core_arch": "mlp",
})
mappo.fit(env, model, stop={'timesteps_total': 1000000}, share_policy='all', checkpoint_freq=10, checkpoint_end=True,
local_mode=False, num_gpus=1, num_workers=5)
error.txt
The text was updated successfully, but these errors were encountered: