Replies: 5 comments 4 replies
-
Please follow these steps: First, run the commands below,
and finally use `use tract_tensorflow::prelude::*; fn main() -> TractResult<()> {
}` |
Beta Was this translation helpful? Give feedback.
-
Hello, I tried this, and it works for me. First, on the Python side, using TensorFlow and Keras, you can develop and train or fine-tune any model you like. Then, at the last line of your training code, export the model as follows: python Next, following the documentation at ONNX Runtime, use this command: bash This will produce a file that can be used in the Rust tract inference part. I hope this is useful for you. |
Beta Was this translation helpful? Give feedback.
-
@banitalebi thanks a lot for helping, I'm pretty weak on the training side of affairs... I noticed you proposed a PR, but I'm not sure what you intended. That said, I think an update of the current example (tf/mobilenet v2) to mobilenet v3 could be a good option to make the example more readily usable... |
Beta Was this translation helpful? Give feedback.
-
@kali Thank you for your message! I'm happy to assist and would love to contribute by adding a new example for MobileNet V3, as you suggested. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, I spent some time fine-tuning MobileNet-V3 for classifying violence versus non-violence using a dataset from Kaggle. The model fine-tuning and the generation of the 'mobilenetv3_model.onnx' file have been completed. Additionally, the model evaluation using Python libraries has been conducted, as described [here] (https://github.com/banitalebi/MobileNetV3-Violence-Detection), where the results using onnxruntime and python tract are shown. The same mobilenetv3_model.onnx file and the same test [dataset] (https://drive.google.com/file/d/1sDwIpnQJD8iaRm8M322pITrD0esdMZZ6/view?usp=sharing) were utilized in this [repository] (https://github.com/banitalebi/MobileNetV3-Inference). But, apart from the differences in runtime, the results themselves also not the same. In python side the accuracy is 82.78% and in rust the accuracy: 77.28%. |
Beta Was this translation helpful? Give feedback.
-
i tried replacing
with
but none worked.
i also tried generating a Tensorflow
mobilenet-v3
model with Python, but it seemed like i couldn't just "plug and play" the generated model with the code in https://github.com/sonos/tract/tree/main/examples/tensorflow-mobilenet-v2.do you know where I can get a Tensorflow
mobilenet-v3
model that will easily work with https://github.com/sonos/tract/tree/main/examples/tensorflow-mobilenet-v2?from https://github.com/sonos/tract/tree/main/examples/tflite-mobilenet-v3 seems to give less accurate results, so I wanted to try a
tensorflow-mobilenet-v3
example.Beta Was this translation helpful? Give feedback.
All reactions