-
Notifications
You must be signed in to change notification settings - Fork 40
Add Setup Shell Script for zsh #3
base: master
Are you sure you want to change the base?
Conversation
Setup shell script for zsh
setup_mac_zsh.sh
Outdated
|
|
||
| # In order for the requirements.txt packages to install correctly, functorch needs to be installed already. | ||
| # functorch will not successfully build without torch, but also won't build under the nightly build we use. | ||
| pip install torch==1.12.1 | ||
| pip install git+https://github.com/pytorch/functorch@a6e0e61242d2ed10287965c3febc426fd6abf5f9 | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines are no longer needed and can be removed, functorch is no longer listed as a requirement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! I'd already delete related code.
setup_mac_zsh.sh
Outdated
| python webui.py --precision full --no-half --opt-split-attention-v1 --use-cpu GFPGAN CodeFormer BSRGAN ESRGAN SCUNet | ||
| # Deactivate conda environment | ||
| conda deactivate | ||
| " > run_webui_mac.sh | ||
|
|
||
| # Give run permissions to the shell script | ||
| chmod +x run_webui_mac.sh | ||
|
|
||
| echo "=============================================" | ||
| echo "=============================================" | ||
| echo "==============MORE INFORMATION===============" | ||
| echo "=============================================" | ||
| echo "=============================================" | ||
| echo "If you want to run the web UI again, you can run the following command:" | ||
| echo "./stable-diffusion-webui/run_webui_mac.sh" | ||
| echo "or" | ||
| echo "cd stable-diffusion-webui && ./run_webui_mac.sh" | ||
| echo "=============================================" | ||
| echo "=============================================" | ||
| echo "=============================================" | ||
| echo "=============================================" | ||
|
|
||
|
|
||
| # Run the web UI | ||
| python webui.py --precision full --no-half --opt-split-attention-v1 --use-cpu GFPGAN CodeFormer BSRGAN ESRGAN SCUNet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can now remove --opt-split-attention-v1 from both python webui.py --precision full --no-half --opt-split-attention-v1 --use-cpu GFPGAN CodeFormer BSRGAN ESRGAN SCUNet so that the new default, InvokeAI's split attention, gets used. InvokeAI's split attention gives ~30% better performance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic Improvement. Thank for informing me to update.
|
Is there any specific reason why you'd want to run it using |
@dylancl This is because that |
The original setup script is for bash and causes some error when run the script via
source setup_mac.shin zsh.The –p option doesn’t mean the same thing to bash’s
readcommand and zsh'sreadcommand.