-
Notifications
You must be signed in to change notification settings - Fork 649
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
生成trt文件可以前向推理,map值正常,但是pkl文件非常多0坐标框? #905
Comments
We recommend using English or English & Chinese for issues so that we could have broader discussion. |
I generated a TRT file using mmdeploy. There was no error in the generation process. A demo image was passed during the generation process, and the identification was correct. When i use the generated engine for inference, the mAP is normal, with a value of 0.562 (the mAP value of PTH is similar, indicating that there is no generation error). At the same time, the pkl file is generated. After loading pkl, there are four boxes with coordinates of 0, and the confidence is all the same. And i evaluated the pkl,mAP=0. I used tools/test.py with"--metrics bbox--out xx.pkl". How can i solve this problem? |
@Hou-MY Hi, pls. post the full script and outputs of |
` 2022-08-17 11:30:47,696 - mmdeploy - INFO - Environmental information
2022-08-17 11:30:47,781 - mmdeploy - INFO - TorchVision: 0.10.0+cu111 2022-08-17 11:30:47,781 - mmdeploy - INFO - Backend information 2022-08-17 11:30:48,082 - mmdeploy - INFO - Codebase information |
@Hou-MY 你好,请问你有测试生成int8的量化模型吗,需要提供训练数据用来做calibration吗? |
@Hou-MY Hi, could you post here how you run Followed your pipeline and tested OK with ssd + tensorrt
|
hi, this is my arguments. |
是的,有个参数可以设置 |
@Hou-MY hi, maybe because the dataset is sorted in mmdeploy and the pkl file evaluated with Line 110 in cad0092
|
我使用mmdeploy生成了一个TRT文件,生成过程没有报错,生成过程中传了一个demo图片,识别正确。使用生成的engine进行前向推理,maP值正常,值为0.562(使用pth前向推理map值差不多,说明没有生成错误)同时生成pkl文件,单独拿出pkl文件测maP值为0,load pkl 后都是四个坐标为0的框,置信度全部一样。为什么使用test.py可以测maP,但是pkl生成错误?
pkl中的结果矩阵如下:
[array([[0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222], [0. , 0. , 0. , 0. , 0.06027222]], dtype=float32), array([], shape=(0, 5), dtype=float32), array([], shape=(0, 5), dtype=float32), array([[312.32 , 739.2 , 360.32 , 777.6 , 0.9550781]], dtype=float32), array([], shape=(0, 5), dtype=float32), array([], shape=(0, 5), dtype=float32), array([], shape=(0, 5), dtype=float32), array([], shape=(0, 5), dtype=float32), array([], shape=(0, 5), dtype=float32), array([], shape=(0, 5), dtype=float32)]
The text was updated successfully, but these errors were encountered: