Giter Club home page Giter Club logo

gkmachinelearning's Introduction

GKML

Documentation Status

UE5 plugin providing tools for machine learning. This plugin documents how to use the MLAdapter plugin for machine learning by reimplementing the Cartpole environment.

/_static/Cartpole_big.png

Requirements

  • UE4 - 5.0+

Note

For UE5 on linux you will need to disable 2 plugins (XGEController and FastBuildController as of Jan 2022)

Packaged Install

Unfortunately U4ML python package is not open source and you will need to create an Epic account to install it on your machine. Once it is install you can run any packaged environment without installing or compiling UnrealEngine.

# Install MLAdapter python package
python -e UnrealEngine/Engine/Plugins/AI/MLAdapter/Source/python

# Download the GKML environment
wget
pip install cartpole-0.0.0-py3-none-any.whl

# run the packaged environment for training
cartpole-train --launch

Development Install

Note

This repo started using UE5 after commit 332ae357235995d1184effdb060

Install the python package to run this example as a gym environment

git submodule add https://github.com/Delaunay/GKMachineLearning Plugins/GKML
pip install -e Plugins/GKML

# Install MLAdapter python package
python -e UnrealEngine/Engine/Plugins/AI/MLAdapter/Source/python

# this will compile the project
UnrealEditor MyProject.uproject

# Click play in the editor to start the game

# this will connect to the game running inside the editor
cartpole-train --no-launch

To run the example just launch the appropriate script

python Source/python/cartpole/run.py --project E:/cartpole/Cartpole.uproject --exec E:/UnrealEngine/Engine/Binaries/Win64/UE4Editor.exe

gkmachinelearning's People

Contributors

delaunay 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.