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

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

@lelopees

Description

@lelopees

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions