Code Monkey home page Code Monkey logo

ai-aimbot's People

Contributors

adamroden avatar afyzone avatar charlie-mcdaddy avatar coolgoagle avatar dragohg avatar fal3 avatar feelsdaumenman avatar jinxthecatto avatar kendoclaw1 avatar kotae4 avatar mustaphaalioglou avatar parideboy avatar qfc9 avatar tazmatic avatar tector101 avatar villageslayer 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ai-aimbot's Issues

AI cannot detect enemies therefore I cannot use the AI Aimbot

Hello, thank you for the great contribution!

I am here to ask about my issue about it. I have successfully ran the code but unfortunately, when checking my live feed, It doesn't detect any enemies (APEX LEGENDS)

I hope that anyone can help me out. Thank you!

help

Can someone more practical than me implement this in code it would help to keep a larger detection window by choosing only targets that pass around the value of a

import pyautogui
import time

pos = pyautogui.position()#pos mouse now
centro=(960,540)#center screen resolution
a=100,100 #distance activation

distanzax= -(centro[0]-pos[0]) if pos[0] < centro[0] else pos[0]-centro[0]
distanzay= -(centro[1]-pos[1]) if pos[1] < centro[1] else pos[1]-centro[1]
print (distanzax,distanzay)

x= distanzax if 0<distanzax else distanzax-distanzax-distanzax
print(x)
y= distanzay if 0<distanzay else distanzay-distanzay-distanzay
print(y)
logic=(x,y)
print (logic)
if logic<a:
pyautogui.moveTo (960,540)#change to target

Aim in Left Mouse Button

how do i make the aim work only when pressing the left mouse button ? I managed to put it on the left button but it is deactivating and activating, I would like it to work only when I press

Not working for testing the video game

Hi, I'm trying using this code for running on Apex Game for testing and educational purpose, but seem like it doesn't work on that game, what issue can be cause by this situation?

is that the Yolo model did not train on detect the person inside the Apex game?

yolov8 TRT version

Do you have any plans to implement a yolov8 TensorRT version for this project?

Hi i have some problems

