MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / load_vae_decoder

Method load_vae_decoder

lightx2v/models/runners/base_runner.py:192–203  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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")

Callers 2

run_vae_decoderMethod · 0.45

Calls 1

load_vaeMethod · 0.95

Tested by

no test coverage detected