From 01029556822d162ebab3c837293d6ded47056498 Mon Sep 17 00:00:00 2001 From: Elijah Harmon Date: Fri, 5 Aug 2022 19:05:58 -0400 Subject: [PATCH 1/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dcb9703..44a811d 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ If you are comfortable with your skills, you can run the other 4 versions. You c `main_onnx_gpu.py` will give you up to a 100% performance boost. You will need to pip install `onnxruntime` specific for your GPU and toolkit version. An AMD GPU compatible version of `onnxruntime` is available for linux users only right now. -`main_tensorrt_gpu.py` is the BEST. It gives over a 200% performance boost. In our testing, the screenshot engine was the bottleneck. Tensorrt is only available via download from NVIDIA's site. You will need to make an account. Just go to this link and get `TensorRT 8.4 GA`. https://developer.nvidia.com/tensorrt You will need to install it via the .whl file they give you. +`main_tensorrt_gpu.py` is the BEST. It gives over a 200% performance boost. In our testing, the screenshot engine was the bottleneck. Tensorrt is only available via download from NVIDIA's site. You will need to make an account. Just go to this link and get `TensorRT 8.4 GA`. https://developer.nvidia.com/tensorrt You will need to install it via the .whl file they give you. You may also need https://developer.nvidia.com/cudnn. ### REQUIREMENTS - Nvidia RTX 2050 or higher From ad16aec34fdd26daea3e7286add1a2d5ddb281b8 Mon Sep 17 00:00:00 2001 From: Elijah Harmon Date: Tue, 9 Aug 2022 12:43:33 -0400 Subject: [PATCH 2/4] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 44a811d..956b7db 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,8 @@ The guide below starting with *Pre-Setup** will get the `main.py` version runnin If you are comfortable with your skills, you can run the other 4 versions. You can also get AMD GPUs running the bot using the onnx version. This is advance stuff. **If you are not advance, skip to pre-setup below.** Python 3.9 is recommened if you are going to continue due to packages compatibility issues. +**EXPECT LITTLE TO NO HELP FROM STAFF IN REGARDS TO ANY OF THE ADVANCE SET UP UNLESS YOU ARE A PATREON MEMBER.** This includes openning issues. If you are opening an issue, give full content including but not limited to OS, GPU, RAM, Toolkit version, cuDNN version, tensorRT version, etc. + `main_torch_gpu.py` will be the easiest to get running. You just need to install pip install `cupy` based on your CUDA Toolkti version. This can give up to a 10% performance boost. `main_onnx_cpu.py` is for those of you who don't have a nvidia CPU. It will be optimized for CPU based compute. You need to `pip install onnxruntime`. From e1a9d45ff5b15eaebda9c4b617f4982865878b73 Mon Sep 17 00:00:00 2001 From: KendoClaw1 Date: Wed, 24 Aug 2022 19:41:21 +0200 Subject: [PATCH 3/4] Update main_tensorrt_gpu.py (#27) --- main_tensorrt_gpu.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/main_tensorrt_gpu.py b/main_tensorrt_gpu.py index 9d59e38..cb18040 100644 --- a/main_tensorrt_gpu.py +++ b/main_tensorrt_gpu.py @@ -96,7 +96,12 @@ def main(): im = cp.moveaxis(npImg, 3, 1) im = torch.from_numpy(cp.asnumpy(im)).to('cuda') - + + #Converting to numpy for visuals + im0 = im[0].permute(1, 2, 0) * 255 + im0 = im0.cpu().numpy().astype(np.uint8) + im0 = cv2.cvtColor(im0, cv2.COLOR_RGB2BGR) #Image has to be in BGR for visualization + # Detecting all the objects results = model(im) @@ -159,10 +164,10 @@ def main(): idx = 0 # draw the bounding box and label on the frame label = "{}: {:.2f}%".format("Human", confidence * 100) - cv2.rectangle(npImg, (startX, startY), (endX, endY), + cv2.rectangle(im0, (startX, startY), (endX, endY), COLORS[idx], 2) y = startY - 15 if startY - 15 > 15 else startY + 15 - cv2.putText(npImg, label, (startX, y), + cv2.putText(im0, label, (startX, y), cv2.FONT_HERSHEY_SIMPLEX, 0.5, COLORS[idx], 2) # Forced garbage cleanup every second @@ -178,10 +183,10 @@ def main(): # See visually what the Aimbot sees if visuals: - cv2.imshow('Live Feed', npImg) + cv2.imshow('Live Feed', im0) if (cv2.waitKey(1) & 0xFF) == ord('q'): exit() camera.stop() if __name__ == "__main__": - main() \ No newline at end of file + main() From 576e784ee764b358d8cf6433c2a3c51b14b082d1 Mon Sep 17 00:00:00 2001 From: Elijah Harmon Date: Wed, 31 Aug 2022 00:02:23 -0400 Subject: [PATCH 4/4] Update main.py --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index aed01c5..2f17afb 100644 --- a/main.py +++ b/main.py @@ -12,7 +12,7 @@ from utils.general import (LOGGER, check_file, check_img_size, check_imshow, che import dxcam def main(): - # Window title to go after and the height of the screenshots + # Window title of the game, don't need the entire name videoGameWindowTitle = "Counter" # Portion of screen to be captured (This forms a square/rectangle around the center of screen)