Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Won't replay RNN policies using script.visualize

See original GitHub issue
File "/home/rl-starter-files/utils/", 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/", 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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

lcswillemscommented, Dec 20, 2019

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.

TakodaScommented, Dec 29, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found