Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: invalid index to scalar variable. #48

Open
Ativ3k opened this issue Oct 23, 2021 · 6 comments
Open

IndexError: invalid index to scalar variable. #48

Ativ3k opened this issue Oct 23, 2021 · 6 comments

Comments

@Ativ3k
Copy link

Ativ3k commented Oct 23, 2021

After start i have error.

image

@Sooshians-R
Copy link

pip install opencv-python==4.4.0.46

@Ativ3k
Copy link
Author

Ativ3k commented Oct 25, 2021

pip install opencv-python==4.4.0.46

Still don't work.

@Sooshians-R
Copy link

Sooshians-R commented Oct 25, 2021

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

@Ativ3k
Copy link
Author

Ativ3k commented Oct 29, 2021

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

@evan-kolberg
Copy link

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
Copy link

5ghzx commented Jul 29, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants