Giter Site home page Giter Site logo

jiaming12 / yolov5_csgo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from armandray/yolov5_csgo

0.0 0.0 0.0 580.2 MB

A model and code for csgo character head detection and locking based on yolov5

Shell 1.25% Python 97.72% Jupyter Notebook 0.04% Dockerfile 1.00%

yolov5_csgo's Introduction

YOLOv5_csgo

Describe

A model and code for csgo character head detection and locking based on yolov5. The code is very rudimentary, and there are still many imperfections. So welcome everyone to communicate with me and improve this code.

Declaration

This is a practice and replication project for deep learning beginners. The project code can only be used for related knowledge learning and communication, and is not allowed to be used for the actual use of the game or to destroy the game environment.

The code tests are all done on csgo's personal server and have not been run in any competitive competitions.

Quick Start Examples

install

git clone https://github.com/ArmandRay/yolov5_csgo
pip install -r requirements.txt

run

Run the main.py file in the main directory.

NOTICE: The game needs to run in windowed mode

train and detect

If you need to train your own model or detect, the related method is the same as yolov5.

Custom Parameters and Code Explanation

window

image-20220722180632686

Used to determine related windows and subsequent operations.

You need to modify this parameter, or comment the statement and use the FindWindow() function below. The 'csgo' parameter in parentheses is the title of the window you want to look for.

image-20220722180559861

If your FindWindow() function cannot find the relevant window, you can run the commented code at the bottom of the file separately. You can find the window handle you want in the output of the code.

NOTICE: If you use a fixed handle parameter, please do not close your window arbitrarily.

model

image-20220722180617891

If you need to use your own model, please modify it here.

Reference

https://github.com/ultralytics/yolov5

https://blog.csdn.net/light169/article/details/123378140

https://www.jianshu.com/p/f08af400f2fa

yolov5_csgo's People

Contributors

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