Load VAE decoder Default implementation: get decoder from load_vae method Subclasses can override this method to provide different loading logic Returns: VAE decoder instance
(self)
| 190 | continue |
| 191 | if output_type == "video" and input_info.task == "sr" and input_info.image_path and not input_info.video_path: |
| 192 | output_type = "image" |
| 193 | if not input_info.return_result_tensor and input_info.save_result_path and Path(input_info.save_result_path).is_file(): |
| 194 | self.record_output(output_type, input_info.save_result_path) |
| 195 | break |
| 196 | if any(result.get(key) is not None for key in keys): |
| 197 | self.record_output(output_type) |
| 198 | return self._outputs |
| 199 | |
| 200 | def set_reuse(self, reuse, reuse_prefix_segments=0): |
| 201 | if reuse and not self.enable_reuse: |
| 202 | raise ValueError(f"This {type(self).__name__} service does not enable reuse") |
| 203 | if reuse and self.config.get("disagg_mode"): |
| 204 | raise NotImplementedError(f"{type(self).__name__} reuse does not support disaggregated inference") |
| 205 | if reuse_prefix_segments and not reuse: |
| 206 | raise ValueError("reuse_prefix_segments requires reuse=true") |
no test coverage detected