AssertionError: detection_classes is not in graph

Try blacklisting the output node, maybe it is being removed in one of the remove/convert_to_constant operations.