Giter Site home page Giter Site logo

rootkit-org / ai-aimbot Goto Github PK

View Code? Open in Web Editor NEW
1.0K 22.0 226.0 205.68 MB

World's Best AI Aimbot - CS2, Valorant, Fortnite, APEX, every game

License: GNU General Public License v3.0

Python 98.80% Shell 0.45% Dockerfile 0.76%
machine-learning aimbot aimbotcsgo video-game-ai aimbot-valorant aimbot-tarkov ai-aimbot ml-aimbot cs2 cs2-aimbot

ai-aimbot's Introduction

๐ŸŽฏ World's Best AI Aimbot ๐ŸŽฎ

World's Best AI Aimbot Banner

Pull Requests Welcome

โœจBEST EXPERIENCE, Use our Launcher and the Launcher Custom Code Pack!โœจ

Over 6,000 users use the Launcher

๐Ÿ”ด LIVE: Aimbot Internation 2024 - Win $1,000s

Prepare your custom code and submit it for the aimbot internation which ends later this year. Work alone or solo. Check out the following videos to learn more.

All custom code must be submitting thru the launcher. https://youtube.com/live/mtV6w2qhaNs?feature=share

Download the RootKit Launcher. It is FREE. No coding required.

It will auto-setup everything for you!

Want to make your own bot? Then use the Starter Code Pack!

๐Ÿ™Œ Welcome Aboard!

We're a charity on a mission to educate and certify the upcoming wave of developers in the world of Computer Engineering ๐ŸŒ. Need assistance? Hop into our Discord and toss your questions at @Wonder in the #ai-aimbot channel (be sure to stick to this channel or face the consequences! ๐Ÿ˜ฌ). Type away your query and include @Wonder in there.

Our AI Aimbot ๐Ÿค– sharpshoots targets in any game with humanoid characters, harnessing the power of YOLOv5. Currently, it's a ninja against anti-cheat systems, as it's visual-only. Still, watch out for manual player reports! ๐Ÿ‘€

Intended for educational use ๐ŸŽ“, our aim is to highlight the vulnerability of game devs to AI-driven cheats. Pass it along to your game developer buddies, and save their games from being outsmarted!

โš  Use at your own risk! If you're caught... well, you've been warned!

๐Ÿ“น Instructional Media

There are 3 Versions ๐Ÿš€๐Ÿšฆ๐Ÿ–ฅ๏ธ

  • Fast ๐Ÿƒโ€โ™‚๏ธ - main.py โœ… Easy to set up, Works on any computer ๐Ÿ’ป
  • Faster ๐Ÿƒโ€โ™‚๏ธ๐Ÿ’จ - main_onnx.py โš™๏ธ May need to edit a file, Works on any computer ๐Ÿ’ป
  • Fastest ๐Ÿš€ - main_tensorrt.py ๐Ÿข Enterprise level hard, Works on computers with Nvidia GPUs only ๐ŸŽฎ

๐Ÿงฐ Requirements

  • Nvidia RTX 980 ๐Ÿ†™, higher or equivalent
  • And one of the following:

๐Ÿš€ Pre-setup Steps

  1. Download and Unzip the AI Aimbot and stash the folder somewhere handy ๐Ÿ—‚๏ธ.
  2. Ensure you've got Python installed (like a pet python ๐Ÿ) โ€“ grab version 3.11 HERE.
    • ๐Ÿ›‘ Facing a python is not recognized... error? WATCH THIS!
    • ๐Ÿ›‘ Is it a pip is not recognized... error? WATCH THIS!
  3. Fire up PowerShell or Command Prompt on Windows ๐Ÿ”.
  4. To install PyTorch, select the appropriate command based on your GPU.
    • Nvidia pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118
    • AMD or CPU pip install torch torchvision torchaudio
  5. ๐Ÿ“ฆ Run the command below to install the required Open Source packages:
pip install -r requirements.txt

๐Ÿ”Œ How to Run (Fast ๐Ÿƒโ€โ™‚๏ธ Version)

