module TensorflowLite::Utilities::ExtractLabels

Defined in:

tensorflow_lite/utilities/extract_labels.cr

Constant Summary

MAGIC_ZIP = Bytes[80, 75, 3, 4]

File type detection https://github.com/sindresorhus/file-type/blob/main/core.js https://en.wikipedia.org/wiki/ZIP_(file_format)

Class Method Summary

Class Method Detail

def self.from(input : Path | Bytes, metadata_file : String = ".txt") : Array(String) | Nil #

extracts the label names from tensorflow lite model at the path specified


[View source]