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

Fp16 models return no detections #6766

Closed
1 task done
fnando1995 opened this issue Feb 24, 2022 · 4 comments
Closed
1 task done

Fp16 models return no detections #6766

fnando1995 opened this issue Feb 24, 2022 · 4 comments
Labels
question Further information is requested

Comments

@fnando1995
Copy link

Search before asking

Question

Hello, I used the validate and detect files for different models, changing fp32 and fp16 for tensorrt framework. I notice that fp16 models return NO detections (0 detects). Does anyone can point out what could this be? I make many imports ,changing fp, batchsize, model version, image size; but all fp16 models do not return detections, only fp32.

Additional

No response

@fnando1995 fnando1995 added the question Further information is requested label Feb 24, 2022
@glenn-jocher
Copy link
Member

@fnando1995 this is a CUDA/conda/windows bug that affects some install configurations. Most of the time this is caused by CUDA 11 incompatibilities and will be resolved by downgrading to CUDA 10, i.e. 10.2.

@fnando1995
Copy link
Author

fnando1995 commented Feb 24, 2022

Hello @glenn-jocher, I tested in this 2 environments

Environment 1:
ubuntu 21.04
cuda 11.4
python3-pip

Environment 2:
Jetson nano jetpack 4.6
cuda 10.2
python3-pip

Any thoughts?

@DavidBaldsiefen
Copy link
Contributor

Did you run the detect.py and val.py with the --half flag? export.py creates engines which need FP16 inputs in order to work.

@fnando1995
Copy link
Author

@DavidBaldsiefen That was the problem!, but I was doing the change directly but, the argsparse default for half was changing it. Thanks.

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

No branches or pull requests

3 participants