Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bitbionic/keras-to-tensorflow
/ functions
Functions
15 in github.com/bitbionic/keras-to-tensorflow
⨍
Functions
15
◇
Types & classes
0
↓ 2 callers
Function
GetTopLabels
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 callers
Function
CheckTopLabel
This is a testing function that returns whether the top label index is the one that's expected.
main.cpp:257
↓ 1 callers
Function
LoadGraph
Reads a model graph definition from disk, and creates a session object you can use to run it.
main.cpp:185
↓ 1 callers
Function
PrintTopLabels
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 callers
Function
ReadEntireFile
main.cpp:90
↓ 1 callers
Function
ReadLabelsFile
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 callers
Function
ReadTensorFromImageFile
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 callers
Function
buildClassifier
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 callers
Function
convertGraph
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 callers
Function
invertKVPairs
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 callers
Function
load_graph
(model_file)
label_image.py:26
↓ 1 callers
Function
load_labels
(label_file)
label_image.py:62
↓ 1 callers
Function
read_tensor_from_image_file
(file_name, input_height=299, input_width=299, input_mean=0, input_std=255)
label_image.py:37
↓ 1 callers
Function
trainModel
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
Function
main
main.cpp:275