mrathena / python.yolo.apex.autoaim.helper Goto Github PK
View Code? Open in Web Editor NEWPython Yolo v5 6.2 Apex
Python Yolo v5 6.2 Apex
YOLOv5 2023-5-26 Python-3.9.16 torch-2.0.1+cu117 CUDA:0 (NVIDIA GeForce RTX 3060, 12287MiB)
Fusing layers...
Model summary: 213 layers, 7012822 parameters, 0 gradients
Traceback (most recent call last):
File "D:\GameAiTools\python.yolo.apex.autoaim.helper-master\detect.realtime.py", line 11, in
detector = Detector(weight)
File "C:\Users\ZD\anaconda3\envs\tmp_env_yolo\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "D:\GameAiTools\python.yolo.apex.autoaim.helper-master\toolkit.py", line 262, in init
self.model.warmup(imgsz=(1 if self.pt else bs, 3, *self.imgsz)) # warmup
File "D:\GameAiTools\python.yolo.apex.autoaim.helper-master\models\common.py", line 533, in warmup
return forward_call(*args, **kwargs)
File "D:\GameAiTools\python.yolo.apex.autoaim.helper-master\models\yolo.py", line 192, in forward
return self._forward_once(x, profile, visualize) # single-scale inference, train
File "D:\GameAiTools\python.yolo.apex.autoaim.helper-master\models\yolo.py", line 106, in _forward_once
y.append(x if m.ki in self.save else None) # save output
File "C:\Users\ZD\anaconda3\envs\tmp_env_yolo\lib\site-packages\torch\nn\modules\module.py", line 1614, in getattr
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'Conv' object has no attribute 'ki'
ImportError: numpy.core.multiarray failed to import
#敌我识别
try:
img = cv2.imread(img)
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
# 定义蓝色和绿色的HSV范围
lower_blue = np.array([110, 50, 50])
upper_blue = np.array([130, 255, 255])
lower_green = np.array([50, 50, 50])
upper_green = np.array([70, 255, 255])
x1 = target[3][0],y1 = target[3][1],x2 = target[3][2],y2 = target[3][3]
cx = (x1 + x2) / 2
cy = (y1 + y2) / 2
w = x2 - x1
h = y2 - y1
target = torch.stack((cx, cy, w, h), axis=-1)
print(f'{x1},{y1},{x2},{y2}')
x, y, w, h = (cx, cy, w, h) #这段可能还有问题
roi = img[y - 100:y, x:x + w] # 获取box上方100个y内的区域
# 将区域转换为HSV颜色空间
hsv_roi = cv2.cvtColor(roi, cv2.COLOR_BGR2HSV)
# 创建掩膜
mask_roi_blue = cv2.inRange(hsv_roi, lower_blue, upper_blue)
mask_roi_green = cv2.inRange(hsv_roi, lower_green, upper_green)
except:
print("no")
if (cv2.countNonZero(mask_roi_blue) == 0) and (cv2.countNonZero(mask_roi_green) == 0)and data[lock] and target :
index, clazz, conf, sc, gc, sr, gr = target
if inner(sc):
cx, cy = data[center]
sx, sy = sc #移动十字准线以跟随目标对象
x = sx - cx
y = sy - cy
if data[pidc]:
px = -int(pidx(x))
move(px, y)
else:
ax = int(x * data[ads])
ay = int(y * data[ads])
move(ax, ay)
你好,在test.measure.palstance.py文件中的mouse.device.lgs.dll文件如何获取?代码报错显示缺少这个文件
我这边改了标题 改了weights 运行这个文件detect.realtime.py能识别cf游戏中的图片人物 但是进入游戏后,没有任何效果是什么原因?
In Apex Legends, This aimbot triggers an almost instantous behavior ban.
Streaming from another devices and running program in other GPU still trigger a ban.
I haven't try to rewrite mouse moving algorithm so I sus that might help?
FileNotFoundError: [Errno 2] No such file or directory: 'weights.apex.private.crony.1435244588.1127E7B7107206013DE38A10EDDEEEB3-v5-n-416-50000-3-0.1.2.engine'
这个.engine文件是要自己训练吗
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.