This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |