coreml

TorchScript requires source access in order to carry out compilation for collections.deque

TorchScript requires source access in order to carry out compilation for collections.deque Question: I’m trying to convert PyTorch FOMM model to TorchScript. As soon as I started to annotate some classes with @torch.jit.script I’ve got an error: OSError: Can’t get source for <class ‘collections.deque’>. TorchScript requires source access in order to carry out compilation, make …

Total answers: 2

Convert TFLite (TensorFlow) to MLModel (Apple)

Convert TFLite (TensorFlow) to MLModel (Apple) Question: I’m trying to convert TFLite Face Mesh model to MLModel (Apple). TFLite model description: https://drive.google.com/file/d/1VFC_wIpw4O7xBOiTgUldl79d9LA-LsnA/view TFLite actual .tflite file: https://github.com/google/mediapipe/blob/master/mediapipe/models/face_landmark.tflite Looking at CoreMLTools provided by Apple (https://coremltools.readme.io/docs/introductory-quickstart) seems like it’s possible, but all the samples codes demonstrate conversation from Keras and not from TFLite (although it’s clearly supported): …

Total answers: 2