DeepLabCut / DeepLabCut-live

SDK for running DeepLabCut on a live video stream
https://elifesciences.org/articles/61909
Other
192 stars 50 forks source link

Export protobuf from DLC GUI? #106

Closed blaingvt closed 1 year ago

blaingvt commented 1 year ago

I really have enjoyed using DLC and am trying to get DLCLive! working. DLClivetest works and engages GPU.

Is there a way to export .pb protobuf file from DLC-GUI?

Here is a picture of the error that I get when I send filepath to pose_cfg file. DLCLIVEError

Thank you very much for this amazing software.

MMathisLab commented 1 year ago

Thanks for the nice words!

You can export the model in dlc with model_export ! Then indeed you point to the exported folder files!

blaingvt commented 1 year ago

Wow so exciting! Thank you Dr. Mathis!

Successfully used the deeplabcut.export_model( ) command to create the folder containing the .pb file so my DLC model would initialize.

In the interest of helping individuals use this command in the future, I want to point out that if your filepath has C:\Users, the \U causes an expectation for unicode relevant information. Need to use double backslashes instead of the single in 'C:\Users'.

Resolving that issue is explained here. https://stackoverflow.com/questions/1347791/unicode-error-unicodeescape-codec-cant-decode-bytes-cannot-open-text-file

MMathisLab commented 1 year ago

Glad that solved it, and thanks for extra info and posting back! Always super helpful! 🙏🏼