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

bug fix for torch.max operation #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

dodiku
Copy link

@dodiku dodiku commented May 2, 2020

RuntimeError: Expected object of scalar type Byte but got scalar type Bool for argument #2 'other' in call to _th_max

RuntimeError: Expected object of scalar type Byte but got scalar type Bool for argument sgrvinod#2 'other' in call to _th_max
@gonggqing
Copy link

Hey dodiku, I just run the detect.py with loaded checkpoint file and got a similar error(not totally the same), and the traceback is also from the model.py file , I tried your code but the error dosen't change, so here is the error:
Traceback (most recent call last): File "H:/SSD_object_detection/detect.py", line 103, in <module> detect(original_image, min_score=0.1, max_overlap=0.4, top_k=150).show() File "H:/SSD_object_detection/detect.py", line 46, in detect max_overlap=max_overlap, top_k=top_k) File "H:\SSD_object_detection\model.py", line 494, in detect_objects suppress = torch.max(suppress, overlap[box] > max_overlap) RuntimeError: Expected object of scalar type unsigned char but got scalar type bool for argument 'other'
Thanks if you can spare some time to look at this comment!

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

Successfully merging this pull request may close these issues.

None yet

2 participants