Skip to content

imx500: Swap pytorch/tf tab ordering. Pytorch is preferred. #4136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions documentation/asciidoc/accessories/ai-camera/model-conversion.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ The Edge-MDT package takes a parameter to select between installing the PyTorch

[tabs]
======
TensorFlow::
PyTorch::
+
[source,console]
----
$ pip install edge-mdt[tf]
$ pip install edge-mdt[pt]
----
+
TIP: Always use the same version of TensorFlow you used to compress your model.

PyTorch::
TensorFlow::
+
[source,console]
----
$ pip install edge-mdt[pt]
$ pip install edge-mdt[tf]
----
+
TIP: Always use the same version of TensorFlow you used to compress your model.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just out of curiosity: How is this TIP helpful, given that the pip command above seems to have no way of selecting a matching version of TensorFlow? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's to do with stetting up the correct virtual env I think.

======

If you need to install both packages, use two separate Python virtual environments. This prevents TensorFlow and PyTorch from causing conflicts with each other.
Expand All @@ -62,18 +62,18 @@ To convert a model model:

[tabs]
======
TensorFlow::
PyTorch::
+
[source,console]
----
$ imxconv-tf -i <compressed Keras model> -o <output folder>
$ imxconv-pt -i <compressed ONNX model> -o <output folder>
----

PyTorch::
TensorFlow::
+
[source,console]
----
$ imxconv-pt -i <compressed ONNX model> -o <output folder>
$ imxconv-tf -i <compressed Keras model> -o <output folder>
----
======

Expand Down