Code Monkey home page Code Monkey logo

catwalk's Introduction

CatWalk

Taining Scene

Reinforcement learning for cat walking motion through Unity ML-Agents Toolkit

Install Environment

Or follow these instructions

  1. Get python 3.8: https://www.python.org/downloads/release/python-3810/

  2. Go to project folder

  3. py -3.8 -m venv venv venv\Scripts\activate pip3 install torch==1.7.0 -f https://download.pytorch.org/whl/torch_stable.html pip3 install mlagents

  4. For [Pillow, grpcio, h5py], do: pip3 uninstall [package] pip3 install [package] --upgrade

  5. pip3 install protobuf==3.20.* pip3 install numpy==1.21.2

  6. Try: mlagents-learn --help -this should display a help screen properly

Open CatWalk project

  1. Clone this repository

  2. In Unity Hub, select open project from disk and open the cloned CatWalk folder

  3. Go to 'Prefab' and select 'cat_stand'

  4. Go to 'TFModels' and drag the approprate .onnx model file into the Model parameter of the cat_stand. It should be under 'Behavioral Parameters'

  5. Now just press play and the model will do what it was trained

To train in Unity

  • Use command mlagents-learn CatWalk/config/CatWalk.yaml --run-id=catWalk then press play in Unity

  • Use command tensorboard --logdir results to observe training progress

To run on executable (for faster training):

First, must create executable by building project, and adding to a folder (like CatWalk_Build3), then access executable using that folder like as shown below

  • Run multi env no graphics mlagents-learn CatWalk/config/CatWalk.yaml --run-id=catWalk_stand_3 --env=Builds/CatWalk_Build_StandOnly_3 --num-envs=8 --torch-device cuda --no-graphics --resume

  • Display 1 window mlagents-learn CatWalk/config/CatWalk.yaml --run-id=catWalk_stand_3 --env=Builds/CatWalk_Build_StandOnly_3 --num-envs=1 --torch-device cuda --width 1200 --height 800 --resume

catwalk's People

Contributors

linliwen88 avatar gjnguyen18 avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.