petercunha / Pine

:evergreen_tree: Aimbot powered by real-time object detection with neural networks, GPU accelerated with Nvidia. Optimized for use with CS:GO.
MIT License
441 stars 76 forks source link

get an error #60

Open kelopuu opened 1 year ago

kelopuu commented 1 year ago

Traceback (most recent call last): File "C:\Users\kelot\Downloads\Pine-master\Pine-master\pine.py", line 14, in pine.start(ENABLE_AIMBOT=True) File "C:\Users\kelot\Downloads\Pine-master\Pine-master\lib\pine.py", line 95, in start ln = [ln[i[0] - 1] for i in net.getUnconnectedOutLayers()] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\kelot\Downloads\Pine-master\Pine-master\lib\pine.py", line 95, in ln = [ln[i[0] - 1] for i in net.getUnconnectedOutLayers()] ~^^^ IndexError: invalid index to scalar variable.

agreed31579 commented 1 year ago

same

zyklone4096 commented 1 year ago

+1

sean05112142 commented 1 year ago

for me it worked to modify this line

ln = [ln[i[0] - 1] for i in net.getUnconnectedOutLayers()]

to this

ln = [ln[i - 1] for i in net.getUnconnectedOutLayers()]