wan/lipsync: scratch dirs in /tmp so they don't register as assets
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
8ea7e8928b
commit
b7e113ca5b
@ -30,9 +30,8 @@ if p.get("shapes", "extended") == "basic":
|
|||||||
|
|
||||||
dialog = (p.get("dialog") or "").strip()
|
dialog = (p.get("dialog") or "").strip()
|
||||||
if dialog:
|
if dialog:
|
||||||
tmp = outdir / "work" # subdir: only top-level outdir files register as assets
|
import tempfile
|
||||||
tmp.mkdir(exist_ok=True)
|
dialog_file = Path(tempfile.mkdtemp(prefix="rhubarb_")) / "dialog.txt" # outside outdir: don't register as asset
|
||||||
dialog_file = tmp / "dialog.txt"
|
|
||||||
dialog_file.write_text(dialog + "\n")
|
dialog_file.write_text(dialog + "\n")
|
||||||
cmd += ["--dialogFile", str(dialog_file)]
|
cmd += ["--dialogFile", str(dialog_file)]
|
||||||
|
|
||||||
|
|||||||
@ -154,8 +154,8 @@ if not images:
|
|||||||
print("ERROR: no frames produced (timeout after 90min)")
|
print("ERROR: no frames produced (timeout after 90min)")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
frames_dir = outdir / "work" # subdir: keep raw frames out of asset registration
|
import tempfile
|
||||||
frames_dir.mkdir(exist_ok=True)
|
frames_dir = Path(tempfile.mkdtemp(prefix="wan_frames_")) # outside outdir so frames don't register as assets
|
||||||
for i, im in enumerate(images):
|
for i, im in enumerate(images):
|
||||||
q = urllib.parse.urlencode({"filename": im["filename"],
|
q = urllib.parse.urlencode({"filename": im["filename"],
|
||||||
"subfolder": im.get("subfolder", ""),
|
"subfolder": im.get("subfolder", ""),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user