MCPcopy Create free account

hub / github.com/bitbionic/keras-to-tensorflow / functions

Functions15 in github.com/bitbionic/keras-to-tensorflow

↓ 2 callersFunctionGetTopLabels
Analyzes the output of the Inception graph to retrieve the highest scores and their positions in the tensor, which correspond to categories.
main.cpp:204
↓ 1 callersFunctionCheckTopLabel
This is a testing function that returns whether the top label index is the one that's expected.
main.cpp:257
↓ 1 callersFunctionLoadGraph
Reads a model graph definition from disk, and creates a session object you can use to run it.
main.cpp:185
↓ 1 callersFunctionPrintTopLabels
Given the output of a model run, and the name of a file containing the labels this prints out the top five highest-scoring values.
main.cpp:231
↓ 1 callersFunctionReadEntireFile
main.cpp:90
↓ 1 callersFunctionReadLabelsFile
Takes a file name, and loads a list of labels from it, one per line, and returns a vector of the strings. It pads with empty strings so the length of
main.cpp:70
↓ 1 callersFunctionReadTensorFromImageFile
Given an image file name, read in the data, try to decode it as an image, resize it to the requested size, and then scale the values as desired.
main.cpp:114
↓ 1 callersFunctionbuildClassifier
Builds a very simple CNN outputing num_categories. Args: img_shape (int): The shape of the image to feed the CNN - defaults
k2tf_trainer.py:49
↓ 1 callersFunctionconvertGraph
Converts an HD5F file to a .pb file for use with Tensorflow. Args: modelPath (str): path to the .h5 file outdir (str): pa
k2tf_convert.py:41
↓ 1 callersFunctioninvertKVPairs
Inverts the key/value pairs of the supplied dictionary. Args: someDictionary (dict): The dictionary for which you would like the
k2tf_eval.py:35
↓ 1 callersFunctionload_graph
(model_file)
label_image.py:26
↓ 1 callersFunctionload_labels
(label_file)
label_image.py:62
↓ 1 callersFunctionread_tensor_from_image_file
(file_name, input_height=299, input_width=299, input_mean=0, input_std=255)
label_image.py:37
↓ 1 callersFunctiontrainModel
Trains the supplied model agaist train and test locations specified in the args. During the training, each epoch will be evaluated for v
k2tf_trainer.py:111
Functionmain
main.cpp:275