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

K70 pro(8gen3)中ONNX分支无法运行,adb异常中断 #2

Open
caofx0418 opened this issue Mar 16, 2024 · 2 comments
Open

K70 pro(8gen3)中ONNX分支无法运行,adb异常中断 #2

caofx0418 opened this issue Mar 16, 2024 · 2 comments

Comments

@caofx0418
Copy link

步骤:

  1. 进入 $ROOT/app/src/main/cpp,运行[opencv.sh],进入 $ROOT/app/src/main/cpp/boost,在[boost.sh],AS中编译APP成功

2.拷贝onnx模型到app/src/main/assets/stable_diffusion/onnx/目录,如下目录结构:
XiaoMiStableDiffusion_ONNX/app/src/main/assets# tree
.
└── stable_diffusion
├── onnx
│   ├── text_encoder_fp16.ort
│   ├── unet_fp16.ort
│   └── vae_decoder_fp16.ort
└── utils
├── log_sigmas.bin
├── merges.txt
└── vocab.txt

3.AS 安装和运行APP,ADB device异常退出,预计原因:APK过大超过1.8G

@billlight
Copy link
Collaborator

可以尝试使用Build生成APK后,adb install apk进行安装

@caofx0418
Copy link
Author

可以尝试使用Build生成APK后,adb install apk进行安装

发现小米的几款手机adb都有这个通病,把模型文件放置到/data/local/tmp下,修改源码中ModelPath后问题解决

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

No branches or pull requests

2 participants