-
Notifications
You must be signed in to change notification settings - Fork 25
/
transfer.sh
executable file
·95 lines (82 loc) · 3.99 KB
/
transfer.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/bin/bash
#coco
#IN DOMAIN language
model=prototxts/dcc_vgg.wtd.prototxt
model_weights=dcc_coco_rm1_vgg.471.solver.prototxt_iter_110000
orig_attributes='utils/lexicalList/lexicalList_JJ100_NN300_VB100_rmEightCoco1.txt'
all_attributes='utils/lexicalList/lexicalList_parseCoco_JJ100_NN300_VB100.txt'
vocab='utils/vocabulary/vocabulary.txt'
words='utils/transfer_experiments/transfer_words_coco1.txt'
classifiers='utils/transfer_experiments/transfer_classifiers_coco1.txt'
closeness_metric='closeness_embedding'
transfer_type='direct_transfer'
python dcc.py --language_model $model \
--model_weights $model_weights \
--orig_attributes $orig_attributes \
--all_attributes $all_attributes \
--vocab $vocab \
--words $words \
--classifiers $classifiers \
--transfer_type $transfer_type \
--transfer \
--log
#OUT OF DOMAIN language (im2txt)
model=prototxts/dcc_vgg.80k.wtd.prototxt #prototxt used when using OUT OF DOMAIN language features
model_weights=dcc_oodLM_rm1_vgg.im2txt.471.solver_0409_iter_110000 #language learned from im2txt LM
orig_attributes='utils/lexicalList/lexicalList_JJ100_NN300_VB100_rmEightCoco1.txt'
all_attributes='utils/lexicalList/lexicalList_parseCoco_JJ100_NN300_VB100.txt'
vocab='utils/vocabulary/yt_coco_surface_80k_vocab.txt' #vocab used when training with OUT OF DOMAIN language features
words='utils/transfer_experiments/transfer_words_coco1.txt'
classifiers='utils/transfer_experiments/transfer_classifiers_coco1.txt'
closeness_metric='closeness_embedding'
transfer_type='direct_transfer'
python dcc.py --language_model $model \
--model_weights $model_weights \
--orig_attributes $orig_attributes \
--all_attributes $all_attributes \
--vocab $vocab \
--words $words \
--classifiers $classifiers \
--transfer_type $transfer_type \
--transfer \
--log
#OUT OF DOMAIN language (surf)
model=prototxts/dcc_vgg.80k.wtd.prototxt #prototxt used when using OUT OF DOMAIN language features
model_weights=dcc_oodLM_rm1_vgg.surf.471.solver_0409_iter_110000 #language learned from surf LM
orig_attributes='utils/lexicalList/lexicalList_JJ100_NN300_VB100_rmEightCoco1.txt'
all_attributes='utils/lexicalList/lexicalList_parseCoco_JJ100_NN300_VB100.txt'
vocab='utils/vocabulary/yt_coco_surface_80k_vocab.txt' #vocab used when training with OUT OF DOMAIN language features
words='utils/transfer_experiments/transfer_words_coco1.txt'
classifiers='utils/transfer_experiments/transfer_classifiers_coco1.txt'
closeness_metric='closeness_embedding'
transfer_type='direct_transfer'
python dcc.py --language_model $model \
--model_weights $model_weights \
--orig_attributes $orig_attributes \
--all_attributes $all_attributes \
--vocab $vocab \
--words $words \
--classifiers $classifiers \
--transfer_type $transfer_type \
--transfer \
--log
#imagenet
model='prototxts/dcc_vgg.80k.wtd.imagenet.prototxt'
model_weights='vgg_feats.vgg_multilabel_FT_iter_100000_imagenetSentences_iter_110000'
orig_attributes='utils/lexicalList/lexicalList_JJ100_NN300_VB100_rmEightCoco1.txt'
all_attributes='utils/lexicalList/lexicalList_471_rebuttalScale.txt'
vocab='utils/vocabulary/yt_coco_surface_80k_vocab.txt'
words='utils/transfer_experiments/transfer_words_imagenet.txt'
classifiers='utils/transfer_experiments/transfer_classifiers_imagenet.txt'
closeness_metric='closeness_embedding'
transfer_type='direct_transfer'
python dcc.py --language_model $model \
--model_weights $model_weights \
--orig_attributes $orig_attributes \
--all_attributes $all_attributes \
--vocab $vocab \
--words $words \
--classifiers $classifiers \
--transfer_type $transfer_type \
--transfer \
--log