Show the info of the given scene. Args: scene_name (str): Scene name. Returns: dict or None: Dict of scene info. If there is no such a scene, we will return None.
(self, scene_name)
| 208 | return None |
| 209 | |
| 210 | def scene_info(self, scene_name): |
| 211 | """Show the info of the given scene. |
| 212 | |
| 213 | Args: |
| 214 | scene_name (str): Scene name. |
| 215 | |
| 216 | Returns: |
| 217 | dict or None: Dict of scene info. If there is no such a scene, we |
| 218 | will return None. |
| 219 | """ |
| 220 | for scene in self.data: |
| 221 | if scene['sample_idx'] == scene_name: |
| 222 | if self.verbose: |
| 223 | print('Info of', scene_name) |
| 224 | print(len(scene['images']), 'images') |
| 225 | print(len(scene['instances']), 'boxes') |
| 226 | return dict(num_images=len(scene['images']), |
| 227 | num_boxes=len(scene['instances'])) |
| 228 | |
| 229 | if self.verbose: |
| 230 | print('No such scene') |
| 231 | return None |
| 232 | |
| 233 | def render_scene(self, scene_name, render_box=False): |
| 234 | """Render a given scene with open3d. |
nothing calls this directly
no outgoing calls
no test coverage detected