An fatal exception in ImageSegmentation (Expected IValue type DictStringKey, actual type Tuple)
jaywit opened this issue · 0 comments
when i try to build and run repo of ImageSegmentation in Android Studio as tutorial https://pytorch.org/tutorials/beginner/deeplabv3_on_android.html.
I got this exception. Hope someone could figure it out! Thanks.
`D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV_Cache ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_0
W/native: [W TensorImpl.h:1408] Warning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (function operator())
E/AndroidRuntime: FATAL EXCEPTION: Thread-2
Process: org.pytorch.demo.imagesegmentation, PID: 25405
java.lang.IllegalStateException: Expected IValue type DictStringKey, actual type Tuple
at org.pytorch.IValue.preconditionType(IValue.java:332)
at org.pytorch.IValue.toDictStringKey(IValue.java:319)
at org.pytorch.imagesegmentation.MainActivity.run(MainActivity.java:125)
at java.lang.Thread.run(Thread.java:923)
I/Process: Sending signal. PID: 25405 SIG: 9`