Skip to content

Commit 868264a

Browse files
committed
small changes
1 parent fd78899 commit 868264a

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

backends/model_converter/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ optimized_stable_diffusion/
33

44
convert_sd_model_bin
55
./convert_sd_model_bin
6+
convert_sd_model_bin/
7+
./convert_sd_model_bin/
68

79
HF_weights/
810
outputs/

backends/model_converter/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pyinstaller convert_model.py --onefile --noconfirm --clean
1+
pyinstaller convert_model.py --noconfirm --clean

backends/stable_diffusion_tf/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ cp stable_diffusion_tf/clip_tokenizer/bpe_simple_vocab_16e6.txt.gz ./dist/diffus
33

44
cp -r ../realesrgan_ncnn/models ./dist/diffusionbee_backend/models
55
cp ../realesrgan_ncnn/realesrgan_ncnn_macos ./dist/diffusionbee_backend/realesrgan_ncnn_macos
6-
cp ../model_converter/convert_sd_model_bin ./dist/diffusionbee_backend/convert_model
6+
cp -r ../model_converter/convert_sd_model_bin/m1 ./dist/diffusionbee_backend/convert_model

electron_app/src/native_functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ function add_custom_pytorch_models(pytorch_model_path, model_name, cb ){
463463
}
464464

465465
let out_path = path.join(homedir , ".diffusionbee" , "custom_models" , model_name+".tdict" );
466-
let bin_path = process.env.CONVERT_MODEL_BIN || path.join(path.dirname(__dirname), 'core' , 'convert_model' );
466+
let bin_path = process.env.CONVERT_MODEL_BIN || path.join(path.dirname(__dirname), 'core' , 'convert_model' , 'convert_model' );
467467

468468

469469
let proc = require('child_process').spawn( bin_path , [pytorch_model_path , out_path ]);

electron_app/vue.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = {
3131
"target": {
3232
"target": "dmg",
3333
"arch": [
34-
'arm64' , 'x64'
34+
process.env.BUILD_ARCH //'arm64' , 'x64'
3535
]
3636
}
3737
},

0 commit comments

Comments
 (0)