Closed mnishiguchi closed 1 year ago
Hi @mnishiguchi, this function only loads the label file embedded in the model (associated files).
We can use TFLiteElixir.ImageClassification.set_label/2
to set labels.
TFLiteElixir.ImageClassification.set_label/2
currently expects a list of string as the labels.
Perhaps we can extend its ability to load a text file directly in the future.
@cocoa-xu Thanks! It totally makes sense. I will add some info in the image classification example.
When writing a notebook based on the example code in README, I noticed that
ImageClassification.set_label_from_associated_file/2
is not working as expected. Class name won't get added to the inference results.