We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Same onnx, same check set, same code. Why does fp32_onnx change to trt-int8 every time? Is the mAP measured differently on the verification set?
I use samples/python/efficientdet/build_engine.py. and modify image_bathcer.py-resize_pad .
def resize_pad(image, pad_color=(114,114,114)): width, height = image.size width_scale = width / self.width height_scale = height / self.height scale = 1.0 / max(width_scale, height_scale) _w,_h=round(width * scale), round(height * scale) image = image.resize((_w,_h), resample=Image.BILINEAR) dw, dh = self.width - _w, self.height-_h dw /= 2 # divide padding into 2 sides dh /= 2 top, bottom = int(round(dh - 0.1)), int(round(dh + 0.1)) left, right = int(round(dw - 0.1)), int(round(dw + 0.1)) pad = Image.new("RGB", (self.width, self.height)) pad.paste(pad_color, [0, 0, self.width, self.height]) pad.paste(image,(left, top)) # pad.show() return pad, scale
shuffle use random.seed(47) trt.IInt8EntropyCalibrator2
python build_engine.py --onnx yolov8n-seg.onnx --engine yolov8n-seg-int8.engine --precision int8 --calib_input datasets\coco-seg\images\sample --calib_cache calibrationall8.cache
The text was updated successfully, but these errors were encountered:
Sorry I don't get your problem, do you mean every time you do calibration, you get slightly different calibrationall8.cache?
calibrationall8.cache
Sorry, something went wrong.
Yes. That's what you said
I think it's expected. @ttyio for more information.
closing since no activity for more than 3 weeks, thanks all
zerollzeng
No branches or pull requests
Same onnx, same check set, same code. Why does fp32_onnx change to trt-int8 every time? Is the mAP measured differently on the verification set?
I use samples/python/efficientdet/build_engine.py. and modify image_bathcer.py-resize_pad .
shuffle use random.seed(47) trt.IInt8EntropyCalibrator2
python build_engine.py --onnx yolov8n-seg.onnx --engine yolov8n-seg-int8.engine --precision int8 --calib_input datasets\coco-seg\images\sample --calib_cache calibrationall8.cache
The text was updated successfully, but these errors were encountered: