Add 'skip shots' GUI toggle and crop progress bar
This commit is contained in:
+6
-2
@@ -94,8 +94,12 @@ def meeting(name: str, start_from: str = "audio", speakers: int = 0, model: str
|
||||
try: done = json.loads(sj.read_text(encoding="utf-8"))
|
||||
except (OSError, ValueError): done = []
|
||||
# complete = every referenced frame/crop is still on disk (a run cancelled mid-shots wipes them while shots.json is stale)
|
||||
skip_shots = start_from != "shots" and bool(done) and all((sd / f).exists() for s in done for f in (s.get("file"), s.get("view")) if f)
|
||||
if skip_shots and go("shots"): print("shots already done: skipped (run from 'shots' to redo)")
|
||||
no_shots = (db.GLOBAL / "skip_shots.txt").exists() # GUI toggle "Salta schermate"
|
||||
skip_shots = no_shots or (start_from != "shots" and bool(done) and all((sd / f).exists() for s in done for f in (s.get("file"), s.get("view")) if f))
|
||||
if no_shots and not done:
|
||||
for f in ("shots.json", "glossary.json"): (db.out_dir(name) / f).write_text("[]")
|
||||
db.replace_shots(name, [])
|
||||
if skip_shots and go("shots"): print("shots skipped" if no_shots else "shots already done: skipped (run from 'shots' to redo)")
|
||||
if start_from == "render":
|
||||
memory.run(name, link=False)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user