MCPcopy Create free account

hub / github.com/CUT3R/CUT3R / functions

Functions1,487 in github.com/CUT3R/CUT3R

↓ 4 callersFunctionto_cpu
(x)
src/dust3r/utils/device.py:46
↓ 4 callersFunctionunravel_xy
(pos, shape)
eval/mv_recon/dataset_utils/corr.py:38
↓ 4 callersFunctionunravel_xy
(pos, shape)
src/dust3r/datasets/utils/corr.py:41
↓ 4 callersMethodupdate_mem
mem_k: [B, size, C] mem_v: [B, size, C] feat_k: [B, 1, C] feat_v: [B, 1, C]
src/dust3r/model.py:204
↓ 4 callersFunctionview_name
(view, batch_index=None)
eval/mv_recon/base.py:245
↓ 4 callersFunctionview_name
(view, batch_index=None)
src/dust3r/datasets/base/base_multiview_dataset.py:507
↓ 3 callersMethod__init__
( self, hidden_size=768, mlp_ratio=4, pose_encoding_type="absT_quaR", )
src/dust3r/utils/camera.py:14
↓ 3 callersMethod__init__
( self, net, has_conf=False, has_depth=False, has_rgb=False, has_pose_conf=False )
src/dust3r/heads/linear_head.py:31
↓ 3 callersMethod__init__
Init. Args: scale_factor (float): scaling mode (str): interpolation mode
src/croco/models/dpt_block.py:250
↓ 3 callersMethod_check_all_imgs_are_selected
(self, msk)
cloud_opt/dust3r_opt/optimizer.py:96
↓ 3 callersFunction_crop
(img, sy, sx)
src/croco/stereoflow/engine.py:360
↓ 3 callersMethod_init_state
Current Version: input the first frame img feature and pose to initialize the state feature and pose
src/dust3r/model.py:705
↓ 3 callersMethod_no_grad
(self, tensor)
cloud_opt/dust3r_opt/optimizer.py:153
↓ 3 callersFunction_read_png_disp
(filename, coef=1.0)
src/croco/stereoflow/datasets_stereo.py:838
↓ 3 callersMethod_set_depthmap
(self, idx, depth, force=False)
cloud_opt/dust3r_opt/base_opt.py:318
↓ 3 callersMethod_set_focal
(self, idx, focal, force=False)
cloud_opt/dust3r_opt/base_opt.py:299
↓ 3 callersMethodadd_meter
(self, name, meter)
src/croco/utils/misc.py:128
↓ 3 callersFunctionadd_scene_cam
( scene, pose_c2w, edge_color, image=None, focal=None, imsize=None, screen_width=0
src/dust3r/viz.py:309
↓ 3 callersFunctioncamera_to_pose_encoding
Inverse to pose_encoding_to_camera camera: opencv, cam2world
src/dust3r/utils/camera.py:345
↓ 3 callersFunctioncompute_camera_pose_opencv_convention
(camera_position, camera_orientation)
src/croco/datasets/habitat_sim/multiview_habitat_sim_generator.py:26
↓ 3 callersFunctiondepth_read
Read depth data from file, return as numpy array.
eval/video_depth/eval_depth.py:41
↓ 3 callersFunctiondepthmap_to_absolute_camera_coordinates
Args: - depthmap (HxW array): - camera_intrinsics: a 3x3 matrix - camera_pose: a 4x3 or 4x4 cam2world matrix Returns:
src/dust3r/utils/geometry.py:209
↓ 3 callersFunctiondepthmap_to_pts3d
Args: - depthmap (BxHxW array): - pseudo_focal: [B,H,W] ; [B,2,H,W] or [B,1,H,W] Returns: pointmap of absolute coordi
src/dust3r/utils/geometry.py:127
↓ 3 callersFunctionestimate_focal
(pts3d_i, pp=None)
cloud_opt/utils.py:236
↓ 3 callersFunctionestimate_focal
(pts3d_i, pp=None)
cloud_opt/dust3r_opt/init_im_poses.py:281
↓ 3 callersMethodgenerate_pseudo_intrinsics
(h, w)
viser_utils.py:447
↓ 3 callersMethodget_adaptors
(self)
cloud_opt/dust3r_opt/base_opt.py:227
↓ 3 callersMethodget_all_pts3d
( self, gts, preds, dist_clip=None, norm_self_only=False, norm
src/dust3r/losses.py:377
↓ 3 callersFunctionget_timestamp
Convert an image basename to an integer timestamp. For ScanNet data, it is assumed that the basename is an integer string. Args:
datasets_preprocess/generate_set_scannet.py:22
↓ 3 callersFunctionget_video_results
()
eval/video_depth/eval_depth.py:99
↓ 3 callersMethodload_state_dict
(self, ckpt, **kw)
src/dust3r/model.py:386
↓ 3 callersFunctionloss_of_one_batch
( batch, model, criterion, accelerator: Accelerator, symmetrize_batch=False, use_amp=F
src/dust3r/inference.py:55
↓ 3 callersFunctionparallel_threads
tqdm but with parallel execution. Will essentially return res = [ function(arg) # default function(*arg) # if star_args is Tr
datasets_preprocess/utils/parallel.py:12
↓ 3 callersFunctionreg_dense_depth
extract 3D points from prediction head output
src/dust3r/heads/postprocess.py:113
↓ 3 callersFunctionrgb
(ftensor, true_shape=None)
src/dust3r/utils/image.py:46
↓ 3 callersFunctionrigid_points_registration
(pts1, pts2, conf)
cloud_opt/utils.py:247
↓ 3 callersFunctionrigid_points_registration
(pts1, pts2, conf)
cloud_opt/dust3r_opt/init_im_poses.py:264
↓ 3 callersFunctionrun
(input_model, output_model)
datasets_preprocess/read_write_model.py:564
↓ 3 callersFunctionsel
(x)
eval/mv_recon/base.py:246
↓ 3 callersFunctionsel
(x)
src/dust3r/datasets/base/base_multiview_dataset.py:508
↓ 3 callersMethodshow
(self, point_size=2)
src/dust3r/viz.py:266
↓ 3 callersFunctionstrip_module
Removes the 'module.' prefix from the keys of a state_dict. Args: state_dict (dict): The original state_dict with possible 'module.'
src/dust3r/model.py:57
↓ 3 callersFunctionto_numpy
(x)
cloud_opt/utils.py:40
↓ 3 callersMethodto_pil
(self)
datasets_preprocess/utils/cropping.py:63
↓ 3 callersMethodto_pil
(self)
eval/mv_recon/dataset_utils/cropping.py:40
↓ 3 callersMethodto_pil
(self)
src/dust3r/datasets/utils/cropping.py:41
↓ 3 callersFunctiontodevice
Transfer some variables to another device (i.e. GPU, CPU:torch, CPU:numpy). batch: list, tuple, dict of tensors or other things device: pytor
src/dust3r/utils/device.py:11
↓ 3 callersFunctiontodevice
Transfer some variables to another device (i.e. GPU, CPU:torch, CPU:numpy). batch: list, tuple, dict of tensors or other things device: pytor
cloud_opt/utils.py:9
↓ 3 callersFunctionxy_grid
Output a (H,W,2) array of int32 with output[j,i,0] = i + origin[0] output[j,i,1] = j + origin[1]
src/dust3r/utils/geometry.py:15
↓ 2 callersFunctionSeqColorJitter
Return a color jitter transform with same random parameters
src/dust3r/datasets/utils/transforms.py:41
↓ 2 callersFunctionSum
(*losses_and_masks)
src/dust3r/losses.py:27
↓ 2 callersMethod__call__
(self, img1, img2)
src/croco/datasets/transforms.py:13
↓ 2 callersMethod__init__
( self, num_seq=49, num_frames=5, min_thresh=10, max_thresh=30,
eval/mv_recon/data.py:193
↓ 2 callersMethod__init__
( self, size, k_dim, v_dim, num_heads, depth=2, mlp_ra
src/dust3r/model.py:141
↓ 2 callersFunction_computeColor
flow_utils._computeColor(flow): compute color codes for the flow field flow ---- PARAMETERS ---- flow: np.array of dimension (height
src/croco/stereoflow/datasets_flow.py:851
↓ 2 callersMethod_decoder
return_all_blocks: if True, return the features at the end of every block instead of just the features from the la
src/croco/models/croco.py:247
↓ 2 callersMethod_dispatch
(self, func, *args, **kwargs)
datasets_preprocess/utils/cropping.py:78
↓ 2 callersMethod_dispatch
(self, func, *args, **kwargs)
eval/mv_recon/dataset_utils/cropping.py:55
↓ 2 callersMethod_dispatch
(self, func, *args, **kwargs)
src/dust3r/datasets/utils/cropping.py:56
↓ 2 callersMethod_encode_image
(self, image, true_shape)
src/dust3r/model.py:516
↓ 2 callersMethod_encode_image
image has B x 3 x img_size x img_size do_mask: whether to perform masking or not return_all_blocks: if True, return the featu
src/croco/models/croco.py:210
↓ 2 callersMethod_encode_views
(self, views, img_mask=None, ray_mask=None)
src/dust3r/model.py:570
↓ 2 callersMethod_error
(self, gt, predictions)
src/croco/stereoflow/criterion.py:30
↓ 2 callersMethod_forward_decoder_step
( self, views, i, feat_i, pos_i, shape_i, init_state_f
src/dust3r/model.py:750
↓ 2 callersMethod_forward_impl
(self, views, ret_state=False)
src/dust3r/model.py:816
↓ 2 callersMethod_get_poses
(self, poses)
cloud_opt/dust3r_opt/base_opt.py:236
↓ 2 callersFunction_interleave_imgs
(img1, img2)
src/dust3r/inference.py:37
↓ 2 callersFunction_list_sequences
(db_root)
datasets_preprocess/preprocess_waymo.py:71
↓ 2 callersFunction_overlapping
(total, window, overlap=0.5)
src/croco/stereoflow/engine.py:353
↓ 2 callersFunction_ravel_hw
(tensor, fill=0)
cloud_opt/dust3r_opt/optimizer.py:280
↓ 2 callersFunction_read_pfm
(file)
src/croco/stereoflow/datasets_stereo.py:886
↓ 2 callersMethod_resize_flow
(self, flow, scale_x, scale_y, factor=1.0)
src/croco/stereoflow/augmentor.py:290
↓ 2 callersFunction_resize_img
(img, new_size)
src/croco/stereoflow/engine.py:225
↓ 2 callersFunction_resize_stereo_or_flow
(data, new_size)
src/croco/stereoflow/engine.py:229
↓ 2 callersMethod_set_pose
(self, poses, idx, R, T=None, scale=None, force=False)
cloud_opt/base_opt.py:112
↓ 2 callersMethodadapt_tokens
(self, encoder_tokens)
src/croco/models/dpt_block.py:471
↓ 2 callersMethodadd_cameras
( self, poses, focals=None, images=None, imsizes=None, colors=None, **kw )
src/dust3r/viz.py:251
↓ 2 callersFunctionalign_multiple_poses
(src_poses, target_poses)
cloud_opt/dust3r_opt/init_im_poses.py:367
↓ 2 callersMethodapply_rope1d
(self, tokens, pos1d, cos, sin)
src/croco/models/pos_embed.py:152
↓ 2 callersFunctionarea
(sz)
src/croco/datasets/crops/extract_crops_from_images.py:136
↓ 2 callersMethodblockwise_shuffle
(x, rng, block_shuffle)
src/dust3r/datasets/base/base_multiview_dataset.py:168
↓ 2 callersFunctionbuild_dataset
(dataset, batch_size, num_workers, accelerator, test=False, fixed_length=False)
src/train.py:354
↓ 2 callersFunctioncat
(a, b)
src/dust3r/viz.py:390
↓ 2 callersFunctioncat_3d
(vecs)
src/dust3r/viz.py:39
↓ 2 callersFunctioncenter_and_z
(poses)
cloud_opt/utils.py:409
↓ 2 callersFunctioncenter_and_z
(poses)
cloud_opt/dust3r_opt/init_im_poses.py:371
↓ 2 callersFunctioncolmap_to_opencv_intrinsics
Convert COLMAP intrinsics (with pixel centers at (0.5, 0.5)) to OpenCV convention.
datasets_preprocess/preprocess_mvimgnet.py:80
↓ 2 callersFunctioncolmap_to_opencv_intrinsics
Modify camera intrinsics to follow a different convention. Coordinates of the center of the top-left pixels are by default: - (0.5, 0.5)
src/dust3r/utils/geometry.py:235
↓ 2 callersFunctioncolorize
turn a grayscale image into a color image :param x: torch.Tensor, grayscale image, [H, W] or [B, H, W] :param mask: torch.Tensor or None,
eval/video_depth/utils.py:208
↓ 2 callersFunctioncolorize
turn a grayscale image into a color image :param x: torch.Tensor, grayscale image, [H, W] or [B, H, W] :param mask: torch.Tensor or None,
eval/relpose/utils.py:283
↓ 2 callersFunctioncompute_camera_intrinsics
(height, width, hfov)
src/croco/datasets/habitat_sim/multiview_habitat_sim_generator.py:20
↓ 2 callersFunctioncompute_pointcloud_overlaps_scikit
Compute 'overlapping' metrics based on a distance threshold between two point clouds.
src/croco/datasets/habitat_sim/multiview_habitat_sim_generator.py:59
↓ 2 callersMethodcompute_pose_loss
gt_pose: list of (Bx3, Bx4) pred_pose: list of (Bx3, Bx4) masks: None, or B
src/dust3r/losses.py:737
↓ 2 callersFunctiondetect_model_format
(path, ext)
datasets_preprocess/read_write_model.py:476
↓ 2 callersFunctionfast_pnp
(pts3d, focal, msk, device, pp=None, niter_PnP=10)
cloud_opt/dust3r_opt/init_im_poses.py:297
↓ 2 callersFunctionfocalLength_mm2px
(focalLength, dslr_sens, focalPoint)
datasets_preprocess/preprocess_bedlam.py:41
↓ 2 callersMethodforward
(self, img1, img2)
src/croco/datasets/transforms.py:20
↓ 2 callersFunctiongenerate_orientation_noise
(pan_range, tilt_range, roll_range)
src/croco/datasets/habitat_sim/multiview_habitat_sim_generator.py:125
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
src/croco/models/pos_embed.py:53
↓ 2 callersFunctionget_2d_sincos_pos_embed
grid_size: int of the grid height and width return: pos_embed: [grid_size*grid_size, embed_dim] or [n_cls_token+grid_size*grid_size, embe
src/croco/models/pos_embed.py:22
← previousnext →101–200 of 1,487, ranked by callers