Open-Sora: Democratizing Efficient Video Production for All
Python
put back EXTENSIONS
Tom Youngd3bc7c86a677
diff --git a/tools/caption/utils.py b/tools/caption/utils.pyindex f50cdc2..42c3d56 100644--- a/tools/caption/utils.py+++ b/tools/caption/utils.py@@ -6,7 +6,8 @@ import torchvision.transforms as transformsfrom torchvision.datasets.folder import pil_loaderfrom tools.datasets.utils import extract_frames, is_video-+IMG_EXTENSIONS = (".jpg", ".jpeg", ".png", ".ppm", ".bmp", ".pgm", ".tif", ".tiff", ".webp")+VID_EXTENSIONS = (".mp4", ".avi", ".mov", ".mkv")PROMPTS = {"image": {"text": "Describe this image and its style to generate a succinct yet informative description. Pay attention to all objects in the image. The description should be useful for AI to re-generate the image. The description should be no more than five sentences. Remember do not exceed 5 sentences.",