-
Notifications
You must be signed in to change notification settings - Fork 50
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
Tensorflow model conversion for tensorrt not working #113
Comments
Definitely the TF version for export model needs to be the same as in dlc-live env; and below 2.10. I have not used tensorrt actually; is it clear in docs we support this? Cc @n-poulsen |
Yes the docs specify |
Hi @andrewwong09! Did you make any changes to the DLCLive codebase to load the model? With your script and
|
Hi @n-poulsen, thank you for taking the time! You're right, I changed by code base in dlclive.py to load the model and get the previously posted Traceback; sorry for the confusion. I assume to create your error, you had to modify the try/except block here, to enable loading the trt_convert with:
and updated trt.TrtGraphConverter to accept a nodes_denylist instead of a nodes_blacklist? In any case, I've arrived at the same error message you have doing the above. Do you have any recommendations at this point? Have you had much luck using tensorrt within dlclive? For what it's worth, I tried using
And got the below error:
|
Hi!
I'm trying to use DeepLabCut-live with "tensorrt" as the model_type. Running the below minimum example works when model_type="base", but not "tensorrt". I exported the dlc model using deeplabcut.export_model(). Exporting the model runs to completion and is successfully loaded into the DLCLive class. I suspect the issue is when tensorflow is trying to convert the model in trtconvert, the model is not in the expected format. Is there a specific version of tensorflow that I should be using for exporting and importing the model that works with trtconvert? Or is there a trick to updating the exported tensorflow model to the right SavedModel format? I've included my tensorflow and tensorrt package version below.
Thanks,
Andrew
Code snippet
Error Stack Track Below
Below are my library versions running in python 3.10.12 environment.
Thanks
The text was updated successfully, but these errors were encountered: