How to use Module API for prediction?
all examples of Module API show usage over training and validation data iterators, which also happen to have a label. For genuine prediction, data doesn’t come with label - finding the label is actually the reason we do a model in the first place : )
How to run a prediction on a new sample?
SSD detection model instantiated with:
mod = mx.module.Module.load('model_algo_1', 0, False, label_names=['label']) mod.bind(data_shapes=[( 'data', (1, 3, 500, 500))], label_shapes=[('label', (1, 1, 350))], for_training=False) # no idea if this is correct. I guessed that part based on pieces of documentation here and there
How to run a prediction?
predict seem to expect a DataIter. So should I do a DataIter without labels?