Browse Source

Update 'source.md'

天问 1 year ago
parent
commit
992ef066f3
1 changed files with 7 additions and 3 deletions
  1. 7 3
      source.md

+ 7 - 3
source.md

@@ -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
 ```
+
+