Skip to content

Commit

Permalink
Add repo root to PYTHONPATH
Browse files Browse the repository at this point in the history
  • Loading branch information
ronghanghu committed Nov 14, 2017
1 parent 6439eb3 commit f7a6e69
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ The saved features will take up approximately **29GB disk space** (for all image

### Training

0. Add the root of this repository to PYTHONPATH: `export PYTHONPATH=.:$PYTHONPATH`

1. Train with ground-truth layout (cloning expert + policy search after cloning)
* Step a (cloning expert):
`python exp_clevr/train_clevr_gt_layout.py`
Expand All @@ -78,6 +80,8 @@ The downloaded snapshots should be placed under `exp_clevr/tfmodel/clevr_gt_layo

### Test

0. Add the root of this repository to PYTHONPATH: `export PYTHONPATH=.:$PYTHONPATH`

1. Evaluate *clevr_gt_layout* (cloning expert):
`python exp_clevr/eval_clevr.py --exp_name clevr_gt_layout --snapshot_name 00050000 --test_split val`
Expected accuracy: 78.9% (on val split).
Expand Down Expand Up @@ -142,6 +146,7 @@ Note: this repository already contains the parsing results from Stanford Parser

Train with ground-truth layout:

0. Add the root of this repository to PYTHONPATH: `export PYTHONPATH=.:$PYTHONPATH`
1. Step a (cloning expert):
`python exp_vqa/train_vqa_gt_layout.py`
2. Step b (policy search after cloning):
Expand All @@ -156,6 +161,8 @@ The downloaded snapshots should be placed under `exp_vqa/tfmodel/vqa_gt_layout`

### Test

0. Add the root of this repository to PYTHONPATH: `export PYTHONPATH=.:$PYTHONPATH`

1. Evaluate on *vqa_gt_layout* (cloning expert):
- (on test-dev2015 split):
`python exp_vqa/eval_vqa.py --exp_name vqa_gt_layout --snapshot_name 00040000 --test_split test-dev2015`
Expand All @@ -176,6 +183,8 @@ A copy of the SHAPES dataset is contained in this repository under `exp_shapes/s

### Training

0. Add the root of this repository to PYTHONPATH: `export PYTHONPATH=.:$PYTHONPATH`

1. Train with ground-truth layout (behavioral cloning from expert):
`python exp_shapes/train_shapes_gt_layout.py`

Expand All @@ -186,6 +195,8 @@ Note: by default, the above scripts use GPU 0. To train on a different GPU, set

### Test

0. Add the root of this repository to PYTHONPATH: `export PYTHONPATH=.:$PYTHONPATH`

1. Evaluate *shapes_gt_layout* (behavioral cloning from expert):
`python exp_shapes/eval_shapes.py --exp_name shapes_gt_layout --snapshot_name 00040000 --test_split test`

Expand Down

0 comments on commit f7a6e69

Please sign in to comment.