MCPcopy Create free account

hub / github.com/JudyYe/zero-shot-gcn / functions

Functions97 in github.com/JudyYe/zero-shot-gcn

↓ 14 callersMethodload
(self, sess=None)
src/gcn/models.py:78
↓ 5 callersFunctiondot
Wrapper for tf.matmul (sparse vs dense).
src/gcn/layers.py:30
↓ 3 callersMethod__init__
(self, **kwargs)
src/gcn/layers.py:54
↓ 3 callersMethod_log_vars
(self)
src/gcn/layers.py:80
↓ 3 callersFunctionmake_corresp
(name)
src/tools/prepare_list.py:175
↓ 3 callersFunctionsample_mask_sigmoid
Create mask.
src/gcn/utils.py:25
↓ 3 callersFunctionsparse_dropout
Dropout for sparse tensors.
src/gcn/layers.py:21
↓ 3 callersFunctionsparse_to_tuple
Convert sparse matrix to tuple representation.
src/gcn/utils.py:96
↓ 3 callersFunctionzeros
All zeros.
src/gcn/inits.py:18
↓ 2 callersFunctionglorot
Glorot & Bengio (AISTATS 2010) init.
src/gcn/inits.py:11
↓ 2 callersFunctionmake_zero_shot_list
(name)
src/tools/prepare_list.py:120
↓ 2 callersFunctionmask_mse_loss
Sigmoid cross-entropy loss with masking.
src/gcn/metrics.py:32
↓ 2 callersFunctionnormalize_adj
Symmetrically normalize adjacency matrix.
src/gcn/utils.py:148
↓ 2 callersFunctionprepare_graph
()
src/tools/prepare_list.py:231
↓ 2 callersFunctionto_tuple
(mx)
src/gcn/utils.py:99
↓ 1 callersMethod__init__
(self, **kwargs)
src/gcn/models.py:9
↓ 1 callersMethod_accuracy
(self)
src/gcn/models.py:68
↓ 1 callersMethod_accuracy
(self)
src/gcn/models.py:150
↓ 1 callersMethod_build
(self)
src/gcn/models.py:37
↓ 1 callersMethod_build
(self)
src/gcn/models.py:116
↓ 1 callersMethod_call
(self, inputs)
src/gcn/layers.py:68
↓ 1 callersMethod_loss
(self)
src/gcn/models.py:65
↓ 1 callersMethod_loss
(self)
src/gcn/models.py:147
↓ 1 callersFunctionadd_edge_dfs
(node)
src/tools/prepare_list.py:45
↓ 1 callersMethodbuild
Wrapper for _build()
src/gcn/models.py:40
↓ 1 callersFunctionchebyshev_recurrence
(t_k_minus_one, t_k_minus_two, scaled_lap)
src/gcn/utils.py:188
↓ 1 callersFunctionconstruct_feed_dict
Construct feed dictionary.
src/gcn/utils.py:164
↓ 1 callersFunctionconvert_graph
(save_dir)
src/tools/convert_to_gcn_data.py:92
↓ 1 callersFunctionconvert_input
(wv_file, save_dir)
src/tools/convert_to_gcn_data.py:28
↓ 1 callersFunctionconvert_label
save visual classifier
src/tools/convert_to_gcn_data.py:46
↓ 1 callersFunctionconvert_to_gcn_data
(model_path, layer_name, offset, wv_file)
src/tools/convert_to_gcn_data.py:15
↓ 1 callersFunctionconvert_to_graph
(vertice, edges)
src/tools/prepare_list.py:73
↓ 1 callersFunctioncreate_config_proto
Reset tf default config proto
src/gcn/utils.py:198
↓ 1 callersFunctiondownload
(vid_file)
src/tools/download_image.py:13
↓ 1 callersFunctiondownload_list
(data_dir)
src/tools/prepare_list.py:16
↓ 1 callersFunctiondownsample_image
(img_file, target_size)
src/tools/download_image.py:104
↓ 1 callersFunctionembed_text_file
(text_file, word_vectors, get_vector, save_file)
src/tools/obtain_word_embedding.py:20
↓ 1 callersFunctionextract_feature
(image_list, pool5, image_holder, preprocess, model_path, image_dir, feat_dir)
src/tools/extract_pool5.py:17
↓ 1 callersFunctionfind_neighbor
(srcfile)
src/tools/prepare_list.py:62
↓ 1 callersFunctionget_embedding
(entity_str, word_vectors, get_vector)
src/tools/obtain_word_embedding.py:69
↓ 1 callersFunctionget_glove_dict
(txt_dir)
src/tools/obtain_word_embedding.py:93
↓ 1 callersFunctionget_layer_uid
Helper function, assigns unique layer IDs.
src/gcn/layers.py:11
↓ 1 callersFunctionget_variables_in_checkpoint_file
(file_name)
src/tools/convert_to_gcn_data.py:52
↓ 1 callersFunctionget_variables_in_checkpoint_file
(file_name)
src/tools/extract_pool5.py:62
↓ 1 callersFunctioninception
()
src/tools/extract_pool5.py:204
↓ 1 callersFunctioninception_arg_scope
(is_training=True, batch_norm_decay=0.997, batch_norm_epsilon=
src/tools/extract_pool5.py:175
↓ 1 callersFunctioninit
(model_path, sess)
src/tools/extract_pool5.py:61
↓ 1 callersFunctionload_data_vis_multi
Load data.
src/gcn/utils.py:33
↓ 1 callersFunctionmake_image_list
(list_file, image_dir, name, offset=1000)
src/tools/download_image.py:55
↓ 1 callersFunctionmake_zero_shot_20klist
(name)
src/tools/prepare_list.py:138
↓ 1 callersFunctionparse_arg
()
src/tools/download_image.py:117
↓ 1 callersFunctionparse_arg
()
src/tools/obtain_word_embedding.py:118
↓ 1 callersFunctionparse_arg
()
src/tools/convert_to_gcn_data.py:105
↓ 1 callersFunctionparse_arg
()
src/tools/extract_pool5.py:220
↓ 1 callersFunctionpreprocess_adj
Preprocessing of adjacency matrix for simple GCN model and conversion to tuple representation.
src/gcn/utils.py:158
↓ 1 callersFunctionpreprocess_features_dense2
(features)
src/gcn/utils.py:136
↓ 1 callersFunctionres50
()
src/tools/extract_pool5.py:197
↓ 1 callersFunctionresnet_arg_scope
(is_training=True, batch_norm_decay=0.997, batch_norm_epsilon=1e-5,
src/tools/extract_pool5.py:152
↓ 1 callersFunctionrun_feat
(sess, pool5, image_holder, image)
src/tools/extract_pool5.py:145
↓ 1 callersMethodsave
(self, sess=None)
src/gcn/models.py:71
↓ 1 callersFunctiontest
(image_file, fc, feat_dir)
src/tools/tmp_test.py:9
↓ 1 callersFunctiontest_imagenet_zero
(fc_file_pred, has_train=1)
src/test_imagenet.py:12
↓ 1 callersFunctionuniform
Uniform init.
src/gcn/inits.py:5
Method__call__
(self, inputs)
src/gcn/layers.py:71
Method__init__
(self, input_dim, output_dim, placeholders, dropout=0., sparse_inputs=False, act=tf.nn.relu,
src/gcn/layers.py:87
Method__init__
(self, input_dim, output_dim, placeholders, dropout=0., sparse_inputs=False, act=tf.nn.relu,
src/gcn/layers.py:134
Method__init__
(self, input_dim, output_dim, placeholders, dropout=0., sparse_inputs=False, act=tf.nn.relu,
src/gcn/layers.py:194
Method__init__
(self, **kwargs)
src/gcn/models.py:88
Method__init__
(self, placeholders, input_dim, **kwargs)
src/gcn/models.py:170
Method_accuracy
(self)
src/gcn/models.py:193
Method_build
(self)
src/gcn/models.py:200
Method_call
(self, inputs)
src/gcn/layers.py:113
Method_call
(self, inputs)
src/gcn/layers.py:163
Method_call
(self, inputs)
src/gcn/layers.py:223
Method_loss
(self)
src/gcn/models.py:183
Methodbuild
Wrapper for _build()
src/gcn/models.py:119
Functionchebyshev_polynomials
Calculate Chebyshev polynomials up to order k. Return a list of sparse matrices (tuple representation).
src/gcn/utils.py:175
Functiondown_sample
(list_file, image_dir, size=256)
src/tools/download_image.py:86
Functionfasttext
(word_vectors, word)
src/tools/obtain_word_embedding.py:114
Functionglove_google
(word_vectors, word)
src/tools/obtain_word_embedding.py:110
Methodload
(self, sess=None)
src/gcn/models.py:160
Methodlrelu
(x, leak=0.2, name="lrelu")
src/gcn/models.py:197
Functionmasked_accuracy
Accuracy with masking.
src/gcn/metrics.py:13
Functionmasked_sigmoid_cross_entropy
Sigmoid cross-entropy loss with masking.
src/gcn/metrics.py:22
Functionmasked_softmax_cross_entropy
Softmax cross-entropy loss with masking.
src/gcn/metrics.py:4
Functionones
All ones.
src/gcn/inits.py:24
Functionparse_index_file
Parse index file.
src/gcn/utils.py:10
Methodpredict
(self)
src/gcn/models.py:62
Methodpredict
(self)
src/gcn/models.py:144
Methodpredict
(self)
src/gcn/models.py:248
Functionpreprocess_features
Row-normalize feature matrix and convert to tuple representation
src/gcn/utils.py:116
Functionpreprocess_features_dense
Row-normalize feature matrix and convert to tuple representation
src/gcn/utils.py:126
Functionpreprocess_inception
(image_name)
src/tools/extract_pool5.py:118
Functionpreprocess_res50
(image_name)
src/tools/extract_pool5.py:91
Functionrm_empty
(vid_file)
src/tools/download_image.py:72
Functionsample_mask
Create mask.
src/gcn/utils.py:18
Methodsave
(self, sess=None)
src/gcn/models.py:153