ModernUI
Gallery
Scheduler
Standard
Gallery
Scheduler
Source code
https://github.com/liutyi/sdnext (fork of https://github.com/vladmandic/sdnext)
https://github.com/liutyi/sdnext-scheduler (fork of https://github.com/SipherAGI/sd-webui-agent-scheduler)
docker containers
https://hub.docker.com/r/liutyi/sdnext-ipex docker images of forks
Fork and customize example
SD.Next initial customization example
Fork and make branch with some customiztion
# pytorch branch
cd ~/repo; rm -Rf sdnext; git clone https://github.com/liutyi/sdnext.git;
cd sdnext;
git config pull.rebase true;
git pull;
git checkout dev;
git push origin :pytorch;
git push origin :ipex;
git branch --copy dev pytorch
git branch --copy dev ipex
git switch pytorch
# Add scheduler
git submodule add https://github.com/liutyi/sdnext-scheduler extensions-builtin/sdnext-scheduler
#fix ipexrun to support 2.7.10
sed -i 's/exec ipexrun.*/exec ipexrun xpu launch.py "\$@"/g' webui.sh
#long filenames
sed -i 's/"samples_filename_pattern":.*/"samples_filename_pattern": OptionInfo("[date]-[seq]-[model_name]-[width]x[height]-Seed[seed]-CFG[cfg]-AG[pag]-STEP[steps]", "Images filename pattern", component_args=hide_dirs),/g' modules/shared.py
#long UI timeout
sed -i 's/"ui_request_timeout":.*/"ui_request_timeout": OptionInfo(300000, "UI request timeout", gr.Slider, {"minimum": 1000, "maximum": 300000, "step": 10}),/g' modules/shared.py
#default to Standard theme
sed -i 's/""theme_type":.*/"theme_type": OptionInfo("Standard", "Theme type", gr.Radio, {"choices": ["Modern", "Standard", "None"]}),/g' modules/shared.py
git add .
git commit -m "Standart theme, long filenames, long UI timeout, ipexrun fix"
git push origin pytorch
git switch ipex
# Add scheduler
git submodule add https://github.com/liutyi/sdnext-scheduler extensions-builtin/sdnext-scheduler
#fix ipexrun to support 2.7.10
sed -i 's/exec ipexrun.*/exec ipexrun xpu launch.py "\$@"/g' webui.sh
#long filenames
sed -i 's/"samples_filename_pattern":.*/"samples_filename_pattern": OptionInfo("[date]-[seq]-[model_name]-[width]x[height]-Seed[seed]-CFG[cfg]-AG[pag]-STEP[steps]", "Images filename pattern", component_args=hide_dirs),/g' modules/shared.py
#long UI timeout
sed -i 's/"ui_request_timeout":.*/"ui_request_timeout": OptionInfo(300000, "UI request timeout", gr.Slider, {"minimum": 1000, "maximum": 300000, "step": 10}),/g' modules/shared.py
#default to Standard theme
sed -i 's/""theme_type":.*/"theme_type": OptionInfo("Standard", "Theme type", gr.Radio, {"choices": ["Modern", "Standard", "None"]}),/g' modules/shared.py
git add .
git commit -m "Standart theme, long filenames, long UI timeout, ipexrun fix"
git push origin ipex
# for ipex branch that is also installer to be fixed (manually)
keep branches in sync with dev
cd ~/repo; rm -Rf sdnext; git clone https://github.com/liutyi/sdnext.git; cd sdnext; git config pull.rebase true; git pull; git checkout dev && git pull && git checkout pytorch && git pull && git fetch && git pull origin dev && git pull origin pytorch && git push origin pytorch && cd ~/repo/sdnext && git pull && git checkout dev && git pull && git checkout ipex && git pull && git fetch && git pull origin dev && git pull origin ipex && git push origin ipex