C:\Users\Hirad\Desktop\unfx-proxy-checker-master\AI-Aimbot-main>python main.py
Traceback (most recent call last):
File "C:\Users\Hirad\Desktop\unfx-proxy-checker-master\AI-Aimbot-main\main.py", line 211, in
main()
File "C:\Users\Hirad\Desktop\unfx-proxy-checker-master\AI-Aimbot-main\main.py", line 75, in main
camera = dxcam.create(region=region)
File "C:\Users\Hirad\AppData\Local\Programs\Python\Python310\lib\site-packages\dxcam_init_.py", line 112, in create
return _factory.create(
File "C:\Users\Hirad\AppData\Local\Programs\Python\Python310\lib\site-packages\dxcam_init
.py", line 71, in create
camera = DXCamera(
File "C:\Users\Hirad\AppData\Local\Programs\Python\Python310\lib\site-packages\dxcam\dxcam.py", line 46, in init
self._validate_region(self.region)
File "C:\Users\Hirad\AppData\Local\Programs\Python\Python310\lib\site-packages\dxcam\dxcam.py", line 233, in _validate_region
raise ValueError(
ValueError: Invalid Region: Region should be in 1920x1080
Exception ignored in: <function DXCamera.del at 0x000002A71F999BD0>
Traceback (most recent call last):
File "C:\Users\Hirad\AppData\Local\Programs\Python\Python310\lib\site-packages\dxcam\dxcam.py", line 243, in del
self.release()
File "C:\Users\Hirad\AppData\Local\Programs\Python\Python310\lib\site-packages\dxcam\dxcam.py", line 238, in release
self.stop()
File "C:\Users\Hirad\AppData\Local\Programs\Python\Python310\lib\site-packages\dxcam\dxcam.py", line 138, in stop
if self.is_capturing:
AttributeError: 'DXCamera' object has no attribute 'is_capturing'

The aimbot doesnt work

It opens, shows the cps and even opens tha ai window but the aim assist doesnt work(i pressed caps lock)

error and traceback

Please read the below message and think about how it could be solved before posting it on discord.
Traceback (most recent call last):
File "C:\Users\aib\Downloads\AI-Aimbot-main\main.py", line 223, in
main()
File "C:\Users\aib\Downloads\AI-Aimbot-main\main.py", line 80, in main
camera = dxcam.create(region=region)
File "C:\Users\aib\AppData\Local\Programs\Python\Python39\lib\site-packages\dxcam_init_.py", line 112, in create
return _factory.create(
File "C:\Users\aib\AppData\Local\Programs\Python\Python39\lib\site-packages\dxcam_init
.py", line 71, in create
camera = DXCamera(
File "C:\Users\aib\AppData\Local\Programs\Python\Python39\lib\site-packages\dxcam\dxcam.py", line 46, in init
self._validate_region(self.region)
File "C:\Users\aib\AppData\Local\Programs\Python\Python39\lib\site-packages\dxcam\dxcam.py", line 233, in _validate_region
raise ValueError(
ValueError: Invalid Region: Region should be in 1920x1080

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\aib\Downloads\AI-Aimbot-main\main.py", line 227, in
traceback.print_exception(e)
TypeError: print_exception() missing 2 required positional arguments: 'value' and 'tb'
Exception ignored in: <function DXCamera.del at 0x000001CBE5959310>
Traceback (most recent call last):
File "C:\Users\aib\AppData\Local\Programs\Python\Python39\lib\site-packages\dxcam\dxcam.py", line 243, in del
self.release()
File "C:\Users\aib\AppData\Local\Programs\Python\Python39\lib\site-packages\dxcam\dxcam.py", line 238, in release
self.stop()
File "C:\Users\aib\AppData\Local\Programs\Python\Python39\lib\site-packages\dxcam\dxcam.py", line 138, in stop
if self.is_capturing:
AttributeError: 'DXCamera' object has no attribute 'is_capturing'

How to imporve the screen-capturing performance

My graphic card was a RTX3080 and all the environment that the aimbot needs was completely installed,but I can only get the CPS under 30,can I get some solutions?
I put the contents of the console below.

(base) C:\Users\AnnSir\AI-Aimbot>python main.py
Downloading: "https://github.com/ultralytics/yolov5/zipball/master" to C:\Users\AnnSir/.cache\torch\hub\master.zip
YOLOv5 2022-7-25 Python-3.9.7 torch-1.12.0 CUDA:0 (NVIDIA GeForce RTX 3080, 10240MiB)
Fusing layers...
YOLOv5s summary: 213 layers, 7225885 parameters, 0 gradients
Adding AutoShape...
CPS: 1
CPS: 22
CPS: 21
CPS: 23
CPS: 30
CPS: 28

mouse problem

when i turn it on the mouse goes to the corner of the screen and gets stuck there

When there are many people on the screen, the screen will shake among many people.

First of all, thank you very much for updating this project.
The performance improvement this time is extremely obvious.
However, there are still some problems in the process of using and debugging.
For example, when there are two people in the picture, the collimator will constantly swing between the first person and the second person.
In order to avoid this, a judgment should be added: always take the one with the largest box_size in the picture as the target.

I encountered some problems with dxcam when starting the project

Traceback (most recent call last):
File "main.py", line 201, in
main()
File "main.py", line 72, in main
camera = dxcam.create(region=region)
File "F:\conda\envs\yolo2\lib\site-packages\dxcam_init_.py", line 110, in create
return _factory.create(
File "F:\conda\envs\yolo2\lib\site-packages\dxcam_init
.py", line 70, in create
camera = DXCamera(
File "F:\conda\envs\yolo2\lib\site-packages\dxcam\dxcam.py", line 33, in init
self._duplicator: Duplicator = Duplicator(
File "", line 6, in init
File "F:\conda\envs\yolo2\lib\site-packages\dxcam\core\duplicator.py", line 19, in post_init
output.output.DuplicateOutput(device.device, ctypes.byref(self.duplicator))
_ctypes.COMError: (-2005270524, '指定的设备接口或功能级别在此系统上不受支持。', (None, None, None, 0, None))
Exception ignored in: <function DXCamera.del at 0x000001EA142683A0>
Traceback (most recent call last):
File "F:\conda\envs\yolo2\lib\site-packages\dxcam\dxcam.py", line 243, in del
self.release()
File "F:\conda\envs\yolo2\lib\site-packages\dxcam\dxcam.py", line 238, in release
self.stop()
File "F:\conda\envs\yolo2\lib\site-packages\dxcam\dxcam.py", line 138, in stop
if self.is_capturing:
AttributeError: 'DXCamera' object has no attribute 'is_capturing'

I'm a novice from China, just started learning this project, requesting detailed pointers
Thank you very much

Doubt

is it possible to make triggerbot ?

AI Aimbot for Valorant

I'm seeing some people saying ''why doesn't it work for valorant ?'', the answer is simple, you need arduino + usb host shield for mouse inputs, I managed to find a person who did this for me, take a look at the video below the value was not too expensive and he managed to make this project work for valorant for me!

Video : https://www.youtube.com/watch?v=z-AK8Q9Ehzs

Overload resolution failed

Loading yolov5s320Half.engine for TensorRT inference...
[08/09/2022-18:25:17] [TRT] [I] [MemUsageChange] Init CUDA: CPU +292, GPU +0, now: CPU 7334, GPU 990 (MiB)
[08/09/2022-18:25:17] [TRT] [I] Loaded engine size: 31 MiB
[08/09/2022-18:25:17] [TRT] [I] [MemUsageChange] TensorRT-managed allocation in engine deserialization: CPU +0, GPU +30, now: CPU 0, GPU 30 (MiB)
[08/09/2022-18:25:17] [TRT] [I] [MemUsageChange] TensorRT-managed allocation in IExecutionContext creation: CPU +0, GPU +8, now: CPU 0, GPU 38 (MiB)
Traceback (most recent call last):
File "D:\Game\Ai-Aimbot-yolov5\main_tensorrt_gpu.py", line 187, in
main()
File "D:\Game\Ai-Aimbot-yolov5\main_tensorrt_gpu.py", line 162, in main
cv2.rectangle(npImg, (startX, startY), (endX, endY),
cv2.error: OpenCV(4.6.0) 👎 error: (-5:Bad argument) in function 'rectangle'

Overload resolution failed:

  • img is not a numpy array, neither a scalar
  • Expected Ptrcv::UMat for argument 'img'
  • img is not a numpy array, neither a scalar
  • Expected Ptrcv::UMat for argument 'img'

AI detects but doesnt move the mouse to the target

It detects the "humans" (for example in valorant for 50%) but it doesnt move the mouse to the target.
I has only worked on my computer screen, not in games. so when im on google for example it moves to the left upper corner and does nothing else

specs:
3050 8gb single fan
intel i5-10400f
16gb of ram (plus some with page file)
2560x1440 screen

dxcam capture speed

Hi! The dxcam capture speed is unstable, between 0-10ms.The results are as follows. Why? Is it a bug?

1.1258000000000656
7.967900000000139
2.7013000000000176
2.367800000000031
3.877499999999756
0.017199999999828464
5.908699999999989
1.8077000000000787
1.7446000000003181
6.1069999999996405
1.5810000000002766
0.030100000000032878
1.7834999999997159
1.8221000000000487
0.040300000000215164
7.366799999999785
2.05870000000008
3.1911999999998386

Not working

AMD Ryzen.
In CMD:

C:\Users\MelvinSGjr\Desktop\AI-Aimbot-2.2.1>py main.py
Downloading: "https://github.com/ultralytics/yolov5/archive/master.zip" to C:\Users\MelvinSGjr/.cache\torch\hub\master.zip
YOLOv5 2022-9-26 Python-3.10.7 torch-1.11.0+cu113 CPU

Fusing layers...
YOLOv5s summary: 213 layers, 7225885 parameters, 0 gradients
Adding AutoShape...
Traceback (most recent call last):
File "C:\Users\MelvinSGjr\Desktop\AI-Aimbot-2.2.1\main.py", line 211, in
main()
File "C:\Users\MelvinSGjr\Desktop\AI-Aimbot-2.2.1\main.py", line 105, in main
im = torch.from_numpy(npImg).to('cuda')
File "C:\Users\MelvinSGjr\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\cuda_init_.py", line 216, in _lazy_init
torch._C._cuda_init()
RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx

C:\Users\MelvinSGjr\Desktop\AI-Aimbot-2.2.1>pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple dxcam
Looking in indexes: https://test.pypi.org/simple/, https://pypi.org/simple
Requirement already satisfied: dxcam in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (0.0.5)
Requirement already satisfied: numpy in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from dxcam) (1.23.3)
Requirement already satisfied: comtypes in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from dxcam) (1.1.14)
Requirement already satisfied: opencv-python in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from dxcam) (4.6.0.66)

C:\Users\MelvinSGjr\Desktop\AI-Aimbot-2.2.1>pip install -r requirements.txt
Requirement already satisfied: PyAutoGUI in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 1)) (0.9.53)
Requirement already satisfied: PyDirectInput in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 2)) (1.0.4)
Requirement already satisfied: Pillow in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 3)) (9.2.0)
Requirement already satisfied: opencv-python in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 4)) (4.6.0.66)
Requirement already satisfied: mss in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 5)) (6.1.0)
Requirement already satisfied: numpy in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 6)) (1.23.3)
Requirement already satisfied: pandas in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 7)) (1.5.0)
Requirement already satisfied: pywin32 in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 8)) (304)
Requirement already satisfied: pyyaml in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 9)) (6.0)
Requirement already satisfied: tqdm in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 10)) (4.64.1)
Requirement already satisfied: matplotlib in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 11)) (3.6.0)
Requirement already satisfied: seaborn in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 12)) (0.12.0)
Requirement already satisfied: requests in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from -r requirements.txt (line 13)) (2.28.1)
Requirement already satisfied: pymsgbox in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from PyAutoGUI->-r requirements.txt (line 1)) (1.0.9)
Requirement already satisfied: PyTweening>=1.0.1 in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from PyAutoGUI->-r requirements.txt (line 1)) (1.0.4)
Requirement already satisfied: pyscreeze>=0.1.21 in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from PyAutoGUI->-r requirements.txt (line 1)) (0.1.28)
Requirement already satisfied: pygetwindow>=0.0.5 in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from PyAutoGUI->-r requirements.txt (line 1)) (0.0.9)
Requirement already satisfied: mouseinfo in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from PyAutoGUI->-r requirements.txt (line 1)) (0.1.3)
Requirement already satisfied: pytz>=2020.1 in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from pandas->-r requirements.txt (line 7)) (2022.2.1)
Requirement already satisfied: python-dateutil>=2.8.1 in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from pandas->-r requirements.txt (line 7)) (2.8.2)
Requirement already satisfied: colorama in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from tqdm->-r requirements.txt (line 10)) (0.4.5)
Requirement already satisfied: fonttools>=4.22.0 in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->-r requirements.txt (line 11)) (4.37.3)
Requirement already satisfied: cycler>=0.10 in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->-r requirements.txt (line 11)) (0.11.0)
Requirement already satisfied: packaging>=20.0 in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->-r requirements.txt (line 11)) (21.3)
Requirement already satisfied: contourpy>=1.0.1 in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->-r requirements.txt (line 11)) (1.0.5)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->-r requirements.txt (line 11)) (1.4.4)
Requirement already satisfied: pyparsing>=2.2.1 in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->-r requirements.txt (line 11)) (3.0.9)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from requests->-r requirements.txt (line 13)) (2022.9.14)
Requirement already satisfied: charset-normalizer<3,>=2 in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from requests->-r requirements.txt (line 13)) (2.1.1)
Requirement already satisfied: idna<4,>=2.5 in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from requests->-r requirements.txt (line 13)) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from requests->-r requirements.txt (line 13)) (1.26.12)
Requirement already satisfied: pyrect in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from pygetwindow>=0.0.5->PyAutoGUI->-r requirements.txt (line 1)) (0.2.0)
Requirement already satisfied: six>=1.5 in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from python-dateutil>=2.8.1->pandas->-r requirements.txt (line 7)) (1.16.0)
Requirement already satisfied: pyperclip in c:\users\melvinsgjr\appdata\local\programs\python\python310\lib\site-packages (from mouseinfo->PyAutoGUI->-r requirements.txt (line 1)) (1.8.2)

