DOPEWriter

import omni.replicator.core as rep
from omni.replicator.isaac.scripts.writers import DOPEWriter

bucket=“”
endpoint=“”
class_name_to_index_map = {“gummy”: 1, “random”: 2}
writer_config = {“output_folder”:“_output_folder_dope”,“use_s3”: False,“bucket_name”: bucket,“endpoint_url”: endpoint}
config_data = {
“CLASS_NAME_TO_INDEX”: {
“gummy”: 1,
“random”: 2
},
“WIDTH”: 512,
“HEIGHT”: 512,
“CAMERA_ROTATION”: [-180, 0, 0]
}

with rep.new_layer():

# Add Default Light
distance_light = rep.create.light(rotation=(315,0,0), intensity=3000, light_type="distant")

camera = rep.create.camera(position=(0, 0, 100), look_at = (0,0,0))
render_product = rep.create.render_product(camera, (1024, 1024))

def move_shapes():
    #shapes = rep.get.prims(path_pattern='[^M_]Cube$|[^M_]Cone$|[^M_]Sphere$')
    shapes = rep.get.prims(semantics=[('class', 'gummy'), ('class', 'random')])

    with shapes:
        rep.modify.pose(
            position=rep.distribution.uniform((-7, -7, 0), (7, 7, 0)),
            rotation=rep.distribution.uniform((0,-180, 0), (0, 180, 0)),
        )
    return shapes.node

rep.randomizer.register(move_shapes)

with rep.trigger.on_frame(num_frames=100):
    rep.randomizer.move_shapes()

writer_helper =DOPEWriter(output_dir="_output_folder_dope",class_name_to_index_map= class_name_to_index_map)
writer_helper.register_pose_annotator(config_data=config_data)
writer =writer_helper.setup_writer(config_data=config_data, writer_config=writer_config)
writer.attach([render_product])

I am trying to use DOPEWriter in replicator.
It gives out the error:

2023-11-08 16:06:22 [105,527ms] [Warning] [omni.replicator.core.scripts.utils.utils] No annotator of name dope registered. Available annotators: [‘camera_params’, ‘rgb’, ‘normals’, ‘motion_vectors’, ‘cross_correspondence’, ‘occlusion’, ‘distance_to_image_plane’, ‘distance_to_camera’, ‘LdrColor’, ‘HdrColor’, ‘SmoothNormal’, ‘BumpNormal’, ‘AmbientOcclusion’, ‘Motion2d’, ‘DiffuseAlbedo’, ‘SpecularAlbedo’, ‘Roughness’, ‘DirectDiffuse’, ‘DirectSpecular’, ‘Reflections’, ‘IndirectDiffuse’, ‘DepthLinearized’, ‘EmissionAndForegroundMask’, ‘PtDirectIllumation’, ‘PtGlobalIllumination’, ‘PtReflections’, ‘PtRefractions’, ‘PtSelfIllumination’, ‘PtBackground’, ‘PtWorldNormal’, ‘PtWorldPos’, ‘PtZDepth’, ‘PtVolumes’, ‘PtDiffuseFilter’, ‘PtReflectionFilter’, ‘PtRefractionFilter’, ‘PtMultiMatte0’, ‘PtMultiMatte1’, ‘PtMultiMatte2’, ‘PtMultiMatte3’, ‘PtMultiMatte4’, ‘PtMultiMatte5’, ‘PtMultiMatte6’, ‘PtMultiMatte7’, ‘primPaths’, ‘SemanticOcclusionPostRender’, ‘bounding_box_2d_tight_fast’, ‘bounding_box_2d_tight’, ‘bounding_box_2d_loose_fast’, ‘bounding_box_2d_loose’, ‘bounding_box_3d_360’, ‘bounding_box_3d_fast’, ‘bounding_box_3d’, ‘semantic_segmentation’, ‘instance_segmentation_fast’, ‘instance_segmentation’, ‘CameraParams’, ‘skeleton_data’, ‘pointcloud’, ‘IsaacNoop’, ‘IsaacReadCameraInfo’, ‘IsaacReadTimes’, ‘IsaacReadSimulationTime’, ‘LdrColorSDIsaacConvertRGBAToRGB’, ‘DistanceToImagePlaneSDIsaacConvertDepthToPointCloud’, ‘RtxSensorCpuIsaacReadRTXLidarData’, ‘RtxSensorCpuIsaacComputeRTXLidarPointCloud’, ‘RtxSensorCpuIsaacCreateRTXLidarScanBuffer’, ‘RtxSensorCpuIsaacComputeRTXLidarFlatScan’, ‘RtxSensorCpuIsaacComputeRTXRadarPointCloud’]
2023-11-08 16:06:36 [119,486ms] [Warning] [carb] Client omni.anim.graph.core.plugin has acquired [carb::tasking::ITasking v2.4] 100 times. Consider accessing this interface with carb::getCachedInterface() (Performance warning)

I can’t understand why. Please help me out

Hi there the issue was that the __init__ function was called before registering the dope annotator, here is a working version of the script where:
writer_helper = DOPEWriter(..)writer_helper = DOPEWriter

import omni.replicator.core as rep
from omni.replicator.isaac.scripts.writers import DOPEWriter


bucket=""
endpoint=""
class_name_to_index_map = {"gummy": 1, "random": 2}
writer_config = {"output_folder":"_output_folder_dope","use_s3": False,"bucket_name": bucket,"endpoint_url": endpoint}

config_data = {
    "CLASS_NAME_TO_INDEX": {
        "gummy": 1,
        "random": 2
    },
    "WIDTH": 512,
    "HEIGHT": 512,
    "CAMERA_ROTATION": [-180, 0, 0]
}


render_product = rep.create.render_product("/OmniverseKit_Persp", (512, 512))
writer_helper = DOPEWriter
writer_helper.register_pose_annotator(config_data=config_data)
writer = writer_helper.setup_writer(config_data=config_data, writer_config=writer_config)
writer.attach([render_product])