MCPcopy Create free account
hub / github.com/UVA-Computer-Vision-Lab/FrameINO / traj_instance_update

Function traj_instance_update

app.py:467–483  ·  view source on GitHub ↗
(traj_instance_idx, traj_lists)

Source from the content-addressed store, hash-verified

465
466
467def traj_instance_update(traj_instance_idx, traj_lists):
468
469 # Convert
470 traj_lists = ast.literal_eval(traj_lists)
471
472 # Update one index
473 if traj_instance_idx >= len(all_color_codes):
474 raise gr.Error("The trajectory instance number is over the limit!")
475
476 # Add one for the traj instance
477 traj_instance_idx = traj_instance_idx + 1
478
479 # Append a new empty list to the traj lists
480 traj_lists.append([[]])
481
482 # Reutn
483 return traj_instance_idx, traj_lists
484
485
486

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected