Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GenVQA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vision
GenVQA
Commits
a3ddca67
Commit
a3ddca67
authored
8 years ago
by
tgupta6
Browse files
Options
Downloads
Patches
Plain Diff
change constants in visualize_relevance and constants_crunchy
parent
cc38d8bd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
answer_classifier_cached_features/train.py
+1
-0
1 addition, 0 deletions
answer_classifier_cached_features/train.py
constants_crunchy.py
+6
-6
6 additions, 6 deletions
constants_crunchy.py
visual_util/visualize_relevance.py
+3
-3
3 additions, 3 deletions
visual_util/visualize_relevance.py
with
10 additions
and
9 deletions
answer_classifier_cached_features/train.py
+
1
−
0
View file @
a3ddca67
...
...
@@ -476,6 +476,7 @@ def create_vqa_batch_generator():
resnet_feat_dim
=
constants
.
resnet_feat_dim
)
num_train_subset_questions
=
len
(
data_mgr
.
qids
)
print
num_train_subset_questions
index_generator
=
tftools
.
data
.
random
(
constants
.
answer_batch_size
,
...
...
This diff is collapsed.
Click to expand it.
constants_crunchy.py
+
6
−
6
View file @
a3ddca67
...
...
@@ -5,7 +5,7 @@ def mkdir_if_not_exists(dir_name):
if
not
os
.
path
.
exists
(
dir_name
):
os
.
mkdir
(
dir_name
)
experiment_name
=
'
QA_joint_pretrain_genome_split
'
experiment_name
=
'
object_attribute_classifier_large_images_vqa_split
'
#
'QA_joint_pretrain_genome_split'
# Global output directory (all subexperiments will be saved here)
global_output_dir
=
'
/home/tanmay/Code/GenVQA/Exp_Results/VQA
'
...
...
@@ -128,7 +128,7 @@ region_model_accuracies_txt = os.path.join(
'
model_accuracies.txt
'
)
# Object Attribute Classifier Evaluation Params
region_eval_on
=
'
train_
subse
t
'
# One of {'test','train_held_out','train_subset'}
region_eval_on
=
'
train_
held_ou
t
'
# One of {'test','train_held_out','train_subset'}
region_model_to_eval
=
region_model
+
'
-
'
+
'
80000
'
region_attribute_scores_dirname
=
os
.
path
.
join
(
...
...
@@ -189,13 +189,13 @@ vqa_answer_vocab_json = os.path.join(
# Answer classifier training params
answer_batch_size
=
50
answer_num_epochs
=
4
answer_num_epochs
=
6
answer_offset
=
0
answer_obj_atr_loss_wt
=
0.1
answer_regularization_coeff
=
1e-5
answer_queue_size
=
500
answer_embedding_dim
=
600
answer_lr
=
1e-
3
answer_lr
=
1e-
4
answer_log_every_n_iter
=
500
answer_output_dir
=
os
.
path
.
join
(
global_experiment_dir
,
...
...
@@ -220,7 +220,7 @@ answer_fine_tune_from = answer_model + '-' + str(answer_fine_tune_from_iter)
# Answer eval params
answer_eval_on
=
'
val
'
answer_model_to_eval
=
answer_model
+
'
-
185
00
'
answer_model_to_eval
=
answer_model
+
'
-
420
00
'
vqa_results_dir
=
os
.
path
.
join
(
answer_output_dir
,
...
...
@@ -238,7 +238,7 @@ answer_eval_results_json = os.path.join(
# Select best model
models_dir
=
answer_output_dir
start_model
=
1
000
start_model
=
40
000
step_size
=
2000
model_accuracies_txt
=
os
.
path
.
join
(
answer_output_dir
,
...
...
This diff is collapsed.
Click to expand it.
visual_util/visualize_relevance.py
+
3
−
3
View file @
a3ddca67
...
...
@@ -200,13 +200,13 @@ if __name__=='__main__':
'
mscoco_val2014_annotations_with_parsed_questions.json
'
)
exp_dir
=
'
/home/tanmay/Code/GenVQA/Exp_Results/VQA/
'
+
\
'
QA_
explicit_dot_joint_training_pretrained_same_lr
/
'
'
QA_
joint_pretrain_genome_split
/
'
eval_data_json
=
os
.
path
.
join
(
exp_dir
,
'
answer_classifiers/eval_val_
rest_
data.json
'
)
'
answer_classifiers/
Results/
eval_val_data.json
'
)
output_dir
=
os
.
path
.
join
(
exp_dir
,
'
qual_results_val_
rest_
conf
'
)
output_dir
=
os
.
path
.
join
(
exp_dir
,
'
qual_results_val_conf
'
)
if
not
os
.
path
.
exists
(
output_dir
):
os
.
mkdir
(
output_dir
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment