MCPcopy Index your code
hub / github.com/diffgram/diffgram / update_instance

Method update_instance

shared/annotation.py:1301–1543  ·  view source on GitHub ↗

Assumes a "system" level context if we moved the 4 box attributes into a single thing this would feel a lot smoother This doesn't include points yet since in other setting that gets added later... The reason we need a separate update_instance method like this,

(self,
                        type: str,
                        x_min: int,
                        y_min: int,
                        x_max: int,
                        y_max: int,
                        label_file_id: int,
                        id = None,
                        front_face: dict = None,
                        rear_face: dict = None,
                        soft_delete: bool = False,
                        number: int = None,
                        sequence_id: int = None,
                        rating = None,
                        attribute_groups = None,
                        interpolated = False,
                        machine_made = False,
                        start_char = None,
                        end_char = None,
                        start_sentence = None,
                        end_sentence = None,
                        start_token = None,
                        end_token = None,
                        start_time = None,
                        end_time = None,
                        sentence = None,
                        creation_ref_id = None,
                        model_id = None,
                        model_run_id = None,
                        previous_id = None,
                        version = None,
                        root_id = None,
                        center_x = None,
                        center_y = None,
                        rotation_euler_angles = None,
                        position_3d = None,
                        center_3d = None,
                        dimensions_3d = None,
                        angle = None,
                        width = None,
                        height = None,
                        change_source = None,
                        parent_file_id = None,
                        client_created_time = None,
                        cp = None,
                        p1 = None,
                        p2 = None,
                        nodes = [],
                        edges = [],
                        hash_instances = True,
                        overwrite_existing_instances = True,
                        validate_label_file = True,
                        pause_object = None,
                        text_tokenizer = 'wink',
                        from_instance_id = None,
                        to_instance_id = None,
                        from_creation_ref = None,
                        to_creation_ref = None,
                        lonlat = None,
                        coords = None,
                        radius = None,
                        bounds = None,
                        bounds_lonlat = None,
                        score = None
                        )

Source from the content-addressed store, hash-verified

1299 return None
1300
1301 def update_instance(self,
1302 type: str,
1303 x_min: int,
1304 y_min: int,
1305 x_max: int,
1306 y_max: int,
1307 label_file_id: int,
1308 id = None,
1309 front_face: dict = None,
1310 rear_face: dict = None,
1311 soft_delete: bool = False,
1312 number: int = None,
1313 sequence_id: int = None,
1314 rating = None,
1315 attribute_groups = None,
1316 interpolated = False,
1317 machine_made = False,
1318 start_char = None,
1319 end_char = None,
1320 start_sentence = None,
1321 end_sentence = None,
1322 start_token = None,
1323 end_token = None,
1324 start_time = None,
1325 end_time = None,
1326 sentence = None,
1327 creation_ref_id = None,
1328 model_id = None,
1329 model_run_id = None,
1330 previous_id = None,
1331 version = None,
1332 root_id = None,
1333 center_x = None,
1334 center_y = None,
1335 rotation_euler_angles = None,
1336 position_3d = None,
1337 center_3d = None,
1338 dimensions_3d = None,
1339 angle = None,
1340 width = None,
1341 height = None,
1342 change_source = None,
1343 parent_file_id = None,
1344 client_created_time = None,
1345 cp = None,
1346 p1 = None,
1347 p2 = None,
1348 nodes = [],
1349 edges = [],
1350 hash_instances = True,
1351 overwrite_existing_instances = True,
1352 validate_label_file = True,
1353 pause_object = None,
1354 text_tokenizer = 'wink',
1355 from_instance_id = None,
1356 to_instance_id = None,
1357 from_creation_ref = None,
1358 to_creation_ref = None,

Tested by

no test coverage detected