Problem: No one is going to spend time to write the converter for their features to my custom proto format just to test if my code works :smile:
Solution: This PR adds a python converter from numpy array to protos. It also adds a script that directly saves proto files to a folder. Then the full project can be run smoothly.
I assume that people have their features as numpy array of size NxD where N is the number of features and D the dimensionality.
If the features could be stored as a matrix in .txt format, then convert_numpy_features_to_proto.py can read this file (as long as np.loadtxt can read it :smile:) and produce the proto files.
If people don't want to bother storing their features to a file, just get convert_to_protos function from the script.
Problem: No one is going to spend time to write the converter for their features to my custom proto format just to test if my code works :smile: Solution: This PR adds a python converter from numpy array to protos. It also adds a script that directly saves proto files to a folder. Then the full project can be run smoothly.
I assume that people have their features as numpy array of size NxD where N is the number of features and D the dimensionality.
convert_numpy_features_to_proto.py
can read this file (as long as np.loadtxt can read it :smile:) and produce the proto files.convert_to_protos
function from the script.