cosense3d.agents.core package
Submodules
cosense3d.agents.core.base_runner module
cosense3d.agents.core.cav_manager module
cosense3d.agents.core.data_manager module
- class cosense3d.agents.core.data_manager.DataManager(cav_manager, lidar_range, voxel_size=None, aug=None, pre_process=[], loc_err=None)[source]
Bases:
object
- get_vis_data_detection(batch_idx=0, keys='detection')[source]
Parameters
batch_idx: batch index key: the default key for detection is ‘detection’, customized key can also be used, depending on which key is used for saving detection result in the CAV data pool.
Returns
detection: result with boxes and labels converted to the visualizing format.
- get_vis_data_input(batch_idx=0, keys=None)[source]
Parameters
batch_idx key: additional gt keys that are not standarlized in consense3d data API
Returns
cosense3d.agents.core.forward_runner module
- class cosense3d.agents.core.forward_runner.ForwardRunner(shared_modules, data_manager, dist=False, chunk_size=24, **kwargs)[source]
Bases:
Module
- forward(tasks, with_grad=True, **kwargs)[source]
Defines the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Module
instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
- training: bool
cosense3d.agents.core.gui module
cosense3d.agents.core.hooks module
- class cosense3d.agents.core.hooks.CPMStatisticHook(device='cuda:0', **kwargs)[source]
Bases:
BaseHook
- class cosense3d.agents.core.hooks.CheckPointsHook(max_ckpt=3, epoch_every=None, iter_every=None, **kwargs)[source]
Bases:
BaseHook
- class cosense3d.agents.core.hooks.DetectionNMSHook(nms_thr, pre_max_size, det_key='detection', **kwargs)[source]
Bases:
BaseHook
- class cosense3d.agents.core.hooks.EvalBEVSemsegHook(test_range, test_res=0.4, save_result=False, eval_static=True, bev_semseg_key='bev_semseg', gt_bev_key='bevmap', gt_boxes_key='global_bboxes_3d', **kwargs)[source]
Bases:
BaseHook
- class cosense3d.agents.core.hooks.EvalDetectionBEVHook(pc_range, iou_thr=[0.5, 0.7], save_result=False, det_key='detection', gt_key='global_bboxes_3d', **kwargs)[source]
Bases:
BaseHook
- class cosense3d.agents.core.hooks.EvalDetectionHook(pc_range, iou_thr=[0.5, 0.7], metrics=['CoSense3D'], save_result=False, det_key='detection', gt_key='global_bboxes_3d', **kwargs)[source]
Bases:
BaseHook
cosense3d.agents.core.task_manager module
cosense3d.agents.core.test_runner module
cosense3d.agents.core.train_runner module
- class cosense3d.agents.core.train_runner.TrainRunner(max_epoch, optimizer, lr_scheduler, gpus=0, resume_from=None, load_from=None, run_name='default', log_dir='work_dir', use_wandb=False, debug=False, **kwargs)[source]
Bases:
BaseRunner
- run_itr(**kwargs)