pytorch/android-demo-app

FATAL EXCEPTION: main Process: org.pytorch.demo.objectdetection

lelopees opened this issue · 0 comments

Hello,

I was trying to run object detection sample app but it crashes on startup

FATAL EXCEPTION: maiN Process: org.pytorch.demo.objectdetection, PID: 12871
java.lang.UnsatisfiedLinkError: dlopen failed: library "libpytorch_jni.so" not found

I'm using a trained model (.pt) from google colab:
!pip install torch==1.13.0+cu117 torchvision==0.14.0+cu117 torchaudio==0.13.0 --extra-index-url https://download.pytorch.org/whl/cu117

gradle:
implementation 'org.pytorch:pytorch_android_lite:1.13.1'
implementation 'org.pytorch:pytorch_android_torchvision_lite:1.13.1'
implementation 'org.pytorch:torchvision_ops:0.13.1'

How can I fix this error?

Tasks

No tasks being tracked yet.