I am using the Coral dev board to accelerate AI models.
I do not understand what does the '@'
mean.
split
returns a list of all the words in a string using an specified 'separator'. But the name of my model file does not have an '@'.
It seems it is assigning a delegate to the model file.
The name of the model = mobilenet_v2_1.0_224_quant_edgetpu.tflite
import argparse
import time
from PIL import Image
import classify
import tflite_runtime.interpreter as tflite
import platform
EDGETPU_SHARED_LIB = {
'Linux': 'libedgetpu.so.1',
'Darwin': 'libedgetpu.1.dylib',
'Windows': 'edgetpu.dll'
}[platform.system()]
def make_interpreter(model_file):
model_file, *device = model_file.split('@')
return tflite.Interpreter(
model_path=model_file,
experimental_delegates=[
tflite.load_delegate(EDGETPU_SHARED_LIB,
{'device': device[0]} if device else {})
])
Thank you