ViDove / README.md
JiaenLiu
small fix
147a645
|
raw
history blame
1.22 kB

PROJECT-T

Installation

pip install -r requirement.txt

Usage

usage: pipeline.py [-h] [--link LINK] [--local_path LOCAL_PATH] [--download DOWNLOAD] [--result RESULT] [--video_name VIDEO_NAME] [--model_name]

quick start:

example online: python3 pipeline.py --link https://www.youtube.com/watch?v=61c4dn6851g --download ./downloads --result ./results --video_name SO_I_CHOSE_RANDOM

example offline: python3 pipeline.py --local_path test_translation.m4a --result ./results --video_name test_translation

example text input: python pipeline.py --text_file "/home/jiaenliu/project-t/results/huanghe_translation_en.txt" --result "/home/jiaenliu/project-t/results" --video_name "huanghe_test"

options:
  -h, --help            show this help message and exit
  --link LINK           youtube video link here
  --local_path LOCAL_PATH
                        local video path here
  --download DOWNLOAD   download path
  --result RESULT       translate result path
  --video_name VIDEO_NAME
                        video name
  --model_name MODEL_NAME 
                        model name

if you cannot download youtube video, please follow the link below.
https://github.com/pytube/pytube/issues/1498