MCPcopy Create free account

hub / github.com/ZhangYushan3/GMSF / functions

Functions170 in github.com/ZhangYushan3/GMSF

↓ 6 callersFunction_extend_matrix
(mat)
dataloader/waymo_utils/waymo_utils.py:115
↓ 6 callersMethodclose
(self)
utils/logger.py:74
↓ 5 callersFunctiondisp2pc
(disp, baseline, f, cx, cy, flow=None)
utils/cam_utils.py:113
↓ 5 callersFunctionget_kitti_info_path
(idx, prefix, info_type, file_tail,
dataloader/waymo_utils/waymo_utils.py:9
↓ 4 callersMethod__init__
(self, d_model=128, no_ffn=False, ffn_dim_expansion=4,
models/transformer.py:18
↓ 4 callersFunctionflip_point_cloud
(pc, image_h, image_w, f, cx, cy, flip_mode)
dataloader/augmentation.py:6
↓ 4 callersFunctionget_graph_feature
(x, k=32, idx=None)
models/backbone.py:20
↓ 3 callersFunctioncamera_to_lidar
Convert points in camera coordinate to lidar coordinate. Args: points (np.ndarray, shape=[N, 3]): Points in camera coordinate. r_
dataloader/waymo_utils/box_np_ops.py:26
↓ 3 callersMethodcompute_crop
(self, pc, pointer)
dataloader/waymo_utils/crop_ground.py:183
↓ 3 callersFunctionindex_points
Input: points: input points data, [B, N, C] idx: sample index data, [B, S, [K]] Return: new_points:, indexed points d
models/transformer.py:180
↓ 3 callersFunctionload_fpm
(filename)
utils/cam_utils.py:25
↓ 2 callersMethod__init__
(self, output_channels=128)
models/backbone.py:123
↓ 2 callersMethod__len__
(self)
dataloader/kitti.py:38
↓ 2 callersMethodauto_crop_one_frame
Waymo segmentation label: TYPE_UNDEFINED = 0; TYPE_CAR = 1; TYPE_TRUCK = 2; TYPE_BUS = 3;
dataloader/waymo_utils/crop_ground.py:70
↓ 2 callersFunctioncenter_to_corner_box2d
Convert kitti locations, dimensions and angles to corners. format: center(xy), dims(xy), angles(clockwise when positive) Args: center
dataloader/waymo_utils/box_np_ops.py:117
↓ 2 callersFunctioncenter_to_corner_box3d
Convert kitti locations, dimensions and angles to corners. Args: centers (np.ndarray): Locations in kitti label file with shape (N, 3).
dataloader/waymo_utils/box_np_ops.py:223
↓ 2 callersFunctioncheck_path
(path)
utils/misc.py:14
↓ 2 callersMethodconvert_range_image_to_point_cloud
Convert range images to point cloud. Args: frame (:obj:`Frame`): Open dataset frame. range_images (dict): Mapping fro
waymo_tools/waymo_converter.py:414
↓ 2 callersFunctioncorners_nd
Generate relative box corners based on length per dim and origin point. Args: dims (np.ndarray, shape=[N, ndim]): Array of length per dim
dataloader/waymo_utils/box_np_ops.py:66
↓ 2 callersFunctiondisp_2_depth
(disparity, valid_disp, FOCAL_LENGTH_PIXEL)
utils/kitti_utils.py:58
↓ 2 callersMethodeval_crop
Args: crop_mask: (n,) (bool) True means not crop. label: (n,) (bool) mode: 'PR' or 'IOU'
dataloader/waymo_utils/crop_ground.py:190
↓ 2 callersFunctionflow_tensor_to_image
Used for tensorboard visualization
utils/logger.py:3
↓ 2 callersMethodgen_crop_params
(self, front_left)
dataloader/waymo_utils/crop_ground.py:50
↓ 2 callersFunctionjoint_augmentation_pc
(pc1, pc2, flow_3d, f, cx, cy, image_h, image_w)
dataloader/augmentation.py:48
↓ 2 callersFunctionload_calib
(filepath)
utils/cam_utils.py:96
↓ 2 callersFunctionload_disp
(fpath)
utils/kitti_utils.py:39
↓ 2 callersFunctionload_uint16PNG
(fpath)
utils/kitti_utils.py:29
↓ 2 callersFunctionpixel2xyz
(depth, P_rect, px=None, py=None)
utils/kitti_utils.py:5
↓ 2 callersFunctionpoints_in_convex_polygon_3d_jit
Check points is in 3d convex polygons. Args: points (np.ndarray): Input points with shape of (num_points, 3). polygon_surfaces (n
dataloader/waymo_utils/box_np_ops.py:773
↓ 2 callersFunctionrandom_flip_pc
(image_h, image_w, pc1, pc2, flow_3d, f, cx, cy, flip_mode)
dataloader/augmentation.py:31
↓ 2 callersMethodreset_eval_thresh
(self)
dataloader/waymo_utils/crop_ground.py:253
↓ 2 callersMethodsave_crop_pointer_dict
(self, save_path, crop_pointer_dict=None)
dataloader/waymo_utils/crop_ground.py:227
↓ 1 callersFunction_points_in_convex_polygon_3d_jit
Args: points (np.ndarray): Input points with shape of (num_points, 3). polygon_surfaces (np.ndarray): Polygon surfaces with shape
dataloader/waymo_utils/box_np_ops.py:736
↓ 1 callersFunctionadd_difficulty_to_annos
(info)
dataloader/waymo_utils/waymo_utils.py:286
↓ 1 callersFunctionbuild_train_dataset
(args)
dataloader/datasets.py:5
↓ 1 callersMethodcart_to_homo
Convert transformation matrix in Cartesian coordinates to homogeneous format. Args: mat (np.ndarray): Transformation matr
waymo_tools/waymo_converter.py:534
↓ 1 callersFunctioncenter_to_minmax_2d
Center to minmax. Args: centers (np.ndarray): Center points. dims (np.ndarray): Dimensions. origin (list or array or floa
dataloader/waymo_utils/box_np_ops.py:547
↓ 1 callersMethodconvert_one
Convert action for single file. Args: file_idx (int): Index of the file to be converted.
waymo_tools/waymo_converter.py:98
↓ 1 callersFunctioncorner_to_surfaces_3d
convert 3d box corners from corner function above to surfaces that normal vectors all direct to internal. Args: corners (np.ndarray):
dataloader/waymo_utils/box_np_ops.py:421
↓ 1 callersFunctioncorner_to_surfaces_3d_jit
Convert 3d box corners from corner function above to surfaces that normal vectors all direct to internal. Args: corners (np.ndarray):
dataloader/waymo_utils/box_np_ops.py:308
↓ 1 callersMethodcreat_data
Create info file of waymo dataset. Given the data created by mmdetection3d, generate scene flow data. Args: data_path (s
dataloader/waymo_sf_dataset.py:23
↓ 1 callersMethodcreate_folder
Create folder for data preprocessing.
waymo_tools/waymo_converter.py:393
↓ 1 callersFunctiondepth_to_points
Convert depth map to points. Args: depth (np.array, shape=[H, W]): Depth map which the row of [0~`trunc_pixel`] are truncated
dataloader/waymo_utils/box_np_ops.py:144
↓ 1 callersFunctionflip_scene_flow
(pc1, flow_3d, image_h, image_w, f, cx, cy, flip_mode)
dataloader/augmentation.py:25
↓ 1 callersMethodgen_crop_pointer_scene
(self, frame_num)
dataloader/waymo_utils/crop_ground.py:211
↓ 1 callersMethodgen_order
Due to the similarity of adjacent frames, it is preferred to search the neighborhood.
dataloader/waymo_utils/crop_ground.py:174
↓ 1 callersMethodgenerate_crop_params
Generate crop parameters for remove ground.
dataloader/waymo_sf_dataset.py:92
↓ 1 callersMethodgenerate_scene_flow
Create scene flow dataset. Args:
dataloader/waymo_sf_dataset.py:168
↓ 1 callersFunctionget_args_parser
()
main_gmsf.py:17
↓ 1 callersFunctionget_calib_path
(idx, prefix, relative_path=True, exist_check=True)
dataloader/waymo_utils/waymo_utils.py:53
↓ 1 callersMethodget_frame_idx
(self, data_path, scene_id_list, split)
dataloader/waymo_sf_dataset.py:336
↓ 1 callersFunctionget_frustum
Get frustum corners in camera coordinates. Args: bbox_image (list[int]): box in image coordinates. C (np.ndarray): Intrinsics.
dataloader/waymo_utils/box_np_ops.py:678
↓ 1 callersFunctionget_image_path
(idx, prefix, relative_path=True, exist_check=True,
dataloader/waymo_utils/waymo_utils.py:27
↓ 1 callersFunctionget_label_anno
(label_path)
dataloader/waymo_utils/waymo_utils.py:69
↓ 1 callersFunctionget_label_path
(idx, prefix, relative_path=True, exist_check=True,
dataloader/waymo_utils/waymo_utils.py:36
↓ 1 callersFunctionget_pose_path
(idx, prefix, relative_path=True, exist_check=True)
dataloader/waymo_utils/waymo_utils.py:61
↓ 1 callersFunctionget_velodyne_path
(idx, prefix, relative_path=True, exist_chec
dataloader/waymo_utils/waymo_utils.py:45
↓ 1 callersFunctionget_waymo_frame_info
Get info of all frames: { [optional]points: [N, 3+] point cloud [optional, for kitti]image: { frame_idx: ...
dataloader/waymo_utils/waymo_utils.py:120
↓ 1 callersFunctionglobal_correlation_softmax_3d
(feature0, feature1, xyzs1, xyzs2, )
models/matching.py:5
↓ 1 callersFunctioninit_logging
(filename=None, debug=False)
utils/cam_utils.py:11
↓ 1 callersFunctionkitti_result_line
(result_dict, precision=4)
dataloader/waymo_utils/waymo_utils.py:331
↓ 1 callersFunctionknn
(x, k)
models/backbone.py:11
↓ 1 callersFunctionlimit_period
Limit the value into a period for periodic function. Args: val (np.ndarray): The value to be converted. offset (float, optional):
dataloader/waymo_utils/box_np_ops.py:481
↓ 1 callersMethodload_crop_pointer_dict
(self, load_path)
dataloader/waymo_utils/crop_ground.py:235
↓ 1 callersFunctionload_flow
(filepath)
utils/cam_utils.py:55
↓ 1 callersFunctionload_flow_png
(filepath, scale=64.0)
utils/cam_utils.py:65
↓ 1 callersFunctionload_op_flow
(fpath)
utils/kitti_utils.py:50
↓ 1 callersMethodlr_summary
(self)
utils/logger.py:34
↓ 1 callersFunctionmain
(args)
main_gmsf.py:63
↓ 1 callersFunctionmain
()
utils/preprocess_flyingthings3d_subset.py:168
↓ 1 callersMethodmake_dataset
(self)
dataloader/kitti.py:76
↓ 1 callersMethodpc_loader
Args: path: Returns: pc1: ndarray (N, 3) np.float32 pc2: ndarray (N, 3) np.float32
dataloader/kitti.py:100
↓ 1 callersFunctionpoints_cam2img
Project points in camera coordinates to image coordinates. Args: points_3d (np.ndarray): Points in shape (N, 3) proj_mat (np.ndar
dataloader/waymo_utils/box_np_ops.py:363
↓ 1 callersMethodprint_training_status
(self, mode='train')
utils/logger.py:24
↓ 1 callersFunctionprojection_matrix_to_CRT_kitti
Split projection matrix of kitti. P = C @ [R|T] C is upper triangular matrix, so we need to inverse CR and use QR stable for all kitti ca
dataloader/waymo_utils/box_np_ops.py:626
↓ 1 callersMethodpush
(self, metrics, mode='train')
utils/logger.py:53
↓ 1 callersFunctionreadFlow
Read .flo file in Middlebury format
utils/frame_utils.py:16
↓ 1 callersFunctionreadPFM
(file)
utils/frame_utils.py:38
↓ 1 callersFunctionrotation_2d
Rotation 2d points based on origin point clockwise when angle positive. Args: points (np.ndarray): Points to be rotated with shape \
dataloader/waymo_utils/box_np_ops.py:100
↓ 1 callersFunctionrotation_3d_in_axis
Rotate points in specific axis. Args: points (np.ndarray, shape=[N, point_size, 3]]): angles (np.ndarray, shape=[N]]): ax
dataloader/waymo_utils/box_np_ops.py:192
↓ 1 callersMethodsave_calib
Parse and save the calibration data. Args: frame (:obj:`Frame`): Open dataset frame proto. file_idx (int): Current fi
waymo_tools/waymo_converter.py:143
↓ 1 callersFunctionsave_flow_png
(filepath, flow, mask=None, scale=64.0)
utils/cam_utils.py:77
↓ 1 callersMethodsave_image
Parse and save the images in png format. Args: frame (:obj:`Frame`): Open dataset frame proto. file_idx (int): Curren
waymo_tools/waymo_converter.py:128
↓ 1 callersMethodsave_label
Parse and save the label data in txt format. The relation between waymo and kitti coordinates is noteworthy: 1. x, y, z correspond to
waymo_tools/waymo_converter.py:270
↓ 1 callersMethodsave_lidar
Parse and save the lidar data in psd format. Args: frame (:obj:`Frame`): Open dataset frame proto. file_idx (int): Cu
waymo_tools/waymo_converter.py:199
↓ 1 callersMethodsave_pose
Parse and save the pose data. Note that SDC's own pose is not included in the regular training of KITTI dataset. KITTI raw dataset co
waymo_tools/waymo_converter.py:374
↓ 1 callersFunctionsceneflow_loss_func
(flow_preds, flow_gt, gamma=0.9, **kwargs, )
loss/sceneflow_loss.py:3
↓ 1 callersFunctionsingle_head_full_attention
(q, k, v)
models/transformer.py:7
↓ 1 callersFunctionsquare_distance
Calculate Euclid distance between each two points. src^T * dst = xn * xm + yn * ym + zn * zm; sum(src^2, dim=-1) = xn*xn + yn*yn + zn*zn;
models/transformer.py:163
↓ 1 callersFunctionsurface_equ_3d
Args: polygon_surfaces (np.ndarray): Polygon surfaces with shape of [num_polygon, max_num_surfaces, max_num_points_of_surfac
dataloader/waymo_utils/box_np_ops.py:711
↓ 1 callersMethodupdate_eval_thresh
(self, max_r, max_p)
dataloader/waymo_utils/crop_ground.py:257
↓ 1 callersFunctionval
(args)
main_gmsf.py:205
↓ 1 callersFunctionvalidate_kitti
Peform validation using the KITTI-2015 (train) split
evaluate/evaluate.py:105
↓ 1 callersFunctionvalidate_things
Peform validation using the Things (test) split
evaluate/evaluate.py:14
↓ 1 callersFunctionvalidate_waymo
Peform validation using the KITTI-2015 (train) split
evaluate/evaluate.py:177
Method__call__
(self, data)
dataloader/transforms.py:30
Method__getitem__
(self, i)
utils/preprocess_flyingthings3d_subset.py:76
Method__getitem__
(self, i)
dataloader/flyingthings3d.py:32
Method__getitem__
(self, index)
dataloader/flyingthings3d.py:98
Method__getitem__
(self, index)
dataloader/kitti.py:41
next →1–100 of 170, ranked by callers