GithubHelp home page GithubHelp logo

python.yolo.apex.autoaim.helper's People

Contributors

mrathena 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

python.yolo.apex.autoaim.helper's Issues

更新后出现 AttributeError: 'Conv' object has no attribute 'ki'错误

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'

您好,我能这么写用来检测友军吗,不知道为什么运行失败,大佬求帮

#敌我识别

try:
img = cv2.imread(img)

将图像转换为RGB格式

 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])                                                                            

获取box的位置和大小

 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)

看不到效果

我这边改了标题 改了weights 运行这个文件detect.realtime.py能识别cf游戏中的图片人物 但是进入游戏后,没有任何效果是什么原因?

Got banned

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?

No such file or directory

FileNotFoundError: [Errno 2] No such file or directory: 'weights.apex.private.crony.1435244588.1127E7B7107206013DE38A10EDDEEEB3-v5-n-416-50000-3-0.1.2.engine'
这个.engine文件是要自己训练吗

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.