Pine icon indicating copy to clipboard operation
Pine copied to clipboard

IndexError: invalid index to scalar variable.

Open Ativ3k opened this issue 3 years ago • 6 comments

After start i have error.

image

Ativ3k avatar Oct 23 '21 16:10 Ativ3k

pip install opencv-python==4.4.0.46

Sooshians-R avatar Oct 24 '21 19:10 Sooshians-R

pip install opencv-python==4.4.0.46

Still don't work.

Ativ3k avatar Oct 25 '21 00:10 Ativ3k

I think you are getting this error because of your opencv version. 1.find opencv version that you are using(type pip list in your terminal(cmd) then search for opencv-python (version)): Screenshot (26)

if your opencv version is 4.5.4.58 continue the steps : 2.uninstall opencv : pip uninstall opencv-python 3.install other opencv versions: pip install opencv-python==4.4.0.46 if you have particular version in mind(some opencv versions.txt): pip install opencv-python==(version)

if these steps didn't work out try this step👇(I'm not sure this step works out but it worth to try it): 1.Download requirements.txt 2.run : pip install -r requirements.txt

Sooshians-R avatar Oct 25 '21 08:10 Sooshians-R

I think you are getting this error because of your opencv version. 1.find opencv version that you are using(type pip list in your terminal(cmd) then search for opencv-python (version)): Screenshot (26)

if your opencv version is 4.5.4.58 continue the steps : 2.uninstall opencv : pip uninstall opencv-python 3.install other opencv versions: pip install opencv-python==4.4.0.46 if you have particular version in mind(some opencv versions.txt): pip install opencv-python==(version)

if these steps didn't work out try this step👇(I'm not sure this step works out but it worth to try it): 1.Download requirements.txt 2.run : pip install -r requirements.txt

image Still error:/ also requirements.txt doesn't help

Ativ3k avatar Oct 29 '21 01:10 Ativ3k

Change that line in the code to this (should be around line 95):

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

I got the same error and found the solution in another aimbot tutorial online.

evan-kolberg avatar Jun 22 '22 16:06 evan-kolberg

nowit says TypeError: only integer scalar arrays can be converted to a scalar index

Change that line in the code to this (should be around line 95):

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

I got the same error and found the solution in another aimbot tutorial online.

5ghzx avatar Jul 29 '22 16:07 5ghzx