Spaces:
Paused
Paused
Update app.py
Browse files12 unmodified lines13141516171819202126 unmodified lines484950515253545512 unmodified linesLTX_REPO_URL = "https://github.com/Lightricks/LTX-2.git"LTX_REPO_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "LTX-2")if not os.path.exists(LTX_REPO_DIR):print(f"Cloning {LTX_REPO_URL}...")subprocess.run(["git", "clone", "--depth", "1", LTX_REPO_URL, LTX_REPO_DIR], check=True)print("Installing ltx-core and ltx-pipelines from cloned repo...")subprocess.run(26 unmodified linesfrom ltx_core.components.noisers import GaussianNoiserfrom ltx_core.model.audio_vae import encode_audio as vae_encode_audiofrom ltx_core.model.upsampler import upsample_videofrom ltx_core.model.video_vae import TilingConfig, get_video_chunks_numberfrom ltx_core.model.video_vae.video_vae import decode_video as vae_decode_videofrom ltx_core.quantization import QuantizationPolicyfrom ltx_core.types import Audio, AudioLatentShape, VideoPixelShapefrom ltx_pipelines.distilled import DistilledPipeline12 unmodified lines13141516171819202122232426 unmodified lines5152535455565712 unmodified linesLTX_REPO_URL = "https://github.com/Lightricks/LTX-2.git"LTX_REPO_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "LTX-2")LTX_COMMIT = "9f6f8b6" # known working commit with decode_videoif not os.path.exists(LTX_REPO_DIR):print(f"Cloning {LTX_REPO_URL}...")subprocess.run(["git", "clone", LTX_REPO_URL, LTX_REPO_DIR], check=True)subprocess.run(["git", "checkout", LTX_COMMIT], cwd=LTX_REPO_DIR, check=True)print("Installing ltx-core and ltx-pipelines from cloned repo...")subprocess.run(26 unmodified linesfrom ltx_core.components.noisers import GaussianNoiserfrom ltx_core.model.audio_vae import encode_audio as vae_encode_audiofrom ltx_core.model.upsampler import upsample_videofrom ltx_core.model.video_vae import TilingConfig, get_video_chunks_number, decode_video as vae_decode_videofrom ltx_core.quantization import QuantizationPolicyfrom ltx_core.types import Audio, AudioLatentShape, VideoPixelShapefrom ltx_pipelines.distilled import DistilledPipeline
app.py+5-3