valeriechen / ask-your-humans Goto Github PK
View Code? Open in Web Editor NEWDataset collection and training code for "Ask Your Humans: Using Human Instructions to Improve Generalization in Reinforcement Learning"
Dataset collection and training code for "Ask Your Humans: Using Human Instructions to Improve Generalization in Reinforcement Learning"
Hello,
I'm having trouble loading your released hierarchical model checkpoint-- it seems to be trying to access a class from pytorch-a2c-ppo-acktr
that doesn't exist.
>>> import torch
>>> torch.load('trained_models/our_model.pt')
/anaconda/envs/mazebase3.6/lib/python3.6/site-packages/torch/serialization.py:434: SourceChangeWarning: source code of class 'pytorchppo.a2c_ppo_acktr.model.Policy' has changed. you can retrieve the original source code by accessing the object's source attribute or set `torch.nn.Module.dump_patches = True` and use the patch tool to revert the changes.
warnings.warn(msg, SourceChangeWarning)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/anaconda/envs/mazebase3.6/lib/python3.6/site-packages/torch/serialization.py", line 367, in load
return _load(f, map_location, pickle_module)
File "/anaconda/envs/mazebase3.6/lib/python3.6/site-packages/torch/serialization.py", line 538, in _load
result = unpickler.load()
AttributeError: Can't get attribute 'MazeBaseBase' on <module 'pytorchppo.a2c_ppo_acktr.model' from '/path/to/ask-your-humans/mazebase-training/pytorchppo/a2c_ppo_acktr/model.py'>
Any advice would be greatly appreciated.
Hi Valerie,
According to https://github.com/valeriechen/ask-your-humans/blob/master/mazebase-training/train_hierarchy.py#L135
the environment provides 9 actions
However, the output dim of SimpleNetwork is 8
https://github.com/valeriechen/ask-your-humans/blob/master/mazebase-training/train_models.py#L248
Could you help to check this inconsistency? Thanks for your help!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.