Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

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

Open
lelopees opened this issue Aug 11, 2023 · 0 comments
Open

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

lelopees opened this issue Aug 11, 2023 · 0 comments

Comments

@lelopees
Copy link

lelopees commented Aug 11, 2023

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

Preview Give feedback
No tasks being tracked yet.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant