Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/magicleap/Atlas
/ functions
Functions
135 in github.com/magicleap/Atlas
⨍
Functions
135
◇
Types & classes
29
↓ 17 callers
Method
load
Load a tsdf from disk (stored as npz). Args: fname: path to archive voxel_types: list of strings specifying which vo
atlas/tsdf.py:118
↓ 10 callers
Method
to
Move tensors to a device
atlas/tsdf.py:146
↓ 8 callers
Method
get_mesh
Extract a mesh from the TSDF using marching cubes If TSDF also has atribute_vols, these are extracted as vertex_attributes. The mesh
atlas/tsdf.py:158
↓ 6 callers
Function
load_info_json
Open a json info_file and do a bit of preprocessing
atlas/data.py:30
↓ 6 callers
Function
parse_splits_list
Returns a list of info_file paths Args: splits (list of strings): each item is a path to a .json file or a path to a .txt fi
atlas/data.py:270
↓ 5 callers
Method
postprocess
Wraps the network output into a TSDF data structure Args: batch: dict containg network outputs Returns:
atlas/model.py:279
↓ 5 callers
Method
transform
Applies a 3x4 linear transformation to the TSDF. Each voxel is moved according to the transformation and a new volume is constructed
atlas/tsdf.py:233
↓ 4 callers
Function
coordinates
3d meshgrid of given size. Args: voxel_dim: tuple of 3 ints (nx,ny,nz) specifying the size of the volume Returns: torch lon
atlas/tsdf.py:26
↓ 4 callers
Function
get_norm_3d
Get a normalization module for 3D tensors Args: norm: (str or callable) out_channels Returns: nn.Module or None: th
atlas/backbone3d.py:23
↓ 4 callers
Method
save
(self, fname)
atlas/tsdf.py:107
↓ 4 callers
Method
save_mesh
(self, tsdf, name)
atlas/logger.py:30
↓ 3 callers
Method
__init__
(self, cfg)
atlas/heads3d.py:61
↓ 3 callers
Method
inference1
Backprojects image features into 3D and accumulates them. This is the first half of the network which is run on every frame. Only pa
atlas/model.py:144
↓ 3 callers
Method
initialize_volume
Reset the accumulators. self.volume is a voxel volume containg the accumulated features self.valid is a voxel volume contain
atlas/model.py:129
↓ 2 callers
Method
__init__
(self, inplanes, planes, stride=1, downsample=None, groups=1, base_width=64, dilation=1, norm
atlas/backbone3d.py:61
↓ 2 callers
Function
conv1x1x1
1x1x1 convolution
atlas/backbone3d.py:50
↓ 2 callers
Function
conv3x3x3
3x3x3 convolution with padding
atlas/backbone3d.py:44
↓ 2 callers
Function
eval_depth
Computes 2d metrics between two depth maps Args: depth_pred: mxn np.array containing prediction depth_trgt: mxn np.array con
atlas/evaluation.py:192
↓ 2 callers
Function
eval_mesh
Compute Mesh metrics between prediction and target. Opens the Meshs and runs the metrics Args: file_pred: file path of prediction
atlas/evaluation.py:79
↓ 2 callers
Method
forward
Wraps inference1() and inference2() into a single call. Args: batch: a dict from the dataloader Returns: se
atlas/model.py:214
↓ 2 callers
Method
get_transform
Gets a transform to preprocess the input data
atlas/model.py:314
↓ 2 callers
Method
get_tsdf
Package the TSDF volume into a TSDF data structure Args: label_name: name key to store label in TSDF.attribute_vols
atlas/tsdf.py:418
↓ 2 callers
Method
inference2
Refines accumulated features and regresses output TSDF. This is the second half of the network. It should be run once after all fram
atlas/model.py:188
↓ 2 callers
Method
integrate
Accumulate a depth map (and color/label) into the TSDF Args: projection: projection matrix of the camera (intrinsics@extrinsics)
atlas/tsdf.py:369
↓ 2 callers
Function
log_transform
rescales TSDF values to weight voxels near the surface more than close to the truncation distance
atlas/heads3d.py:154
↓ 2 callers
Function
map_frame
Load images and metadata for a single frame. Given an info json we use this to load the images, etc for a single frame Args: frame:
atlas/data.py:42
↓ 2 callers
Function
map_tsdf
Load TSDFs from paths in info. Args: info: dict with paths to TSDF files (see datasets/README) data: dict to add TSDF data to
atlas/data.py:71
↓ 2 callers
Function
nn_correspondance
for each vertex in verts2 find the nearest vertex in verts1 Args: nx3 np.array's Returns: ([indices], [distances])
atlas/evaluation.py:119
↓ 2 callers
Method
normalizer
Normalizes the RGB images to the input range
atlas/model.py:140
↓ 2 callers
Function
transform_space
Apply a 3x4 linear transform to the world coordinate system. This affects pose as well as TSDFs.
atlas/transforms.py:156
↓ 2 callers
Function
visualize
(fname)
visualize_metrics.py:23
↓ 1 callers
Method
__init__
(self, save_path)
atlas/logger.py:26
↓ 1 callers
Method
__init__
(self, cfg, stride)
atlas/heads2d.py:30
↓ 1 callers
Function
backproject
Takes 2d features and fills them along rays in a 3d volume This function implements eqs. 1,2 in https://arxiv.org/pdf/2003.10432.pdf Each pi
atlas/model.py:35
↓ 1 callers
Function
build_backbone2d
Builds 2D feature extractor backbone network from Detectron2.
atlas/backbone2d.py:14
↓ 1 callers
Function
build_backbone3d
(cfg)
atlas/backbone3d.py:212
↓ 1 callers
Function
check_tsdf
Makes sure TSDFs are voxel aligned so we can directly compare values
atlas/evaluation.py:53
↓ 1 callers
Function
convert_to_dict
Convert a config node to dictionary
atlas/config.py:22
↓ 1 callers
Method
convert_to_dict
(self)
atlas/config.py:38
↓ 1 callers
Function
depth_to_world
backprojects depth maps to point clouds Args: projection: 3x4 projection matrix depth: hxw depth map Returns: tensor
atlas/tsdf.py:44
↓ 1 callers
Function
eval_scene
Evaluates COLMAP inference compared to ground truth Args: info_file: path to info_json file for the scene pathout: path where in
evaluate_colmap.py:48
↓ 1 callers
Function
eval_tsdf
Compute TSDF metrics between prediction and target. Opens the TSDFs, aligns the voxels and runs the metrics Args: file_pred: file p
atlas/evaluation.py:24
↓ 1 callers
Method
fix_pose
(self, pose)
evaluate.py:54
↓ 1 callers
Function
fuse_scene
Use TSDF fusion with GT depth maps to generate GT TSDFs Args: path_meta: path to save the TSDFs (we recommend creating a pa
prepare_data.py:34
↓ 1 callers
Function
get_cfg
(args)
atlas/config.py:161
↓ 1 callers
Method
get_frame_ids
Get the ids of the frames to load
atlas/data.py:223
↓ 1 callers
Function
get_parser
()
atlas/config.py:149
↓ 1 callers
Method
get_tsdf
Returns: dict with TSDFs
atlas/data.py:142
↓ 1 callers
Function
l1
Computes the L1 distance between 2 TSDFs (ignoring unobserved voxels) Args: tsdf_pred: TSDF containing prediction tsdf_trgt:
atlas/evaluation.py:61
↓ 1 callers
Function
label_scene
Transfer instance labels from ground truth mesh to TSDF For each voxel find the nearest vertex and transfer the label if it is close enough
prepare_data.py:144
↓ 1 callers
Function
load_rio_label_mapping
(path)
atlas/datasets/rio.py:24
↓ 1 callers
Function
load_rio_nyu40_mapping
()
atlas/datasets/rio.py:35
↓ 1 callers
Function
load_scannet_label_mapping
Returns a dict mapping scannet category label strings to scannet Ids scene****_**.aggregation.json contains the category labels as strings
atlas/datasets/scannet.py:182
↓ 1 callers
Function
load_scannet_nyu40_mapping
Returns a dict mapping scannet Ids to NYU40 Ids Args: path: Path to the original scannet data. This is used to get scannetv
atlas/datasets/scannet.py:213
↓ 1 callers
Function
main
()
inference_colmap.py:148
↓ 1 callers
Function
main
()
evaluate_colmap.py:105
↓ 1 callers
Function
main
()
visualize_metrics.py:44
↓ 1 callers
Function
main
()
inference.py:111
↓ 1 callers
Function
main
()
evaluate.py:173
↓ 1 callers
Method
mesh_opengl
(self, mesh)
evaluate.py:66
↓ 1 callers
Function
pad_scannet
Scannet images are 1296x968 but 1296x972 is 4x3 so we pad vertically 4 pixels to make it 4x3
atlas/transforms.py:64
↓ 1 callers
Function
parse_intrinsics
(fname)
atlas/datasets/rio.py:48
↓ 1 callers
Function
prepare_sample_scene
Generates a json file for a sample scene in our common format This wraps all the data about a scene into a single common format that is reada
atlas/datasets/sample.py:23
↓ 1 callers
Function
prepare_scannet
Create all derived data need for the Scannet dataset For each scene an info.json file is created containg all meta data required by the data
prepare_data.py:218
↓ 1 callers
Function
prepare_scannet_scene
Generates a json file for a scannet scene in our common format This wraps all the data about a scene into a single common format that is read
atlas/datasets/scannet.py:24
↓ 1 callers
Function
prepare_scannet_splits
Generates txt files for each dataset split Creates a folder 'data' in the current working directory. In that folder we create a split.txt fi
atlas/datasets/scannet.py:143
↓ 1 callers
Function
process
Run Colmap dense reconstruction with ground truth pose. Copies and creates the necessary file structure required by Colmap. Then runs Colmap
inference_colmap.py:26
↓ 1 callers
Function
process
Run the netork on a scene and save output Args: info_file: path to info_json file for the scene model: pytorch model that implem
inference.py:28
↓ 1 callers
Function
process
(info_file, save_path, total_scenes_index, total_scenes_count)
evaluate.py:74
↓ 1 callers
Function
project_to_mesh
Transfers attributs from from_mesh to to_mesh using nearest neighbors Each vertex in to_mesh gets assigned the attribute of the nearest vert
atlas/evaluation.py:147
↓ 1 callers
Function
read_array
(path)
evaluate_colmap.py:28
Method
__call__
(self, height, width, intrinsics, pose, mesh)
evaluate.py:44
Method
__call__
(self, data)
atlas/transforms.py:32
Method
__call__
(self, data)
atlas/transforms.py:39
Method
__call__
(self, data)
atlas/transforms.py:56
Method
__call__
(self, data)
atlas/transforms.py:88
Method
__call__
(self, data)
atlas/transforms.py:123
Method
__call__
(self, data)
atlas/transforms.py:187
Method
__call__
(self, data)
atlas/transforms.py:218
Method
__call__
(self, data)
atlas/transforms.py:279
Method
__call__
(self, semseg)
atlas/transforms.py:300
Method
__getitem__
Returns: dict of meta data and images for a single frame
atlas/data.py:123
Method
__getitem__
Load images and TSDF for scene i
atlas/data.py:199
Method
__init__
(self, height=480, width=640)
evaluate.py:39
Method
__init__
(self, input_shape, output_dim=32, output_stride=4, norm='BN')
atlas/backbone2d.py:36
Method
__init__
(self, transforms)
atlas/transforms.py:29
Method
__init__
(self, size)
atlas/transforms.py:85
Method
__init__
(self, mapping=None)
atlas/transforms.py:113
Method
__init__
(self, transform, voxel_dim, origin)
atlas/transforms.py:182
Method
__init__
Args: voxel_dim: tuple of 3 ints (nx,ny,nz) specifying the size of the output volume random_rotation
atlas/transforms.py:197
Method
__init__
(self, cmap='nyu40')
atlas/transforms.py:294
Method
__init__
(self, cfg)
atlas/heads3d.py:32
Method
__init__
(self, cfg)
atlas/heads3d.py:163
Method
__init__
(self, cfg)
atlas/heads3d.py:214
Method
__init__
(self, *args, **kwargs)
atlas/logger.py:44
Method
__init__
Args: voxel_size: metric size of voxels (ex: .04m) origin: origin of the voxel volume (xyz position of voxel (0,0,0))
atlas/tsdf.py:80
Method
__init__
Args: voxel_dim: tuple of 3 ints (nx,ny,nz) specifying the size of the volume voxel_size: metric size of each voxel (
atlas/tsdf.py:323
Method
__init__
Args: info_file: path to json file (format described in datasets/README) transform: transform object to preprocess da
atlas/data.py:95
Method
__init__
Args: info_files: list of info_json files num_frames: number of frames in the sequence to load transform:
atlas/data.py:175
Method
__init__
(self, cfg, stride)
atlas/heads2d.py:53
next →
1–100 of 135, ranked by callers