Merge branch 'main' into dev

This commit is contained in:
Elijah Harmon 2022-04-16 15:26:00 -04:00 committed by GitHub
commit 77206d18a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -85,7 +85,8 @@ ANYTHING dealing with Machine Learning can be funky with your computer. So if yo
4. To install `PyTorch` go to this website, https://pytorch.org/get-started/locally/, and Select the stable build, your OS, Pip, Python and CUDA 11.3. Then select the text that is generated and run that command. 4. To install `PyTorch` go to this website, https://pytorch.org/get-started/locally/, and Select the stable build, your OS, Pip, Python and CUDA 11.3. Then select the text that is generated and run that command.
6. Copy and past the command below into your terminal. This will install the Open Source packages needed to run the program. You will need to `cd` into the downloaded directory first. Follow step 2 in the Run section below if you need help. 5. Copy and past the command below into your terminal. This will install the Open Source packages needed to run the program. You will need to `cd` into the downloaded directory first. Follow step 2 in the Run section below if you need help.
``` ```
pip install -r requirements.txt pip install -r requirements.txt
``` ```

View File

@ -1,3 +1,4 @@
from unittest import result
import torch import torch
import pyautogui import pyautogui
import gc import gc
@ -82,6 +83,7 @@ def main():
# Main loop Quit if Q is pressed # Main loop Quit if Q is pressed
last_mid_coord = None last_mid_coord = None
aimbot=False aimbot=False
while win32api.GetAsyncKeyState(ord(aaQuitKey)) == 0: while win32api.GetAsyncKeyState(ord(aaQuitKey)) == 0:
# Getting screenshop, making into np.array and dropping alpha dimention. # Getting screenshop, making into np.array and dropping alpha dimention.
npImg = np.delete(np.array(sct.grab(sctArea)), 3, axis=2) npImg = np.delete(np.array(sct.grab(sctArea)), 3, axis=2)