Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bug fix for torch.max operation #49

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

Open
dodiku wants to merge 1 commit into sgrvinod:master
base: master
Choose a base branch
Loading
from dodiku:patch-1
Open

Conversation

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

dee-walia20, braindotai, gonggqing, and leicao-me reacted with thumbs up emoji
RuntimeError: Expected object of scalar type Byte but got scalar type Bool for argument sgrvinod#2 'other' in call to _th_max
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
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /