CSGO-Aimbot-CNN icon indicating copy to clipboard operation
CSGO-Aimbot-CNN copied to clipboard

GPU version can not run

Open ghLcd9dG opened this issue 3 years ago • 10 comments

I got this problem when i am trying to run the GPU verison, may i know why this happen. Thank you from the bottom of my heart.

My environment: Window11 CUDA10 CuDNN7 Python3.77 tensorflow1.15

2021-12-18 16:19:22.246911: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1325] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 2924 MB memory) -> physical GPU (device: 0, name: NVIDIA GeForce GTX 1650, pci bus id: 0000:01:00.0, compute capability: 7.5) WARNING:tensorflow:From C:\Users\xuyic\anaconda3\envs\CSGO-GPU\lib\site-packages\tensorflow_core\python\ops\resource_variable_ops.py:1630: calling BaseResourceVariable.init (from tensorflow.python.ops.resource_variable_ops) with constraint is deprecated and will be removed in a future version. Instructions for updating: If using Keras pass *_constraint arguments to layers. W1218 16:19:22.276762 37224 deprecation.py:506] From C:\Users\xuyic\anaconda3\envs\CSGO-GPU\lib\site-packages\tensorflow_core\python\ops\resource_variable_ops.py:1630: calling BaseResourceVariable.init (from tensorflow.python.ops.resource_variable_ops) with constraint is deprecated and will be removed in a future version. Instructions for updating: If using Keras pass *_constraint arguments to layers. Windows fatal exception: access violation

Current thread 0x00009168 (most recent call first): File "C:\Users\xuyic\anaconda3\envs\CSGO-GPU\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 885 in init File "C:\Users\xuyic\anaconda3\envs\CSGO-GPU\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 873 in NewCheckpointReader File "C:\Users\xuyic\anaconda3\envs\CSGO-GPU\lib\site-packages\tensorflow_core\python\keras\engine\network.py", line 1339 in load_weights File "C:\Users\xuyic\anaconda3\envs\CSGO-GPU\lib\site-packages\tensorflow_core\python\keras\engine\training.py", line 182 in load_weights File ".\aimbotTensorflow.py", line 137 in main File "C:\Users\xuyic\anaconda3\envs\CSGO-GPU\lib\site-packages\absl\app.py", line 258 in _run_main File "C:\Users\xuyic\anaconda3\envs\CSGO-GPU\lib\site-packages\absl\app.py", line 312 in run File ".\aimbotTensorflow.py", line 171 in

ghLcd9dG avatar Dec 18 '21 08:12 ghLcd9dG

By the way, after i donwloand the weight file from the google drive, my path looks in this way image But in the code you are trying to access: image

It seems i don't have this checkpoints folder even after i downloaded the weights file.

ghLcd9dG avatar Dec 18 '21 08:12 ghLcd9dG

By the way, after i donwloand the weight file from the google drive, my path looks in this way image But in the code you are trying to access: image

It seems i don't have this checkpoints folder even after i downloaded the weights file.

The checkpoints is a rar file you need to extract it.

ofeksadlo avatar Dec 18 '21 16:12 ofeksadlo

oh, i realized where is the problem, although i extract it but in the wrong path. I noticed nothing will happen when i only run aimbotTensorflow.py and it seems only a calculating file. Therefore, i try to run it thought main.py, another problem happen cause it can not detect my GPU

2021-12-19 02:03:11.998119: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1639] Found device 0 with properties:

However, as you can see from above, the aimbotTensorflow can detect my GPU 2021-12-18 16:19:22.246911: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1325] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 2924 MB memory) -> physical GPU (device: 0, name: NVIDIA GeForce GTX 1650, pci bus id: 0000:01:00.0, compute capability: 7.5)

It's a bit confusing. And i don't why it can not detect? May be i shall change the devices('DML') to device()? I am not sure

ghLcd9dG avatar Dec 18 '21 18:12 ghLcd9dG

image From this image I can see you didn't extract the weights at all (you don't have winrar installed). It's a winrar file that contains a folder. Download winrar and extract the folder to asessts then run aimbotTensorflow.py

ofeksadlo avatar Dec 18 '21 18:12 ofeksadlo

I still got the same things when i extracting with winrar image image Does you mean i can extract one more time.

ghLcd9dG avatar Dec 18 '21 18:12 ghLcd9dG

image

ghLcd9dG avatar Dec 18 '21 18:12 ghLcd9dG

I still got the same things when i extracting with winrar Does you mean i can extract one more time.

No you should be good to go.

I can't know for sure what's the problem but try to reinstall the requirements without anaconda. And make sure you don't have tensorflow installed before you install the requirements.

ofeksadlo avatar Dec 18 '21 18:12 ofeksadlo

may i know what it shall looks like

ghLcd9dG avatar Dec 18 '21 18:12 ghLcd9dG

i follow the step and run aimbotTensorflow.py but nothing else happen. image you know, bro, i can get a box in the center my screen and it will target automatically. But i don't get this when i run the gpu version

ghLcd9dG avatar Dec 19 '21 16:12 ghLcd9dG

i follow the step and run aimbotTensorflow.py but nothing else happen. image you know, bro, i can get a box in the center my screen and it will target automatically. But i don't get this when i run the gpu version

I doubt it's related but I never tested it out on windows 11. And if it's not an exception I can't really help.

The GPU version is preety bad anyway (it's not working well with terrorists models). So you are not missing anything special. If you have NVIDIA I would suggest to try this: https://github.com/petercunha/Pine

When I developed this project I wanted to make it work for AMD. Because I have a decent AMD GPU and wanted to make the best of it.

But the truth is NVIDIA have better support for those types of projects.

ofeksadlo avatar Dec 19 '21 21:12 ofeksadlo