load-weights #41
-
Is it possible to provide further details for the parameter 'load-weights'. I would like to test an example after the training completion. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi! After training, you should be seeing logs generated in a Those files can be loaded using the Note though that it matters if you used parameter sharing or not during training. If you DID NOT, then the |
Beta Was this translation helpful? Give feedback.
-
I've opened the discussions page so I'm moving this thread there. Feel free to provide more context with what you're trying to do and I can try to help out! |
Beta Was this translation helpful? Give feedback.
-
Thanks for your help. I managed to run those commands below python3 dqn-independent-ps.py -c experiments/sumo-2x2-ac-independent-ps.config with success and also watched the trained simulation working perfect. However when i tried some File "/marl-experiments-main/dqn-independent-empathetic.py", line 372, in Also i realized that 'global_obs' should always be TRUE because 'else' is missing. With 'True' File "/marl-experiments-main/dqn-independent-empathetic.py", line 319, in Maybe the error occurs in more methods. I tested only 'dqn-independent-empathetic.py' and 'fdqn-independent-greedy.py' |
Beta Was this translation helpful? Give feedback.
Hi!
I apologize, the
load-weights
parameter is currently unused. I have a ticket to remove deprecated config parameters but just haven't gotten to it yet.After training, you should be seeing logs generated in a
nn/<experiment_name>
directory in the form of.pt
files. These are the weights of your model. For example, if you're usingac-indepnedent-SUMO.py
with parameter sharing, you will see a.pt
file that was saved every number ofmax-cycles
.Those files can be loaded using the
load_state_dict()
function in torch. An example of this can be seen insumo_analysis.py
Note though that it matters if you used parameter sharing or not during training. If you DID NOT, then the
.pt
files will ha…