-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathmake_class_embedding.sh
executable file
·47 lines (41 loc) · 1.49 KB
/
make_class_embedding.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh
#image input conditioned vector
#image_net=prototxt/deploy.prototxt
#word_net=prototxt/wtd_1000_all.prototxt
##model=snapshots/description_1006
#model=snapshots/description_010517_iter_10000
#
#size_input_feature=1000
#
#dataset_name='birds_fg'
#split_name='train_noCub'
#vocab='vocab'
#
#echo $dataset_name
#python utils/extract_train_val.py --model_name $model \
# --LM_net $word_net \
# --dataset_name $dataset_name \
# --split_name $split_name \
# --vocab $vocab \
# --image_net $image_net \
# --size_input_feature $size_input_feature \
# --prev_word_restriction \
# --image_input \
# --precomputed_h5 data/CUB_feature_010517.p
image_net=prototxt/deploy.prototxt
word_net=prototxt/lm_wtd.prototxt
model=snapshots/lm_iter_5000
dataset_name='birds_fg'
split_name='train_noCub'
vocab='vocab'
size_input_feature=1000
echo $dataset_name
python utils/extract_train_val.py --model_name $model \
--LM_net $word_net \
--dataset_name $dataset_name \
--split_name $split_name \
--vocab $vocab \
--image_net $image_net \
--size_input_feature $size_input_feature \
--prev_word_restriction \
--precomputed_h5 data/CUB_feature_010517.p