Skip to content

Commit

Permalink
Fixed to handle path with space in batch,shell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rupeshs committed Oct 21, 2023
1 parent 74c1d33 commit f615eba
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
env
*.bak
*.pyc
__pycache__
results
2 changes: 1 addition & 1 deletion install.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
%~dp0tools\windows\micromamba.exe -r %~dp0env create -y -f %~dp0environment.yml
"%~dp0tools\windows\micromamba.exe" -r "%~dp0env" create -y -f "%~dp0environment.yml"
echo Env installation completed.
pause
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
BASEDIR=$(pwd)
chmod +x $BASEDIR/tools/linux/micromamba
chmod +x "$BASEDIR/tools/linux/micromamba"
chmod +x start.sh
$BASEDIR/tools/linux/micromamba -r $BASEDIR/env create -y -f $BASEDIR/environment.yml
$BASEDIR/tools/linux/micromamba shell init -s bash -p $BASEDIR/umamba
"$BASEDIR/tools/linux/micromamba" -r "$BASEDIR/env" create -y -f "$BASEDIR/environment.yml"
"$BASEDIR/tools/linux/micromamba" shell init -s bash -p "$BASEDIR/umamba"
read -n1 -r -p "FastSD CPU installation completed,press any key to continue..." key
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def create_about_tab(self):
self.label = QLabel()
self.label.setAlignment(Qt.AlignCenter)
self.label.setText(
"""<h1>FastSD CPU v1.0.0 beta</h1>
"""<h1>FastSD CPU v1.0.0 beta 2</h1>
<h3>(c)2023 - Rupesh Sreeraman</h3>
<h3>Faster stable diffusion on CPU</h3>
<h3>Based on Latent Consistency Models</h3>
Expand Down
4 changes: 2 additions & 2 deletions start.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
echo Starting fastsdcpu
cd %~dp0env\condabin\
cd "%~dp0env\condabin\"
call activate.bat
micromamba activate %~dp0env\envs\fastsd-env && python %~dp0main.py
micromamba activate "%~dp0env\envs\fastsd-env" && python "%~dp0main.py"

0 comments on commit f615eba

Please sign in to comment.