android-demo-app icon indicating copy to clipboard operation
android-demo-app copied to clipboard

how to loadMoudule by Absolutepath

Open dota2mhxy opened this issue 4 years ago • 0 comments

Hello, I use the objectdetection app to run normally. There are some new requirements. The. Pt file is relatively large. I don't want to include it in the app, but want to load it directly from the local. I use Android Python version 1.8. I found that the pytorch_android class in his jar package does not implement the method of loading locally, but the nativepeer class contains NativePeer(String moduleAbsolutePath, Device device) {} My idea is to write a method in pytorch_android and call the above function. However, I failed to replace the jar package's class with the local pytorchandroid. Class. It will always be restored. If I delete it locally, it will still be downloaded. I don't know what I should do now.thanks

dota2mhxy avatar Oct 08 '21 12:10 dota2mhxy