KittiWriter colorize_instance_segmentation throw an error

If run the following code, you will get an error and cannot obtain the image of the instance segmentation

After testing, it was caused by colorize_instance_segmentation = True

Omniverse Code 2023.1

writer = rep.WriterRegistry.get("KittiWriter")
writer.initialize(
            output_dir="D:/sdg/_outputpallet_test15",
            fully_visible_threshold=0.95,
            colorize_instance_segmentation = True,
            use_kitti_dir_names  = True,

        )

2023-10-21 09:16:16 [Error] [omni.replicator.core.scripts.backends.log] [tid 34560][backends][dispatcher.py] expected str, bytes or os.PathLike object, not ndarray

2023-10-21 09:16:17 [Error] [omni.replicator.core.scripts.backends.log] [tid 32556][backends][dispatcher.py] Error detected during Omni.Replicator.backend worker write

Hello @whs11998, thank you for catching this! The issue has been addressed in the latest release (omni.replicator.core > 1.10), available in the current release of Omniverse Isaac or in the next (2024) release of Omniverse Code.

1 Like