pytorch / android-demo-app

PyTorch android examples of usage in applications
1.45k stars 593 forks source link

Expected IValue type Tuple, actual type Tensor #304

Open ISTIAKPAPPU opened 1 year ago

ISTIAKPAPPU commented 1 year ago

/AndroidRuntime: FATAL EXCEPTION: Thread-2 Process: org.pytorch.demo.objectdetection, PID: 15227 java.lang.IllegalStateException: Expected IValue type Tuple, actual type Tensor at org.pytorch.IValue.preconditionType(IValue.java:332) at org.pytorch.IValue.toTuple(IValue.java:313)

in yolov5 it works fine problem is in yolov8 how i can fix this issue anyone, please help me to figure this out;