-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathrun_train.sh
14 lines (12 loc) · 905 Bytes
/
run_train.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
#
# Copyright (c) 2017 Tencent Inc. All Rights Reserved
#
# File: run_train.sh
# Author: [email protected]
# Date: 2018/09/06 11:09:05
# Brief:
#Use GPU:
#CUDA_VISIBLE_DEVICES=0 python train_attention.py --data_path ./data/ --data_name f30k_precomp --vocab_path ./vocab/ --logger_name ./runs/f30k_precomp/ --model_name ./runs/f30k_precomp/ --max_violation --bi_gru --agg_func=Mean --cross_attn=t2i --lambda_softmax=9 --num_epochs=30 --lr_update=15 --learning_rate=.0002 --embed_size=1024 --val_step=2000000 --batch_size=128
#Use CPU only:
python train_attention.py --data_path ./data/ --data_name f30k_precomp --vocab_path ./vocab/ --logger_name ./runs/f30k_precomp/ --model_name ./runs/f30k_precomp/ --max_violation --bi_gru --agg_func=Mean --cross_attn=t2i --lambda_softmax=9 --num_epochs=30 --lr_update=15 --learning_rate=.0002 --embed_size=1024 --val_step=2000000 --batch_size=128