Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

got weird results from squeezenet model ? #296

Closed
bobby-chiu opened this issue Mar 15, 2018 · 4 comments
Closed

got weird results from squeezenet model ? #296

bobby-chiu opened this issue Mar 15, 2018 · 4 comments
Labels

Comments

@bobby-chiu
Copy link

i built test example with source code from examples/squeezenet.cpp, but got weird results with any images as below:

./test_ncnn plane.jpg

0 = 0.000000
0 = 0.000000
0 = 0.000000

i built test_ncnn with linking opencv3 and prebuilt libncnn.a using ndk13b, and below is my ndk makefile:
LOCAL_PATH := $(call my-dir)

#libncnn.a
include $(CLEAR_VARS)
LOCAL_MODULE := libncnn
LOCAL_SRC_FILES :=$(LOCAL_PATH)/../../arm64-v8a/libncnn.a
include $(PREBUILT_STATIC_LIBRARY)

#libomp.a
include $(CLEAR_VARS)
LOCAL_MODULE := libomp
LOCAL_SRC_FILES :=$(LOCAL_PATH)/../../arm64-v8a/libomp.a
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)
#opencv
OPENCV_INSTALL_MODULES := on
OPENCV_CAMERA_MODULES := off
#OPENCV_LIB_TYPE := SHARE

include ${LOCAL_PATH}/../../3rdparty/opencv/native/jni/OpenCV.mk

LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../include \
$(LOCAL_PATH)/../../3rdparty/opencv/native/jni/include \

LOCAL_SRC_FILES := $(LOCAL_PATH)/../../src/test.cpp \

LOCAL_STATIC_LIBRARIES += libncnn \
libomp

LOCAL_CFLAGS += -O0 -g

LOCAL_MODULE := test_ncnn
include $(BUILD_EXECUTABLE)

@nihui
Copy link
Member

nihui commented Mar 15, 2018

I may have made some mistakes during packing binary.
The prebuilt package has been removed currently.
sorry for the inconvenience. I will inform you once update occurs. :)

@nihui nihui added the bug label Mar 15, 2018
@bobby-chiu
Copy link
Author

@nihui, never mind for a known issue, this is also my laziness. Looking forward to the next released version. I will try to rebuild ncnn with source code in my environment.

@nihui
Copy link
Member

nihui commented Mar 16, 2018

package updated

@bobby-chiu
Copy link
Author

@nihui, excellent. I have tested the latest version just, the model is working. thanks
./test_ncnn plane.jpg
404 = 0.990238
908 = 0.004614
405 = 0.003835

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants