Skip to content

Commit e41817c

Browse files
committed
update README
1 parent 021ad01 commit e41817c

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,19 +102,22 @@ Train ResNets-34 on the Kinetics dataset (400 classes) with 4 CPU threads (for d
102102
Batch size is 128.
103103
Save models at every 5 epochs.
104104
```
105-
th main.lua --root_path ~/data --video_path kinetics_videos/jpg --annotation_path kinetics.json --result_path results --lr_path LR/Kinetics/lr.lua \
106-
--dataset kinetics --model resnet --resnet_depth 34 --n_classes 400 --batch_size 128 --n_gpu 2 --n_threads 4 --checkpoint 5
105+
th main.lua --root_path ~/data --video_path kinetics_videos/jpg --annotation_path kinetics.json \
106+
--result_path results --lr_path LR/Kinetics/lr.lua --dataset kinetics --model resnet \
107+
--resnet_depth 34 --n_classes 400 --batch_size 128 --n_gpu 2 --n_threads 4 --checkpoint 5
107108
```
108109

109110
Continue Training from epoch 101. (~/data/results/model_100.t7 is loaded.)
110111
```
111-
th main.lua --root_path ~/data --video_path kinetics_videos/jpg --annotation_path kinetics.json --result_path results --lr_path LR/Kinetics/lr.lua \
112-
--dataset kinetics --begin_epoch 101 --batch_size 128 --n_gpu 2 --n_threads 4 --checkpoint 5
112+
th main.lua --root_path ~/data --video_path kinetics_videos/jpg --annotation_path kinetics.json \
113+
--result_path results --lr_path LR/Kinetics/lr.lua --dataset kinetics --begin_epoch 101 \
114+
--batch_size 128 --n_gpu 2 --n_threads 4 --checkpoint 5
113115
```
114116

115117
Perform recognition for each video of validation set using pretrained model.
116118
This operation outputs top-10 labels for each video.
117119
```
118-
th main.lua --root_path ~/data --video_path kinetics_videos/jpg --annotation_path kinetics.json --result_path results --premodel_path models/resnet.t7 \
119-
--dataset kinetics --no_train --no_val --test_video --test_subset val --n_gpu 2 --n_threads 4
120+
th main.lua --root_path ~/data --video_path kinetics_videos/jpg --annotation_path kinetics.json \
121+
--result_path results --premodel_path models/resnet.t7 --dataset kinetics \
122+
--no_train --no_val --test_video --test_subset val --n_gpu 2 --n_threads 4
120123
```

0 commit comments

Comments
 (0)