Follow these steps after Python and all packages have been installed:

  1. Open PowerShell โšก or Command Prompt ๐Ÿ’ป.
  2. Input cd , then drag & drop the folder containing the bot code into the terminal.
  3. Hit Enter โ†ฉ๏ธ.
  4. Type python main.py and press Enter.
  5. Use CAPS_LOCK to toggle the aimbot ๐ŸŽฏ. It begins in the off state.
  6. Pressing q ๐Ÿ’ฃ at ANY TIME will shut down the program.

๐Ÿ”Œ How to Run (Faster ๐Ÿƒโ€โ™‚๏ธ๐Ÿ’จ Version)

Follow these steps after Python and all packages have been installed:

  1. Open the config.py ๐Ÿ“„ file and tweak the onnxChoice variable to correspond with your hardware specs:
    • onnxChoice = 1 # CPU ONLY ๐Ÿ–ฅ
    • onnxChoice = 2 # AMD/NVIDIA ONLY ๐ŸŽฎ
    • onnxChoice = 3 # NVIDIA ONLY ๐ŸŽ๏ธ
  2. IF you have an NVIDIA set up, run the following
    pip install onnxruntime-gpu
    pip install cupy-cuda11x
    
  3. Follow the same steps as for the Fast ๐Ÿƒโ€โ™‚๏ธ Version above except for step 4, you will run python main_onnx.py instead.

๐Ÿ”Œ How to Run (Fastest ๐Ÿš€ Version)

Follow these sparkly steps to get your TensorRT ready for action! ๐Ÿ› ๏ธโœจ

  1. Introduction ๐ŸŽฌ Watch the TensorRT section of the setup video ๐ŸŽฅ before you begin. It's loaded with useful tips!

  2. Oops! Don't Forget the Environment ๐ŸŒฑ We forgot to mention adding environmental variable paths in the video. Make sure to do this part!

  3. Get Support If You're Stumped ๐Ÿค” If you ever feel lost, you can always @Wonder your questions in our Discord ๐Ÿ’ฌ. Wonder is here to help!

  4. Install Cupy Run the following pip install cupy-cuda11x

  5. CUDNN Installation ๐Ÿงฉ Click to install CUDNN ๐Ÿ“ฅ. You'll need a Nvidia account to proceed. Don't worry it's free.

  6. Unzip and Relocate ๐Ÿ“โžก๏ธ Open the .zip CuDNN file and move all the folders/files to where the CUDA Toolkit is on your machine, usually at C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8.

  7. Get TensorRT 8.6 GA ๐Ÿ”ฝ Fetch TensorRT 8.6 GA ๐Ÿ›’.

  8. Unzip and Relocate ๐Ÿ“โžก๏ธ Open the .zip TensorRT file and move all the folders/files to where the CUDA Toolkit is on your machine, usually at C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8.

  9. Python TensorRT Installation ๐ŸŽก Once you have all the files copied over, you should have a folder at C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\python. If you do, good, then run the following command to install TensorRT in python.

    pip install "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\python\tensorrt-8.6.1-cp311-none-win_amd64.whl"
    

    ๐Ÿšจ If the following steps didn't work, don't stress out! ๐Ÿ˜… The labeling of the files corresponds with the Python version you have installed on your machine. We're not looking for the 'lean' or 'dispatch' versions. ๐Ÿ” Just locate the correct file and replace the path with your new one. ๐Ÿ”„ You've got this! ๐Ÿ’ช

  10. Set Your Environmental Variables ๐ŸŒŽ Add these paths to your environment:

  • C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\lib
  • C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp
  • C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin
  1. Download Pre-trained Models ๐Ÿค– You can use one of the .engine models we supply. But if it doesn't work, then you will need to re-export it. Grab the .pt file here for the model you want. We recommend yolov5s.py or yolov5m.py HERE ๐Ÿ”—.

  2. Run the Export Script ๐Ÿƒโ€โ™‚๏ธ๐Ÿ’ป Time to execute export.py with the following command. Patience is key; it might look frozen, but it's just concentrating hard! Can take up to 20 mintues.

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

