chaoyu1999 / fpsautomaticaiming Goto Github PK
View Code? Open in Web Editor NEW基于yolov5的FPS游戏AI。
License: Apache License 2.0
基于yolov5的FPS游戏AI。
License: Apache License 2.0
使用pyautogui调用move_rel 至少都会耗费调0.1s,使得整个循环周期极大延长。目前我准备使用pyQt做界面交互控制参数,使用tensorRT加速推理,精度使用fp16/int8,理论上3060机器可以跑到FPS 60往上,我的项目已经开源,可以一起交流。
使用易键鼠,鼠标会乱跑,有办法解决吗
大佬,这套程序我进行到fusing layers然后我不管怎么操作都还是没反应。。。
想使用你打包好的软件,可以收费
显示fusing layers...
GPU飙到七八十,不知道正不正常
着还怎么上游戏~
显卡 1650
Fusing layers...
Traceback (most recent call last):
File "Main.py", line 12, in
dll = cdll.LoadLibrary(r'lib/Dll.dll') # 加载用C语言封装过的“易键鼠”dll
File "C:\Users\Test\anaconda3\envs\yolo\lib\ctypes_init_.py", line 451, in LoadLibrary
return self.dlltype(name)
File "C:\Users\Test\anaconda3\envs\yolo\lib\ctypes_init.py", line 373, in init
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'D:\Work\opensource\FPSAutomaticAiming\lib\Dll.dll' (or one of its dependencies). Try using the full path with constructor syntax.
是需要安装其他的库吗?
如题 conda环境已安装
不进游戏是有效果的,不知道是不是无畏契约游戏内屏蔽了win的api调用的关系,但是别人基于openCV写的软件是可以正常调用的(不确定是否使用原生msdk.dll)(也是使用易键鼠),我猜测可能封装dll这方面出现了问题。
请问一下,运行main之后,一直卡在fusing layers是怎么回事
D:\FPSAutomaticAiming>py main.py
Traceback (most recent call last):
File "D:\FPSAutomaticAiming\main.py", line 4, in
from FPSDetect import *
File "D:\FPSAutomaticAiming\FPSDetect.py", line 1, in
import numpy as np
ModuleNotFoundError: No module named 'numpy'
试过pywin32,同样无法模拟鼠标转向,难道只能用硬件驱动吗Orz
from utils.datasets import letterbox
ModuleNotFoundError: No module named 'utils.datasets'
FPSAutomaticAiming-main\utils\datasets.py 有这个文件啊
找到文件运行报错
from utils.general import check_requirements, xyxy2xywh, xywh2xyxy, xywhn2xyxy, xyn2xy, segment2box, segments2boxes,
ModuleNotFoundError: No module named 'utils.general'
然后我运行 'utils.general' 报错
from utils.google_utils import gsutil_getsize
ModuleNotFoundError: No module named 'utils.google_utils'
然后运行 'utils.google_utils' 正常了
进程已结束,退出代码为 0
为什么当敌人离我越远的时候 准心越偏下尼?这是什么原因导致的尼 可否一直锁头尼 大佬能解惑下么
when i input "conda env create -f yolo.yaml",it responses to "EnvironmentFileNotFound".Would you please guide me how to configure the environment rightly
大佬有没有联系方式,我运行起来报错好几个地方,由于学识不够看不懂,请大佬给看看
如果不用易键鼠行不行?
Hi boss. How to fix this?
Fusing layers...
Traceback (most recent call last):
File "/Users/anderson/Downloads/FPSAutomaticAiming-main/./Main.py", line 148, in
detections = detect(img) # 送入yolo检测
File "/Users/anderson/Downloads/FPSAutomaticAiming-main/CFDetect.py", line 44, in detect
pred = model(img, augment=False)[0]
File "/opt/miniconda3/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "/Users/anderson/Downloads/FPSAutomaticAiming-main/models/yolo.py", line 123, in forward
return self.forward_once(x, profile) # single-scale inference, train
File "/Users/anderson/Downloads/FPSAutomaticAiming-main/models/yolo.py", line 139, in forward_once
x = m(x) # run
File "/opt/miniconda3/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "/Users/anderson/Downloads/FPSAutomaticAiming-main/models/common.py", line 171, in forward
return self.conv(torch.cat([x[..., ::2, ::2], x[..., 1::2, ::2], x[..., ::2, 1::2], x[..., 1::2, 1::2]], 1))
File "/opt/miniconda3/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "/Users/anderson/Downloads/FPSAutomaticAiming-main/models/common.py", line 45, in fuseforward
return self.act(self.conv(x))
File "/opt/miniconda3/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
return forward_call(*input, **kwargs)
File "/opt/miniconda3/lib/python3.9/site-packages/torch/nn/modules/conv.py", line 443, in forward
return self._conv_forward(input, self.weight, self.bias)
File "/opt/miniconda3/lib/python3.9/site-packages/torch/nn/modules/conv.py", line 439, in _conv_forward
return F.conv2d(input, weight, bias, self.stride,
RuntimeError: Given groups=1, weight of size [32, 12, 3, 3], expected input[1, 16, 320, 320] to have 12 channels, but got 16 channels instead
怎么使用呢 不太清楚
大佬 给个联系方式可以吗? 拜托!
请问是模型原因么?我模型已经换了CF的模型 作者大佬可以解答下么?
响应速度怎么样?延迟大概是多少.
请问一下 运行后鼠标没反应(不瞄人)是怎么回事?
游戏:CF
您好,我想问一下训练数据集可以公布一下吗?
会不会自动瞄准自己的队友???
Sent from PPHub
使用cpu时能够正常显示fusing layers,而使用gpu无任何反馈 检查gpu无任何占用,输入torch.cuda.is_available()正常返回true,请问是哪里出了问题呢
用PyCharm运行了一下显示无法获取到 ‘SPPF’
AttributeError: Can't get attribute 'SPPF' on <module 'models.common' from D:\FPSAutomaticAiming-main\models\common.py'>
这是怎么回事啊大佬!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.