C:\Users\MelvinSGjr\Desktop\AI-Aimbot-2.2.1>py main.py
Traceback (most recent call last):
File "C:\Users\MelvinSGjr\Desktop\AI-Aimbot-2.2.1\main.py", line 211, in
main()
File "C:\Users\MelvinSGjr\Desktop\AI-Aimbot-2.2.1\main.py", line 75, in main
camera = dxcam.create(region=region)
File "C:\Users\MelvinSGjr\AppData\Local\Programs\Python\Python310\lib\site-packages\dxcam_init_.py", line 112, in create
return _factory.create(
File "C:\Users\MelvinSGjr\AppData\Local\Programs\Python\Python310\lib\site-packages\dxcam_init
.py", line 71, in create
camera = DXCamera(
File "C:\Users\MelvinSGjr\AppData\Local\Programs\Python\Python310\lib\site-packages\dxcam\dxcam.py", line 46, in init
self._validate_region(self.region)
File "C:\Users\MelvinSGjr\AppData\Local\Programs\Python\Python310\lib\site-packages\dxcam\dxcam.py", line 233, in _validate_region
raise ValueError(
ValueError: Invalid Region: Region should be in 1920x1080
Exception ignored in: <function DXCamera.del at 0x000002B026D0E710>
Traceback (most recent call last):
File "C:\Users\MelvinSGjr\AppData\Local\Programs\Python\Python310\lib\site-packages\dxcam\dxcam.py", line 243, in del
self.release()
File "C:\Users\MelvinSGjr\AppData\Local\Programs\Python\Python310\lib\site-packages\dxcam\dxcam.py", line 238, in release
self.stop()
File "C:\Users\MelvinSGjr\AppData\Local\Programs\Python\Python310\lib\site-packages\dxcam\dxcam.py", line 138, in stop
if self.is_capturing:
AttributeError: 'DXCamera' object has no attribute 'is_capturing'

C:\Users\MelvinSGjr\Desktop\AI-Aimbot-2.2.1>py main.py
Traceback (most recent call last):
File "C:\Users\MelvinSGjr\Desktop\AI-Aimbot-2.2.1\main.py", line 211, in
main()
File "C:\Users\MelvinSGjr\Desktop\AI-Aimbot-2.2.1\main.py", line 75, in main
camera = dxcam.create(region=region)
File "C:\Users\MelvinSGjr\AppData\Local\Programs\Python\Python310\lib\site-packages\dxcam_init_.py", line 112, in create
return _factory.create(
File "C:\Users\MelvinSGjr\AppData\Local\Programs\Python\Python310\lib\site-packages\dxcam_init
.py", line 71, in create
camera = DXCamera(
File "C:\Users\MelvinSGjr\AppData\Local\Programs\Python\Python310\lib\site-packages\dxcam\dxcam.py", line 46, in init
self._validate_region(self.region)
File "C:\Users\MelvinSGjr\AppData\Local\Programs\Python\Python310\lib\site-packages\dxcam\dxcam.py", line 233, in _validate_region
raise ValueError(
ValueError: Invalid Region: Region should be in 1920x1080
Exception ignored in: <function DXCamera.del at 0x000002360E86E710>
Traceback (most recent call last):
File "C:\Users\MelvinSGjr\AppData\Local\Programs\Python\Python310\lib\site-packages\dxcam\dxcam.py", line 243, in del
self.release()
File "C:\Users\MelvinSGjr\AppData\Local\Programs\Python\Python310\lib\site-packages\dxcam\dxcam.py", line 238, in release
self.stop()
File "C:\Users\MelvinSGjr\AppData\Local\Programs\Python\Python310\lib\site-packages\dxcam\dxcam.py", line 138, in stop
if self.is_capturing:
AttributeError: 'DXCamera' object has no attribute 'is_capturing'

Not working on AMD GPU

I get this error when i run this command:

python .\export.py --weights ./yolov5s.pt --include onnx --half --imgsz 320 320 --device 0

Invalid CUDA '--device 0' requested, use '--device cpu' or pass valid CUDA device(s)

ImportError: cannot import name 'is_jupyter' from 'utils.general' (D:\Projects\Python\AI-Aimbot-main\utils\general.py)

The weird thing is, it worked fine before and since yesterday i have this issue every time i try to run the torch gpu version:

Traceback (most recent call last):
  File "D:\Projects\Python\AI-Aimbot-main\main_torch_gpu.py", line 217, in <module>
    main()
  File "D:\Projects\Python\AI-Aimbot-main\main_torch_gpu.py", line 95, in main
    model = torch.hub.load('ultralytics/yolov5', 'yolov5s',
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\hub.py", line 542, in load
    model = _load_local(repo_or_dir, model, *args, **kwargs)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\torch\hub.py", line 572, in _load_local
    model = entry(*args, **kwargs)
  File "C:\Users\Administrator/.cache\torch\hub\ultralytics_yolov5_master\hubconf.py", line 93, in yolov5s
    return _create('yolov5s', pretrained, channels, classes, autoshape, _verbose, device)
  File "C:\Users\Administrator/.cache\torch\hub\ultralytics_yolov5_master\hubconf.py", line 33, in _create
    from models.common import AutoShape, DetectMultiBackend
  File "C:\UsersAdministrator/.cache\torch\hub\ultralytics_yolov5_master\models\common.py", line 29, in <module>
    from utils.general import (LOGGER, ROOT, Profile, check_requirements, check_suffix, check_version, colorstr,
ImportError: cannot import name 'is_jupyter' from 'utils.general' (D:\Projects\Python\AI-Aimbot-main\utils\general.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Projects\Python\AI-Aimbot-main\main_torch_gpu.py", line 221, in <module>
    traceback.print_exception(e)
TypeError: print_exception() missing 2 required positional arguments: 'value' and 'tb'

error with importing payautogui

File "C:\Users\Wille\Desktop\AI-Aimbot-2.2.2\AI-Aimbot-2.2.2\main.py", line 3, in
import pyautogui
ModuleNotFoundError: No module named 'pyautogui'

Upgrade to YOLOv8

Is anyone on the team working on updating this project to take advantage of the recently released YOLOv8?

Observations from testing

For the curious people out there I have done some testing on this and my own aimbots using a GTX 1080ti GPU. This is about as good as you'll find without writing something yourself.

At a high-level:

  • Once you get it setup properly it will work to target a humanoid's head.
  • It can zero-in extremely fast on an slow moving or idle characters, but it will always lag behind running or jumping targets.
  • The children I play with can aim and shoot faster and more accurately than this in 90% of scenarios.

In a deeper-dive:

  • I find dxcam to be awesome!
  • I modified to use yolov8 and feel the speed and accuracy are superior.
  • Using a small PyTorch model I can get 45 fps
  • Using a small TensorRT model I can get over 60 fps

Tracking

Instead of aiming on the player, it goes on the right of the player

win32api on Linux

Hi all, thank for the great project. Wanted to test it out on Linux but the requirements have win32api. Is it possible to get this run on Linux too?

ImportError

ImportError: cannot import name 'is_notebook' from 'utils.general'
Had this issue when I tried to run main.py in powershell
Can you guys help me to fix this?

Cupy errors on AMD gpu for Windows 10

Hi, I have errors with cupy on amd gpu. It says "no cuda capable device is detected". Which is obvious, I don't have Nvidia GPU. How can I solve ? Is there a version of cupy for AMD ? (maybe cupy-rocm, but I'm on Windows 10 and it says it's only for Linux). How can I solve ?

package issue

hello, im getting the following error

  File "C:\Users\ayden\OneDrive\Desktop\AI-Aimbot-2.2.2\AI-Aimbot-2.2.2\main.py", line 2, in <module>
    import torch
ModuleNotFoundError: No module named 'torch'

ive re installed the module multiple times and it has still not worked please help.

Error Code 4: Internal Error (Engine deserialization failed.)

Loading yolov5s320Half.engine for TensorRT inference...
[08/02/2022-00:09:49] [TRT] [I] [MemUsageChange] Init CUDA: CPU +412, GPU +0, now: CPU 12438, GPU 1245 (MiB)
[08/02/2022-00:09:49] [TRT] [I] Loaded engine size: 15 MiB
[08/02/2022-00:09:49] [TRT] [E] 6: The engine plan file is generated on an incompatible device, expecting compute 8.6 got compute 7.5, please rebuild.
[08/02/2022-00:09:49] [TRT] [E] 4: [runtime.cpp::nvinfer1::Runtime::deserializeCudaEngine::50] Error Code 4: Internal Error (Engine deserialization failed.)
Traceback (most recent call last):
File "C:\ai\main_tensorrt_gpu.py", line 187, in
main()
File "C:\ai\main_tensorrt_gpu.py", line 83, in main
model = DetectMultiBackend('yolov5s320Half.engine', device=torch.device('cuda'), dnn=False, data='', fp16=True)
File "C:\ai\models\common.py", line 389, in init
for index in range(model.num_bindings):
AttributeError: 'NoneType' object has no attribute 'num_bindings'

3rd person shooters,

could we get it implemented that a character in a 3rd person game is discounted from the algorithm? another program I used to use had this line to prevent such a thing.
"if len(results.xyxy[0]) != 0: #player detected
least_crosshair_dist = closest_detection = player_in_frame = False
for *box, conf, cls in results.xyxy[0]: #iterate over each player detected
x1y1 = [int(x.item()) for x in box[:2]]
x2y2 = [int(x.item()) for x in box[2:]]
x1, y1, x2, y2, conf = *x1y1, *x2y2, conf.item()
height = y2 - y1
relative_head_X, relative_head_Y = int((x1 + x2)/2), int((y1 + y2)/2 - height/2.7) #offset to roughly approximate the head using a ratio of the height
own_player = x1 < 15 or (x1 < self.box_constant/5 and y2 > self.box_constant/1.2) #helps ensure that your own player is not regarded as a valid detection"

Just an idea ty

Cant Install detectron2

Hello, I tried to install detectron2, but I think installing detectron2 on windows is too complicated I read their installation tutorial but I did not understand anything, so please make a tutorial for this:)

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.