Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Shreyz-max/Video-Captioning
/ functions
Functions
27 in github.com/Shreyz-max/Video-Captioning
⨍
Functions
27
◇
Types & classes
3
↓ 2 callers
Method
load_dataset
Loads the dataset in batches for training :return: batch of data
train.py:79
↓ 1 callers
Method
beam_search
:param target_seq: the array that is fed into the model to predict the next word :param states_value: previous state that is fed int
predict_realtime.py:68
↓ 1 callers
Method
beam_search
:param target_seq: the array that is fed into the model to predict the next word :param states_value: previous state
predict_test.py:61
↓ 1 callers
Method
decode_sequence2bs
(self, input_seq)
predict_realtime.py:61
↓ 1 callers
Method
decode_sequence2bs
(self, input_seq)
predict_test.py:54
↓ 1 callers
Method
decoded_sentence_tuning
(self, decoded_sentence)
predict_realtime.py:112
↓ 1 callers
Method
decoded_sentence_tuning
(self, decoded_sentence)
predict_test.py:105
↓ 1 callers
Function
extract_feats_pretrained_cnn
saves the numpy features from all the videos
extract_features.py:74
↓ 1 callers
Function
extract_features
:param video: The video whose frames are to be extracted to convert into a numpy array :param model: the pretrained vgg16 model :return:
extract_features.py:47
↓ 1 callers
Method
get_test_data
(self)
predict_realtime.py:138
↓ 1 callers
Method
get_test_data
loads all the numpy files :return: two lists containing all the video arrays and the video Id
predict_test.py:130
↓ 1 callers
Method
greedy_search
:param f: the loaded numpy array after creating videos to frames and extracting features :return: the final sentence which has been
predict_realtime.py:33
↓ 1 callers
Method
greedy_search
:param f: the loaded numpy array after creating videos to frames and extracting features :return: the final sentence
predict_test.py:28
↓ 1 callers
Method
index_to_word
(self)
predict_realtime.py:133
↓ 1 callers
Method
index_to_word
(self)
predict_test.py:125
↓ 1 callers
Function
load_image
(path)
extract_features.py:41
↓ 1 callers
Method
main
:param filename: the video to load :param caption: final caption :return:
predict_realtime.py:172
↓ 1 callers
Function
model_cnn_load
()
extract_features.py:34
↓ 1 callers
Method
preprocessing
Preprocessing the data dumps values of the json file into a list
train.py:47
↓ 1 callers
Method
test
(self)
predict_realtime.py:157
↓ 1 callers
Method
test
writes the captions of all the testing videos in a text file
predict_test.py:147
↓ 1 callers
Method
train_model
an encoder decoder sequence to sequence model reference : https://arxiv.org/abs/1505.00487
train.py:116
↓ 1 callers
Function
video_to_frames
(video)
extract_features.py:11
Method
__init__
(self, config)
train.py:22
Method
__init__
(self, config)
predict_realtime.py:18
Method
__init__
(self, config)
predict_test.py:15
Function
inference_model
Returns the model that will be used for inference
model.py:8