Skip to content
Projetos

nihui/ncnn-android-squeezenet

Ver no GitHub

Sobre

The squeezenet image classification android example

Design e mídia

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
0
em 7 dias
0
em 15 dias
0
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

ncnn-android-squeezenet

The squeezenet image classification

this is a sample ncnn android project, it depends on ncnn library only

https://github.com/Tencent/ncnn

https://github.com/nihui/mesa-turnip-android-driver (mesa turnip driver)

https://github.com/nihui/momoten (momoten driver)

android apk file download

https://github.com/nihui/ncnn-android-squeezenet/releases/latest

how to build and run

step1

https://github.com/Tencent/ncnn/releases

  • Download ncnn-YYYYMMDD-android-vulkan.zip or build ncnn for android yourself
  • Extract ncnn-YYYYMMDD-android-vulkan.zip into app/src/main/jni and change the ncnn_DIR path to yours in app/src/main/jni/CMakeLists.txt

step2

https://github.com/nihui/mesa-turnip-android-driver

  • Download mesa-turnip-android-XYZ.zip
  • Create directory app/src/main/jniLibs/arm64-v8a if not exists
  • Extract libvulkan_freedreno.so from mesa-turnip-android-XYZ.zip into app/src/main/jniLibs/arm64-v8a

step3

https://github.com/nihui/momoten/releases/latest

  • Download momoten-YYYYMMDD-android-<target>.zip for arm64-v8a-api21, armeabi-v7a-api14, x86-api14 and x86_64-api21
  • Extract lib/libmomoten.so into app/src/main/jniLibs/<abi> for each corresponding ABI (create directories if needed)
  • Select momoten in the GPU driver selector; a usable vendor OpenCL driver is required

step4

  • Open this project with Android Studio, build it and enjoy!

some notes

  • Android 5.0 (API 21) or newer is required
  • Turnip is only bundled for arm64-v8a and requires a compatible newer Android device
  • Select the GPU driver, then use the GPU button; CPU inference remains available when a driver cannot load

screenshot

Explore projetos relacionados

Carregando…