Note: You can pick a different YOLOv5 model size. TensorRT's power allows for larger models if desired!

If you've followed these steps, you should be all set with TensorRT! โš™๏ธ๐Ÿš€

โš™๏ธ Configurable Settings

*Default settings are generally great for most scenarios. Check out the comments in the code for more insights. ๐Ÿ” The configuration settings are now located in the config.py file!
CAPS_LOCK is the default for flipping the switch on the autoaim superpower! โš™๏ธ ๐ŸŽฏ

useMask - Set to True or False to turn on and off ๐ŸŽญ

maskWidth - The width of the mask to use. Only used when useMask is True ๐Ÿ“

maskHeight - The height of the mask to use. Only used when useMask is True ๐Ÿ“

aaQuitKey - The go-to key is q, but if it clashes with your game style, swap it out! โŒจ๏ธโ™ป๏ธ

headshot_mode - Set to False if you're aiming to keep things less head-on and more centered. ๐ŸŽฏโžก๏ธ๐Ÿ‘•

cpsDisplay - Toggle off with False if you prefer not to display the CPS in your command station. ๐Ÿ’ป๐Ÿšซ

visuals - Flip to True to witness the AI's vision! Great for sleuthing out any hiccups. ๐Ÿ•ต๏ธโ€โ™‚๏ธโœ…

aaMovementAmp - The preset should be on point for 99% of players. Lower the digits for smoother targeting. Recommended doses: 0.5 - 2. โš–๏ธ๐Ÿ•น๏ธ

confidence - Stick with the script here unless you're the expert. ๐Ÿงโœจ

screenShotHeight - Same as above, no need for changes unless you've got a specific vision. ๐Ÿ“๐Ÿ–ผ๏ธ

screenShotWidth - Keep it constant as is, unless you've got reasons to adjust. ๐Ÿ“๐Ÿ–ผ๏ธ

aaDetectionBox - Default's your best bet, change only if you've got the know-how. ๐Ÿ“ฆโœ…

onnxChoice - Gear up for the right graphics cardโ€”Nvidia, AMD, or CPU power! ๐Ÿ’ป๐Ÿ‘พ

centerOfScreen - Keep this switched on to stay in the game's heart. โค๏ธ๐Ÿ–ฅ๏ธ

๐Ÿ“Š Current Stats

The bot's efficiency depends on your setup. We achieved 100-150 CPS with our test specs below ๐Ÿš€.

- AMD Ryzen 7 2700
- 64 GB DDR4
- Nvidia RTX 3080

๐Ÿ’ก Tip: Machine Learning can be tricky, so reboot if you keep hitting CUDA walls.

๐Ÿค Community Based

We're all about collaboration. Your contributions can earn you credit and potential ๐Ÿ’ฐ!

Want to volunteer? Have video or program ideas? Tell us!

โš ๏ธ Known Cheat-Detectable Games

Splitgate (reported by a Discord user ๐Ÿ•ต๏ธโ€โ™‚๏ธ), EQU8 detects win32 mouse movement library.

๐Ÿš€ Custom Aimbots and Models

Show off your work or new models via Pull Requests in customScripts or customModels directories, respectively. Check out the example-user folder for guidance.

๐ŸŒ  Future Ideas

  • Mask Player to avoid false positives

Happy Coding and Aiming! ๐ŸŽ‰๐Ÿ‘พ

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

ai-aimbot's Issues

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 ?

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

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

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

Upgrade to YOLOv8

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

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'

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 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?

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.

Tracking

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

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!

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'

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'

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

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

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

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)

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'

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

yolov8 TRT version

Do you have any plans to implement a yolov8 TensorRT version for this project๏ผŸ

mouse problem

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

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

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?

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'

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

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)

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

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'

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?

Doubt

is it possible to make triggerbot ?

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.