Remove OpenVINO INT8 RTDETRDecoder ops (#8219)

This commit is contained in:
Glenn Jocher 2024-02-15 12:41:12 +01:00 committed by GitHub
parent 5e81651b4f
commit 2f22ff4ae6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -455,7 +455,7 @@ class Exporter:
LOGGER.warning(f"{prefix} WARNING ⚠️ >300 images recommended for INT8 calibration, found {n} images.")
quantization_dataset = nncf.Dataset(dataset, transform_fn)
ignored_scope = None
if isinstance(self.model.model[-1], (Detect, RTDETRDecoder)):
if isinstance(self.model.model[-1], Detect):
# Includes all Detect subclasses like Segment, Pose, OBB, WorldDetect
head_module_name = ".".join(list(self.model.named_modules())[-1][0].split(".")[:2])