Giter Site home page Giter Site logo

dansu's Introduction

Dansu

Map pose estimation from camera to 2D model in a game where you hit notes. Inspired by Osu! The name comes from the wasei-eigo for the word 'Dance', and it sort of sounds like Osu.

Dragos dancing

Ryan dancing

MMPose Installation Guide

1. Prerequisite guide from MMPpose:

  • Step 0. Download and install Miniconda from the official website. Note: Add this to path with these instructions
  • Step 1. Create a conda environment and activate it (do all next steps in Anaconda Prompt (miniconda3) in your user directory).
conda create --name openmmlab python=3.8 -y
conda activate openmmlab
  • Step 2. Install PyTorch following official instructions, e.g.
conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
  • Step 3. Install MMEngine and MMCV using MIM.
pip install -U openmim
mim install mmengine
mim install "mmcv>=2.0.1"
mim install "mmdet>=3.1.0"

2. Build MMPose from source

  • Create a directory Dansu/ in your user directory. Do all next steps in Dansu/ directory.
  • Install mmpose from source
git clone https://github.com/open-mmlab/mmpose.git
cd mmpose
pip install -r requirements.txt
pip install -v -e .
# "-v" means verbose, or more output
# "-e" means installing a project in editable mode,
# thus any local modifications made to the code will take effect without reinstallation.

3. Verify installation

  • Step 1. We need to download config and checkpoint files.
mim download mmpose --config td-hm_hrnet-w48_8xb32-210e_coco-256x192  --dest .
  • Step 2. Run the inference demo. Run the following command under the folder Dansu/mmpose/:
python demo/image_demo.py tests/data/coco/000000000785.jpg td-hm_hrnet-w48_8xb32-210e_coco-256x192.py td-hm_hrnet-w48_8xb32-210e_coco-256x192-0e67c616_20220913.pth --out-file vis_results.jpg --draw-heatmap

Dansu Installation

1. Clone the repository

git clone https://github.com/ryanlueds/Dansu.git

2. Install dependencies

pip install -r requirements.txt

Usage

1. Run the game

python game_driver.py

2. Errors

  • Solution to "RuntimeError: nms_impl: implementation for device cuda:0 not found." is to upgrade mmcv to 2.2.0

dansu's People

Contributors

ryanlueds avatar dragos-lup avatar

Watchers

 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.