Coder Social home page Coder Social logo

csgo_ai's Introduction

CSGO_AI

基于YOLOv3的csgo瞄准AI

CSGO.py是自己改写的。其余注释及代码来自的:https://blog.csdn.net/qq_34199326/article/details/84072505 ,并按照自己的理解对注释稍加修改

原文件:https://github.com/ayooshkathuria/YOLO_v3_tutorial_from_scratch

直接运行CSGO.py即可

csgo设置:

·鼠标设置中:灵敏度调8,关闭原始数据输入

·视频设置中:窗口化运行,并拖放到屏幕左上角(我的移动鼠标的参数是根据这里的坐标写的,不然移动鼠标不准,大家可以自己测试下全屏时,移动鼠标的输入 量和准星的移动对应关系)

python库:

·获取截图:PIL

·目标检测:YOLOv3相关依赖:numpy opencv-python pytorch等,参见原文

·控制鼠标:pyautogui

权重文件下载:https://pjreddie.com/media/files/yolov3.weights ,直接放到主目录

效果参见:https://www.bilibili.com/video/BV1v5411x7Mr?p=1

csgo_ai's People

Contributors

lu-tju avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

csgo_ai's Issues

老铁

这个外挂能用吗

AI的话会VAC吗?

### 既然说是AI自瞄,那会VAC吗(在休闲模式下,无人工监管会被封吗?)

程序报错

运行报错,在VSCode中的输出为:
PS D:\桌面\CSGO-AI-Hack> & D:/Python310/python.exe d:/桌面/CSGO-AI-Hack/CSGO.py 载入神经网络.... D:\Python310\lib\site-packages\torch\nn\modules\conv.py:131: UserWarning: Failed to initialize NumPy: module compiled against API version 0x10 but this version of numpy is 0xf (Triggered internally at ..\torch\csrc\utils\tensor_numpy.cpp:68.) self.weight = Parameter(torch.empty( Traceback (most recent call last): File "d:\桌面\CSGO-AI-Hack\CSGO.py", line 53, in <module> model.load_weights(args.weightsfile) # 将权重文件载入,并复制给对应的网络结构model中 File "d:\桌面\CSGO-AI-Hack\darknet.py", line 304, in load_weights self.header = torch.from_numpy(header) RuntimeError: Numpy is not available

錯誤:载入神经网络....

载入神经网络....
Traceback (most recent call last):
File "d:\下載\CSGO_AI-master\CSGO_AI-master\CSGO.py", line 53, in
model.load_weights(args.weightsfile) # 将权重文件载入,并复制给对应的网络结构model中
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "d:\下載\CSGO_AI-master\CSGO_AI-master\darknet.py", line 296, in load_weights
fp = open(weightfile, "rb")
^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'yolov3.weights'

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.