This file contains 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
# Create video w/ red background | |
ffmpeg -f lavfi -i color=color=red -t 3 -vf scale=64:48 test_video_no_audio.mp4 | |
# Make some dummy audio | |
ffmpeg -f lavfi -i "sine=frequency=1000:duration=3" -ac 2 dummy_audio.wav | |
# Add dummy audio to the previous video | |
ffmpeg -i test_video_no_audio.mp4 -i dummy_audio.wav -map 0:v -map 1:a -c:v copy -shortest test_video_audio.mp4 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
from argparse import ArgumentParser | |
from base64 import b64decode | |
from io import BytesIO | |
from pathlib import Path | |
import nbformat | |
from doc_builder.style_doc import format_code_example | |
from huggingface_hub import create_repo, delete_file, list_repo_files, upload_file | |
from PIL import Image |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
""" | |
# Data | |
wget -nc --no-check-certificate https://www.crcv.ucf.edu/data/UCF101/UCF101.rar | |
unrar x UCF101.rar | |
# Annotations | |
wget -nc --no-check-certificate https://www.crcv.ucf.edu/data/UCF101/UCF101TrainTestSplits-RecognitionTask.zip | |
unzip UCF101TrainTestSplits-RecognitionTask.zip | |
Probably some extra unnecessary imports here |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.