The filtering process removes low-quality videos using three criteria:
- Aesthetic Filtering: Uses
aesthetic-predictor-v2-5 to score 4 sampled frames. - Text Filtering: Uses
EasyOCR to detect and filter videos with large text areas. - Motion Filtering: Uses optical flow to filter out videos with too little or too much motion.
Run the filtering script:
sh scripts/stage_2_video_filtering.sh
Note: If you cannot access huggingface.com, prefix the command with HF_ENDPOINT=https://hf-mirror.com. Metadata (aesthetic, text, and motion scores) is saved in easyanimate/video_caption/datasets/<dataset_name>/videos_clips/.
# If huggingface.com is inaccessible:
HF_ENDPOINT=https://hf-mirror.com sh scripts/stage_2_video_filtering.sh