Open Badaniao opened 3 years ago
自定义yolov5s_custom_op: https://zhuanlan.zhihu.com/p/275989233?utm_source=qq
自定义yolov5s_custom_op: https://zhuanlan.zhihu.com/p/275989233?utm_source=qq
谢谢回复!我就是看的这两个博客操作的,我是在ubuntu下转的,请问转完后直接替换掉原来的bin和param文件,并且改输出和yolov5.cpp就可以用了吗?
修改 .h 里面的,.cpp 正常是不需要修改
修改 .h 里面的,.cpp 正常是不需要修改
好的谢谢,那我在ubuntu下转换使用的那些ncnn和我android studio里面的ncnn不同也没关系吗,现在还是会闪退
没看懂
@Badaniao 你好,请问你解决了吗,我部署的是 yolact
模型,目前跟你遇到的是同样的问题,转换好的 param
和 bin
文件在 android studio 中替换后同样没有结果,并且几秒钟后直接闪退。
2021-03-10 17:08:28.596 5661-5661/? I/com.wzt.yolov5: Not late-enabling -Xcheck:jni (already on) 2021-03-10 17:08:28.639 5661-5661/? I/com.wzt.yolov5: Unquickening 12 vdex files! 2021-03-10 17:08:28.643 5661-5661/? W/com.wzt.yolov5: Unexpected CPU variant for X86 using defaults: x86 2021-03-10 17:08:28.648 5661-5661/? I/ndk_translation: Initialized NDK translation (armv7l), version 0.2.2 2021-03-10 17:08:28.921 5661-5661/com.wzt.yolov5 D/ApplicationLoaders: Returning zygote-cached class loader: /system/framework/android.test.base.jar 2021-03-10 17:08:29.066 5661-5661/com.wzt.yolov5 D/NetworkSecurityConfig: No Network Security Config specified, using platform default 2021-03-10 17:08:29.066 5661-5661/com.wzt.yolov5 D/NetworkSecurityConfig: No Network Security Config specified, using platform default 2021-03-10 17:08:29.070 5661-5661/com.wzt.yolov5 I/MultiDex: VM with version 2.1.0 has multidex support 2021-03-10 17:08:29.070 5661-5661/com.wzt.yolov5 I/MultiDex: Installing application 2021-03-10 17:08:29.070 5661-5661/com.wzt.yolov5 I/MultiDex: VM has multidex support, MultiDex support library is disabled. 2021-03-10 17:08:29.071 5661-5661/com.wzt.yolov5 D/Camera2Initializer: CameraX initializing with Camera2 ... 2021-03-10 17:08:29.078 5661-5661/com.wzt.yolov5 I/CameraManagerGlobal: Connecting to camera service 2021-03-10 17:08:29.096 5661-5661/com.wzt.yolov5 D/CameraRepository: Added camera: 0 2021-03-10 17:08:29.109 5661-5697/com.wzt.yolov5 D/UseCaseAttachState: Active and online use case: [] for camera: 0 2021-03-10 17:08:29.110 5661-5661/com.wzt.yolov5 D/CameraRepository: Added camera: 1 2021-03-10 17:08:29.113 5661-5697/com.wzt.yolov5 D/UseCaseAttachState: Active and online use case: [] for camera: 1 2021-03-10 17:08:29.127 5661-5700/com.wzt.yolov5 D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so 2021-03-10 17:08:29.130 5661-5700/com.wzt.yolov5 D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so 2021-03-10 17:08:29.133 5661-5700/com.wzt.yolov5 D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so 2021-03-10 17:08:29.202 5661-5661/com.wzt.yolov5 W/com.wzt.yolov5: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed) 2021-03-10 17:08:29.202 5661-5661/com.wzt.yolov5 W/com.wzt.yolov5: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed) 2021-03-10 17:08:29.365 5661-5698/com.wzt.yolov5 D/HostConnection: HostConnection::get() New Host Connection established 0xf1a179a0, tid 5698 2021-03-10 17:08:29.370 5661-5698/com.wzt.yolov5 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_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_3_0 2021-03-10 17:08:29.372 5661-5698/com.wzt.yolov5 W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... 2021-03-10 17:08:29.386 5661-5698/com.wzt.yolov5 D/EGL_emulation: eglCreateContext: 0xf1a18260: maj 3 min 0 rcv 3 2021-03-10 17:08:29.404 5661-5698/com.wzt.yolov5 D/EGL_emulation: eglMakeCurrent: 0xf1a18260: ver 3 0 (tinfo 0xf1d32430) (first time) 2021-03-10 17:08:29.419 5661-5698/com.wzt.yolov5 I/Gralloc4: mapper 4.x is not supported 2021-03-10 17:08:29.446 5661-5698/com.wzt.yolov5 D/HostConnection: createUnique: call 2021-03-10 17:08:29.446 5661-5698/com.wzt.yolov5 D/HostConnection: HostConnection::get() New Host Connection established 0xf1a173f0, tid 5698 2021-03-10 17:08:29.446 5661-5698/com.wzt.yolov5 D/goldfish-address-space: allocate: Ask for block of size 0x100 2021-03-10 17:08:29.446 5661-5698/com.wzt.yolov5 D/goldfish-address-space: allocate: ioctl allocate returned offset 0x3fda03000 size 0x2000 2021-03-10 17:08:29.450 5661-5698/com.wzt.yolov5 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_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_3_0