Won't replay RNN policies using script.visualize
See original GitHub issueFile "/home/rl-starter-files/utils/agent.py", line 24, in __init__ self.acmodel.load_state_dict(utils.get_model_state(model_dir))
File "/home/miniconda3/envs/ml/lib/python3.7/site-packages/torch/nn/modules/module.py", line 839, in load_state_dict
self.__class__.__name__, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for ACModel:
Unexpected key(s) in state_dict: "memory_rnn.weight_ih", "memory_rnn.weight_hh", "memory_rnn.bias_ih", "memory_rnn.bias_hh".
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Recurrent Neural Networks by Example in Python
In this article, we'll walk through building a recurrent neural network to write patent abstracts. We'll focus on the application in Python ...
Read more >Text generation with an RNN - TensorFlow
This tutorial demonstrates how to generate text using a character-based RNN. You will work with a dataset of Shakespeare's writing from ...
Read more >What should I do when my neural network doesn't learn?
An application of this is to make sure that when you're masking your sequences (i.e. padding them with data to make them equal...
Read more >RNN From Scratch | Building RNN Model In Python
Recurrent neural networks are one of the fundamental concepts of deep learning. Learn rnn from scratch and how to build and code a...
Read more >Visualizing Machine Learning Models: Guide and Tools
Using visualization while training is a good way to monitor and track model performance. There are many tools out there precisely for this...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for giving me these details! Indeed, it seems there is an issue in the library. I will try to fix it this week end.
Running the example found in the README
python3 -m scripts.train --algo ppo --env MiniGrid-RedBlueDoors-6x6-v0 --model RedBlueDoors --recurrence 4 --save-interval 10 --frames 1000000
reproduces this error