Skip to main content

Deep learning inference and NLP toolkit for game development.

Project description

npc-engine

NPC-Engine is a deep learning and NLP toolkit for designing NPC AI with natural language.

Build Status Build Status

Features

  • Chat-bot dialogue system.
  • SoTA tools like text semantic similarity and text to speech.
  • Easy, open source deep learning model standard (ONNX with YAML configs).
  • GPU accelerated inference with onnxruntime.
  • Engine agnostic API through ZMQ server via JSONRPC 2.0.

Getting started

The easiest way to get started is to use NPC Engine through the Unity integration

You can also use it directly through ZMQ or HTTP. See Documentation for more details.

Roadmap

Done:

  • Real-time end-to-end chatbot dialogue system
  • Semantic similarity
  • Real-time speech to text (experimental)
  • Unity integration
  • CLI tool for importing models from Huggingface
  • Asynchronous API features

In progress:

  • Actions and planning
  • Unreal integration
  • Importing models from popular TTS libraries
  • Emotion features
  • Multiple languages support
  • Much more

Build on Windows

  • Create virtualenv and activate it:

    > python3 -m venv npc-engine-venv
    > .\npc-engine-venv\activate.bat
    
  • Install dependencies

    > pip install -e .[dev,dml]
    
  • (Optional) Compile, build and install your custom ONNX python runtime

    Build instructions here https://onnxruntime.ai/

  • (Optional) Run tests

    > tox
    
  • Compile to exe with:

    > pyinstaller --hidden-import="sklearn.utils._cython_blas" --hidden-import="sklearn.neighbors.typedefs" ^
    --hidden-import="sklearn.neighbors.quad_tree" --hidden-import="sklearn.tree._utils" ^
    --hidden-import="sklearn.neighbors._typedefs" --hidden-import="sklearn.utils._typedefs" ^
    --hidden-import="sklearn.neighbors._partition_nodes" --additional-hooks-dir hooks ^
    --exclude-module tkinter --exclude-module matplotlib .\npc_engine\cli.py --onedir
    

Community

We have a Discord server where you can get support, ask questions and show off your creations.

If you would like to donate, you can check out our Patreon.

Our Patrons

  • Marrech Games

Authors

  • eublefar - Python, Neural Nets - github
  • igorzmitrovich - Python, CI/CD - github

See also the list of contributors who participated in this project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

npc-engine-0.1.6.tar.gz (43.5 kB view hashes)

Uploaded Source

Built Distribution

npc_engine-0.1.6-py3-none-any.whl (60.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page