os.path.exists(os.path.join(model_dir, "model.safetensors")) or os.path.exists(os.path.join(model_dir, "model.safetensors.index.json")) or os.path.exists(os.path.join ...
# Each video file `example.mp4` will result in a folder `example/` inside the output # directory, containing frames named as `0000.jpg`, `0001.jpg`, etc., sampled every # `stride` frames from the ...