osu-ai

Aiming and clicking with pytorch networks in the game osu!

https://github.com/tarehimself/osu-ai

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.0%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Aiming and clicking with pytorch networks in the game osu!

Basic Info
  • Host: GitHub
  • Owner: TareHimself
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 250 MB
Statistics
  • Stars: 13
  • Watchers: 2
  • Forks: 3
  • Open Issues: 2
  • Releases: 1
Created over 3 years ago · Last pushed about 2 years ago
Metadata Files
Readme Citation

README.md

Osu Neural Network Created Using Pytorch

  • DISCLAIMER : I am not responsible for any consequences that stem from the illicit use of the contents of this repository.

Info

Quick Start

  • The following assume that your monitor/screen size is 1920x1080 (plan to make it dynamic later)
  • Clone this repository along with this modified version of danser
  • Build danser using the instructions in the repository
  • Copy danser-settings.json to "cloned danser repo"/settings/danser-settings.json
  • Launch danser using the built binary
  • Once danser is done importing in the config dropdown switch it to the settings we copied earlier
  • Switch mode to "Watch a Replay" and select the replay you want to train on
  • Switch the dropdown on the bottom from "Watch" to "Record"
  • Before recording you can configure the settings to use a different skin.
  • Once ready click "danse!" and wait for danser to generate the recording.
  • Once done it will open a folder with a json file and an mkv file, these are needed to generate the dataset.
  • Going back to the osu-ai folder first setup Anaconda
  • Run the following in the terminal to create an enviroment bash conda create --name osu-ai python=3.9.12 conda activate osu-ai
  • Install Poetry
  • Run the following in the enviroment we created

```bash poetry install

For cuda support run "poe force-cuda"

For win32Mouse support run "poe use-win32"

- now we can run main bash python main.py - You should see this menu bash What would you like to do ? [0] Train or finetune a model [1] Convert a video and json into a dataset [2] Test a model [3] Quit `` - Select "1" for Convert, name it whatever you want. For the video and json type in the path to the respective files we generated earlier i.e.a/b/c.mkva/b/c.json. - For the number of threads I usually use 5 and we will leave the offset at 0. - ForMax images to keep in memory when writingI usually leave it at 0 unless the video is really long - Now wait for the dataset to be generated - Now we can train. Select "0" to train then "0" for aim. Name it whatever and select the dataset we just made. I usually set max epochs to a very large number sincectrl+c` will stop training early. - And that's it.

Example Autopilot play below on this map. The model was trained using this map.

goodplay

Example Relax play below on this map. The model was trained using this map.

goodplay

Owner

  • Name: TareHimself
  • Login: TareHimself
  • Kind: user

Hi, I do code stuff.

Citation (CITATION.cff)

cff-version: 1.2.0
message: ""
authors:
- family-names: "Ebelo"
  given-names: "Oyintare"
  orcid: "https://orcid.org/0009-0001-0044-5654"
title: "osu-ai"
version: 1.0.0
doi: 10.5281/zenodo.10208110
date-released: 2023-11-26
url: "https://github.com/TareHimself/osu-ai"

GitHub Events

Total
  • Watch event: 8
  • Issue comment event: 1
  • Fork event: 2
Last Year
  • Watch event: 8
  • Issue comment event: 1
  • Fork event: 2

Dependencies

requirements.txt pypi
  • gymnasium ==0.28.0
  • keyboard ==0.13.5
  • numpy ==1.23.5
  • opencv_python ==4.7.0.72
  • pygame ==2.3.0
  • pywin32 ==228
  • torch ==1.13.1
  • torchvision ==0.14.1
  • tqdm ==4.64.1
  • win32gui ==221.6
poetry.lock pypi
  • 183 dependencies
pyproject.toml pypi
  • poethepoet ^0.20.0 develop
  • keyboard ^0.13.5
  • mouse ^0.7.1
  • mss ^9.0.1
  • numpy ^1.24.3
  • opencv-python ^4.7.0.72
  • python ^3.9
  • timm ^0.9.2
  • torch ^2.0.1
  • torchvision ^0.15.2
  • tqdm ^4.64.1