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

[Question] Got "attempt to get argmax of an empty sequence" when solving on discord #58

Closed
henzycuong1 opened this issue Jun 18, 2022 · 2 comments
Labels
fixed BUG 已修复或问题已解决

Comments

@henzycuong1
Copy link

henzycuong1 commented Jun 18, 2022

Traceback

Traceback (most recent call last):
  File "E:\hcaptcha\services\hcaptcha_challenger\core.py", line 507, in anti_hcaptcha        
    self.challenge(ctx, model=model)
  File "E:\hcaptcha\services\hcaptcha_challenger\core.py", line 327, in challenge
    result = model.solution(img_stream=data, label=self.label_alias[self.label])
  File "E:\hcaptcha\services\hcaptcha_challenger\solutions\yolo.py", line 190, in solution   
    labels = self.detect_common_objects(img, confidence, nms_thresh)
  File "E:\hcaptcha\services\hcaptcha_challenger\solutions\yolo.py", line 157, in detect_common_objects
    class_id = np.argmax(scores)
  File "<__array_function__ internals>", line 180, in argmax
  File "C:\Users\Four\AppData\Local\Programs\Python\Python310\lib\site-packages\numpy\core\fromnumeric.py", line 1216, in argmax
    return _wrapfunc(a, 'argmax', axis=axis, out=out, **kwds)
  File "C:\Users\Four\AppData\Local\Programs\Python\Python310\lib\site-packages\numpy\core\fromnumeric.py", line 57, in _wrapfunc
    return bound(*args, **kwds)
ValueError: attempt to get argmax of an empty sequence

Can you tell me what is that mean ?

@QIN2DIM QIN2DIM assigned QIN2DIM and unassigned QIN2DIM Jun 18, 2022
@QIN2DIM
Copy link
Owner

QIN2DIM commented Jun 21, 2022

Update the code, this issue was fixed a long time ago.

@QIN2DIM QIN2DIM closed this as completed Jun 21, 2022
@QIN2DIM QIN2DIM added the fixed BUG 已修复或问题已解决 label Jun 21, 2022
@QIN2DIM QIN2DIM changed the title Got "attempt to get argmax of an empty sequence" when solving on discord [Question] Got "attempt to get argmax of an empty sequence" when solving on discord Jun 21, 2022
@henzycuong1
Copy link
Author

henzycuong1 commented Jun 28, 2022

Update the code, this issue was fixed a long time ago.

sorry, I got it. I was wrong opencv version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed BUG 已修复或问题已解决
Projects
None yet
Development

No branches or pull requests

2 participants