Skip to content

Commit

Permalink
Revert "Offloading custom work"
Browse files Browse the repository at this point in the history
This reverts commit f3d1631.

This work has been offloaded now into an extension called Prompt Control.
  • Loading branch information
JaredTherriault committed Sep 3, 2023
1 parent f3d1631 commit 8f3b02f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 39 deletions.
29 changes: 0 additions & 29 deletions modules/custom_statics.py

This file was deleted.

8 changes: 0 additions & 8 deletions modules/generation_parameters_copypaste.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,14 +370,6 @@ def paste_func(prompt):
prompt = file.read()

params = parse_generation_parameters(prompt)

# This sanitizes unsavory prompt words when copying from another image
# for my own sanity. This is not intended to be contributed to the main repo,
# it's just so I don't have to see anything I'm not interested in when batch
# reproducing images from civit.ai or elsewhere when working on loras
# todo: make this work with the callback instead of forcing it here, this can be an extension when I feel like putting it together :D
from modules import custom_statics
params = custom_statics.CustomStatics.mass_replace_strings(params)
script_callbacks.infotext_pasted_callback(prompt, params)
res = []

Expand Down
4 changes: 2 additions & 2 deletions webui-user.bat
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@echo off
set TEMP=G:\SD-temp

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS= --xformers
set COMMANDLINE_ARGS=

call webui.bat

0 comments on commit 8f3b02f

Please sign in to comment.