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

你好,请问一下,用int8精度的模式怎样使用? #8

Closed
121649982 opened this issue Apr 1, 2020 · 10 comments
Closed

你好,请问一下,用int8精度的模式怎样使用? #8

121649982 opened this issue Apr 1, 2020 · 10 comments

Comments

@121649982
Copy link

需要自己加上些图像吗?

@enazoe
Copy link
Owner

enazoe commented Apr 1, 2020

@121649982
config.inference_precison = INT8; config.calibration_image_list_file_txt = "../configs/calibration_images.txt";
int8校准的时候需要一些图像,用calibration_image_list_file_txt指定图片的路径

@121649982
Copy link
Author

@121649982
config.inference_precison = INT8; config.calibration_image_list_file_txt = "../configs/calibration_images.txt";
int8校准的时候需要一些图像,用calibration_image_list_file_txt指定图片的路径

请问一下,如果用自己训练的模型,这些图像可以是用于训练的吗?感谢

@enazoe
Copy link
Owner

enazoe commented Apr 1, 2020

@121649982 就是需要你训练darknet模型时候的图片作为trt校准的图片,不需要全部,一个子集就行,几百张

@121649982
Copy link
Author

@enazoe 好的,谢谢了

@enazoe
Copy link
Owner

enazoe commented Apr 1, 2020

@121649982 注意这个子集要是训练集的均匀采样,如果觉得还不错点个star。。。。

@enazoe enazoe closed this as completed Apr 1, 2020
@121649982
Copy link
Author

好的,感谢,你的代码真的很赞,我在windows上跑起来了

@enazoe enazoe pinned this issue Apr 26, 2021
@Stars-Chan
Copy link

在Linux上注意把calibration_images.txt文件里面的”\“换成”/“

@wangxudong-cq
Copy link

@121649982 config.inference_precison = INT8; config.calibration_image_list_file_txt = "../configs/calibration_images.txt"; int8校准的时候需要一些图像,用calibration_image_list_file_txt指定图片的路径

这个数据集是自动下载的吗?

@enazoe
Copy link
Owner

enazoe commented Apr 15, 2022

@121649982 config.inference_precison = INT8; config.calibration_image_list_file_txt = "../configs/calibration_images.txt"; int8校准的时候需要一些图像,用calibration_image_list_file_txt指定图片的路径

这个数据集是自动下载的吗?
#8 (comment)
https://github.com/enazoe/yolo-tensorrt/releases/tag/calibration_images.txt

@wangxudong-cq
Copy link

@enazoe thank you!
I have copied the images from the Coco training dataset。

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

No branches or pull requests

4 participants