First, Open file “object_detection/meta_architectures/ssd_meta_arch.py”, and add this line at the top of the file:from object_detection.core import lossesThen, add and replace a few lines of code at “loss” function:if self.groundtruth_has_field(fields.