|
@@ -34,14 +34,16 @@ git clone https://github.com/alibaba/MNN.git
|
|
|
cd MNN
|
|
|
mkdir build
|
|
|
cmake -DMNN_BUILD_OPENCV=ON -DMNN_IMGCODECS=ON ..
|
|
|
-make -j8
|
|
|
-# 编译生成 libMNN.so文件
|
|
|
-cp libMNN.so express/libMNN_Express.so tools/cv/libMNNOpenCV.so /path/to/stable-diffusion-mnn/libs
|
|
|
|
|
|
+# 编译生成 libMNN.so 文件
|
|
|
+make -j8
|
|
|
```
|
|
|
|
|
|
|
|
|
```
|
|
|
+git clone https://github.com/wangzhaode/stable-diffusion-mnn.git
|
|
|
+cp libMNN.so express/libMNN_Express.so tools/cv/libMNNOpenCV.so /path/to/stable-diffusion-mnn/libs
|
|
|
+
|
|
|
# 下载权重
|
|
|
cd resource
|
|
|
wget https://github.com/wangzhaode/stable-diffusion-mnn/releases/download/v0.1/text_encoder.mnn
|
|
@@ -57,3 +59,5 @@ make -j4
|
|
|
[##################################################] [100%] [iter time: 411.441000 ms]
|
|
|
SUCCESS! write to demo.jpg
|
|
|
```
|
|
|
+
|
|
|
+
|