Update app.py
Browse files
app.py
CHANGED
|
@@ -55,10 +55,10 @@ from ltx_pipelines.distilled import DistilledPipeline
|
|
| 55 |
from ltx_pipelines.utils import euler_denoising_loop
|
| 56 |
from ltx_pipelines.utils.args import ImageConditioningInput
|
| 57 |
from ltx_pipelines.utils.constants import DISTILLED_SIGMA_VALUES, STAGE_2_DISTILLED_SIGMA_VALUES
|
|
|
|
| 58 |
from ltx_pipelines.utils.helpers import (
|
| 59 |
cleanup_memory,
|
| 60 |
combined_image_conditionings,
|
| 61 |
-
denoise_video_only,
|
| 62 |
encode_prompts,
|
| 63 |
simple_denoising_func,
|
| 64 |
)
|
|
@@ -193,7 +193,7 @@ class LTX23DistilledA2VPipeline(DistilledPipeline):
|
|
| 193 |
dtype=dtype,
|
| 194 |
device=self.device,
|
| 195 |
)
|
| 196 |
-
video_state =
|
| 197 |
output_shape=stage_1_output_shape,
|
| 198 |
conditionings=stage_1_conditionings,
|
| 199 |
noiser=noiser,
|
|
@@ -224,7 +224,7 @@ class LTX23DistilledA2VPipeline(DistilledPipeline):
|
|
| 224 |
dtype=dtype,
|
| 225 |
device=self.device,
|
| 226 |
)
|
| 227 |
-
video_state =
|
| 228 |
output_shape=stage_2_output_shape,
|
| 229 |
conditionings=stage_2_conditionings,
|
| 230 |
noiser=noiser,
|
|
|
|
| 55 |
from ltx_pipelines.utils import euler_denoising_loop
|
| 56 |
from ltx_pipelines.utils.args import ImageConditioningInput
|
| 57 |
from ltx_pipelines.utils.constants import DISTILLED_SIGMA_VALUES, STAGE_2_DISTILLED_SIGMA_VALUES
|
| 58 |
+
from ltx_pipelines.pipeline_utils import denoise_audio_video
|
| 59 |
from ltx_pipelines.utils.helpers import (
|
| 60 |
cleanup_memory,
|
| 61 |
combined_image_conditionings,
|
|
|
|
| 62 |
encode_prompts,
|
| 63 |
simple_denoising_func,
|
| 64 |
)
|
|
|
|
| 193 |
dtype=dtype,
|
| 194 |
device=self.device,
|
| 195 |
)
|
| 196 |
+
video_state, _ = denoise_audio_video(
|
| 197 |
output_shape=stage_1_output_shape,
|
| 198 |
conditionings=stage_1_conditionings,
|
| 199 |
noiser=noiser,
|
|
|
|
| 224 |
dtype=dtype,
|
| 225 |
device=self.device,
|
| 226 |
)
|
| 227 |
+
video_state, _ = denoise_audio_video(
|
| 228 |
output_shape=stage_2_output_shape,
|
| 229 |
conditionings=stage_2_conditionings,
|
| 230 |
noiser=noiser,
|