def _close(self): BaseEnv._close(self) if not self._require_camera_input or self.test_env: return self.r_camera_mul.terminate() self.r_camera_rgb._close() if self.r_camera_dep is not None: self.r_camera_dep.terminate() if self._require_normal: self.r_camera_norm.terminate() if self._require_semantics: self.r_camera_semt.terminate()
def _close(self): BaseEnv._close(self) if self._require_camera_input: self.r_camera_mul.terminate() self.r_camera_rgb._close() if self.r_camera_dep is not None: self.r_camera_dep.terminate() if self._require_normal: self.r_camera_norm.terminate() if self._require_semantics: self.r_camera_semt.terminate() if self.config["display_ui"]: self.UI._close()