Skip to content

Instantly share code, notes, and snippets.

import os, uuid, subprocess, shlex, collections, math, tempfile
import runpod
from runpod.serverless.utils import rp_download, rp_cleanup
import boto3
from botocore.client import Config as BotoConfig
from botocore.exceptions import BotoCoreError, ClientError
MODEL_DIR = "/app/LatentSync"
CKPT = os.path.join(MODEL_DIR, "checkpoints", "latentsync_unet.pt")