Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 1.53 KB

USAGE.md

File metadata and controls

36 lines (31 loc) · 1.53 KB

Usage

1. Initial Setup

git submodule init
git submodule update
cd vtensorflow/models/research/im2txt
sudo python3 setup.py develop
cd -
cd voicecloning
sudo python3 setup.py develop
cd -
./venv_setup.sh
source ./visual-questioner-env/bin/activate

2. Downloads

3. Data Generation

Generate GPT-2 training data with

python3 gen_nq_data.py <path_to_natural_questions_jsonl>

4. Training

Train the GPT-2 questioner with train_gpt2_questioner.ipynb.

5. Evaluation

Run the GPT-2 questioner with questioner_gui.py, questioner_cli.py, or run_gpt2_questioner.ipynb.