MCPcopy
hub / github.com/magicleap/Atlas / to

Method to

atlas/tsdf.py:146–156  ·  view source on GitHub ↗

Move tensors to a device

(self, device)

Source from the content-addressed store, hash-verified

144 return ret
145
146 def to(self, device):
147 """ Move tensors to a device"""
148
149 self.origin = self.origin.to(device)
150 self.tsdf_vol = self.tsdf_vol.to(device)
151 self.attribute_vols = {key:value.to(device)
152 for key, value in self.attribute_vols.items()}
153 self.attributes = {key:value.to(device)
154 for key, value in self.attributes.items()}
155 self.device = device
156 return self
157
158 def get_mesh(self, attribute='color', cmap='nyu40'):
159 """ Extract a mesh from the TSDF using marching cubes

Callers 4

fuse_sceneFunction · 0.80
processFunction · 0.80
l1Function · 0.80
backprojectFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected