pytorch / android-demo-app

PyTorch android examples of usage in applications
1.46k stars 604 forks source link

Exporting .pt to .ptl #231

Closed Akotkar23 closed 2 years ago

Akotkar23 commented 2 years ago

I am trying to export .pt file to .ptl but it is converting as .torchscript Also, my custom pytorch model file is of 14.4MB and converted .torchscript file is of 28.7MB How to fix this issue.

YeetMasterYeet commented 2 years ago

hello, i am having the exact same issue, any way to fix it?

danurrahmajati commented 2 years ago

i try to convert it too, the detection is not working, Do you have any solution?

karuneshpalekar commented 2 years ago

There is a workaround for the same. We need to clone the other tag instead of the current one to get this working . One need to clone the repo in the following manner :

git clone --depth 1 --branch v6.0 https://github.com/ultralytics/yolov5

Instead of just cloning the recent tag. The documentation is not updated for the recent tag it seems until then this workaround works.

prolzh commented 2 years ago

hi all, may I know which part of the code you all have changed in the export for "git clone --depth 1 --branch v6.0 https://github.com/ultralytics/yolov5" directory?

YeetMasterYeet commented 2 years ago

Hello, my apologies, it was a mistake. I did not intend to request a merge. Thank you.

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows

From: @.> Sent: mardi 14 juin 2022 13:43 To: @.> Cc: @.>; @.> Subject: Re: [pytorch/android-demo-app] Exporting .pt to .ptl (Issue #231)

hi all, may I know which part of the code you all have changed in the export for "git clone --depth 1 --branch v6.0 https://github.com/ultralytics/yolov5" directory?

— Reply to this email directly, view it on GitHubhttps://github.com/pytorch/android-demo-app/issues/231#issuecomment-1155205331, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AK2UJ5G7VGGUTTEI3G5RBUTVPCD6ZANCNFSM5MM66OAQ. You are receiving this because you commented.Message ID: @.***>