Move tensors to a device
(self, device)
| 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 |
no outgoing calls
no test coverage detected