StatusReport commited on
Commit
3802e49
·
verified ·
1 Parent(s): e149580

App: pin to a specific LTX-2 commit.

Browse files

This commit pins LTX-2 to before the changes to the model ledger that do not exist anymore.

Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -12,10 +12,16 @@ subprocess.run([sys.executable, "-m", "pip", "install", "xformers==0.0.32.post2"
12
  # Clone LTX-2 repo and install packages
13
  LTX_REPO_URL = "https://github.com/Lightricks/LTX-2.git"
14
  LTX_REPO_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "LTX-2")
 
15
 
16
  if not os.path.exists(LTX_REPO_DIR):
17
  print(f"Cloning {LTX_REPO_URL}...")
18
- subprocess.run(["git", "clone", "--depth", "1", LTX_REPO_URL, LTX_REPO_DIR], check=True)
 
 
 
 
 
19
 
20
  print("Installing ltx-core and ltx-pipelines from cloned repo...")
21
  subprocess.run(
 
12
  # Clone LTX-2 repo and install packages
13
  LTX_REPO_URL = "https://github.com/Lightricks/LTX-2.git"
14
  LTX_REPO_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "LTX-2")
15
+ LTX_COMMIT_SHA = "ae855f8538843825f9015a419cf4ba5edaf5eec2"
16
 
17
  if not os.path.exists(LTX_REPO_DIR):
18
  print(f"Cloning {LTX_REPO_URL}...")
19
+ os.makedirs(LTX_REPO_DIR)
20
+ subprocess.run(["git", "init", LTX_REPO_DIR], check=True)
21
+ subprocess.run(["git", "remote", "add", "origin", LTX_REPO_URL], cwd=LTX_REPO_DIR, check=True)
22
+ subprocess.run(["git", "fetch", "--depth", "1", "origin", COMMIT_SHA], cwd=LTX_REPO_DIR, check=True)
23
+ subprocess.run(["git", "checkout", LTX_COMMIT_SHA], cwd=LTX_REPO_DIR, check=True)
24
+
25
 
26
  print("Installing ltx-core and ltx-pipelines from cloned repo...")
27
  subprocess.run(