Skip to content

Make a robot capable of performing many different complex tasks without having to relearn each from scratch in a continuous setting.

Notifications You must be signed in to change notification settings

ErickRosete/Robot-Skills-from-Video

Repository files navigation

Learning Robot Skills from Video

This implementation is based on the paper by: Lynch et al., "Learning Latent Plans from Play", 2019. https://learning-from-play.github.io/

The purpose of this project is to make a robot capable of performing many different complex tasks without having to relearn each from scratch in a continuous setting.

Videos and models

results video example

You can find our trained models and video results of our implementation in the following link https://drive.google.com/drive/folders/1X2LBbLa2RBjLQEEP1bqxm035ok_Oab34?usp=sharing

Visualize training error and validation plots

Our current model was trained over 1 day and 16 hours, you can visualize the plots inside analysis/plots or in tensorboard by running the following command

foo@bar:~$ tensorboard --logdir ./runs

Requirements

To run this project it is required to have a working installation of Mujoco 2.0, further information can be found on the following webpage: https://www.roboti.us/index.html

Please make sure that the "mjrl", "puppet" and "relay-policy-learning" folders are in the root folder of the project before executing the environment.

How to run

Train

To train a model you will need to define the appropiate constant values in "/utils/constants.py" after that execute the command:

foo@bar:~$ python training.py

The model with the best accuracy and best training loss will be saved under the folder "/models".

t-SNE Analysis

We created this script to analyze the latent plan space representation, before calling this, make sure to change the reference to the appropiate path of the model.

foo@bar:~$ python tsne_analysis.py

The resulting plots and images will be saved under "analysis/temporal_tsne".

Test

To visualize the model performance on a single task run the following script:

foo@bar:~$ python test_single_goal.py

To visualize the model performance on consecutive tasks run the following script, press key 'n' to switch the goal to the next image in the list and press 'e' if you like to end the episode.

foo@bar:~$ python test_consecutive.py

Before calling any test script, please make sure to change the reference to the appropiate path of the model. To further modify the specifications please check the python files which include a more detailed information on the parameters used. Videos will be saved under "./analysis/videos/model_trials/goal_name".

Contact

For any other question or feedback, please send an email to:

We will be happy to help you.

About

Make a robot capable of performing many different complex tasks without having to relearn each from scratch in a continuous setting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages