Help #12295
GzWorld
started this conversation in
Optimization
Help
#12295
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello ladies and Gentleman! Im definately knew to all of this but im a quick learner, so i believe!
So i setup Diffusionbee on my mac, Intel based 2016 model, and lets just say its not working so great! I have 8GB of ram on MacOs Monterey V. 12.6.8. Im debating if 16GB ram or maybe 24GB will help with all this ram, if this machine will even take it!
Im using 2.8 Ghz quad core Intel core I5, ive read its not that great but im just trying this out to see where I could go with this because I have some great creative ideas and my mind loves to run wild when it comes to creativity!
I installed upgraded terminal to zsh, installed stable difussion with python 3.10, made the mistake of installing it with 3.11, but after days of figuring out what problem I had because of errors, I was able to uninstall 3.11 and now in brew list shows 3.10. So when i run stable diffusion on the webui version, go to http://127.0.0.1:7860/, I installed the new sdxlbase/deliveratev2/reliberate/v15prined safetenders...
So when i open the webui...I noticed that when i click on the tabs to change the tenders especially using the new sdxlbase1...it took hours spinning to load...would put an image to image to make stable do its work and errors! nothing would come up and my zsh would not even move causing my computer to be slow asf! I would tell you what I put in but for that I will copy my webui.bat...but i rather just show anyone who could please help me out!
The following is my webui.bat.....
@echo off
if not defined PYTHON (set PYTHON=python)
if not defined VENV_DIR (set "VENV_DIR=%~dp0%venv")
set SD_WEBUI_RESTART=tmp/restart
set ERROR_REPORTING=FALSE
mkdir tmp 2>NUL
%PYTHON% -c "" >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :check_pip
echo Couldn't launch python
goto :show_stdout_stderr
:check_pip
%PYTHON% -mpip --help >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :start_venv
if "%PIP_INSTALLER_LOCATION%" == "" goto :show_stdout_stderr
%PYTHON% "%PIP_INSTALLER_LOCATION%" >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :start_venv
echo Couldn't install pip
goto :show_stdout_stderr
:start_venv
if ["%VENV_DIR%"] == ["-"] goto :skip_venv
if ["%SKIP_VENV%"] == ["1"] goto :skip_venv
dir "%VENV_DIR%\Scripts\Python.exe" >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :activate_venv
for /f "delims=" %%i in ('CALL %PYTHON% -c "import sys; print(sys.executable)"') do set PYTHON_FULLNAME="%%i"
echo Creating venv in directory %VENV_DIR% using python %PYTHON_FULLNAME%
%PYTHON_FULLNAME% -m venv "%VENV_DIR%" >tmp/stdout.txt 2>tmp/stderr.txt
if %ERRORLEVEL% == 0 goto :activate_venv
echo Unable to create venv in directory "%VENV_DIR%"
goto :show_stdout_stderr
:activate_venv
set PYTHON="%VENV_DIR%\Scripts\Python.exe"
echo venv %PYTHON%
:skip_venv
if [%ACCELERATE%] == ["True"] goto :accelerate
goto :launch
:accelerate
echo Checking for accelerate
set ACCELERATE="%VENV_DIR%\Scripts\accelerate.exe"
if EXIST %ACCELERATE% goto :accelerate_launch
:launch
%PYTHON% launch.py %*
if EXIST tmp/restart goto :skip_venv
pause
exit /b
:accelerate_launch
echo Accelerating
%ACCELERATE% launch --num_cpu_threads_per_process=6 launch.py
if EXIST tmp/restart goto :skip_venv
pause
exit /b
:show_stdout_stderr
echo.
echo exit code: %errorlevel%
for /f %%i in ("tmp\stdout.txt") do set size=%%~zi
if %size% equ 0 goto :show_stderr
echo.
echo stdout:
type tmp\stdout.txt
:show_stderr
for /f %%i in ("tmp\stderr.txt") do set size=%%~zi
if %size% equ 0 goto :show_stderr
echo.
echo stderr:
type tmp\stderr.txt
:endofscript
echo.
echo Launch unsuccessful. Exiting.
pause
The following is my webui-user.sh
#!/bin/bash
#########################################################
Uncomment and change the variables below to your need:#
#########################################################
Install directory without trailing slash
#install_dir="/home/$(whoami)"
Name of the subdirectory
#clone_dir="stable-diffusion-webui"
Commandline arguments for webui.py, for example: export COMMANDLINE_ARGS="--lowvram --opt-split-attention"
#export COMMANDLINE_ARGS=""
python3 executable
#python_cmd="python3"
git executable
#export GIT="git"
python3 venv without trailing slash (defaults to ${install_dir}/${clone_dir}/venv)
#venv_dir="venv"
script to launch to start the app
#export LAUNCH_SCRIPT="launch.py"
install command for torch
#export TORCH_COMMAND="pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113"
Requirements file to use for stable-diffusion-webui
#export REQS_FILE="requirements_versions.txt"
Fixed git repos
#export K_DIFFUSION_PACKAGE=""
#export GFPGAN_PACKAGE=""
Fixed git commits
#export STABLE_DIFFUSION_COMMIT_HASH=""
#export CODEFORMER_COMMIT_HASH=""
#export BLIP_COMMIT_HASH=""
Uncomment to enable accelerated launch
#export ACCELERATE="True"
Uncomment to disable TCMalloc
#export NO_TCMALLOC="True"
###########################################
DO YOU GUYS SEE ANY ISSUES HERE?
Do you recommend me changing anything?
How do i copy this infomation to my DiffusionBee local version so I dont have to use the web based format? Is that recommendable? Cant I just copy the same files in my Mac directory under stable-diffusion-webui and copy them to diffusionbee files and vuaaalaahhh?
Id greatly appreciate anyone who can give me some valuable input...im still learning but I did go to school for IT, mistake lol, and now getting into coding and AWS....
AND SORRY FOR THIS HUGE CHAPTER 1 PARAGRAPH!
KUDOS TO ALL OF YOU!
Beta Was this translation helpful? Give feedback.
All reactions