Skip to content

Commit

Permalink
kill() missing ... bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
etherealxx committed Feb 11, 2024
1 parent 17d54af commit 16ab2d3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Huge thanks to [camenduru](https://github.com/camenduru), without him this colab
Read [here](https://github.com/etherealxx/volatile-concentration-localux-colab/blob/main/error403guide.md) for guide to fix it.

### 🆙 Latest Update:
- 12/01/2024 (February): Using camenduru's v2.7 branch to fix [this issue](https://github.com/camenduru/stable-diffusion-webui-colab/issues/494). Using `--disable-model-loading-ram-optimization` to fix another issue.
- 10/01/2024 (February): Gradio version bump to v3.41.2. Updated `choosemodel4.py` to exclude camenduru's 'run' colab. Added `httpx` pip install. Merging the September branch (lol i forgot)
- 10/09/2023 (September): Added `sd-webui-reactor` (roop alternative) as optional choosable extension. `additionalextensions.txt` now support running bash code if an extension is selected (mostly for dependencies).

Expand Down
13 changes: 12 additions & 1 deletion camendurucolab3.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@ def pickleload(prevvalue, inputfile):

#camendururepo = 'camenduru/stable-diffusion-webui'
if camendururepo in stripped_line and not '/content/volatile-concentration-localux' in stripped_line:
if camendururepo in stripped_line and (stripped_line.find(camendururepo) + len(camendururepo) == len(stripped_line) or stripped_line[stripped_line.find(camendururepo) + len(camendururepo)] in [' ', '\n']):

# Attempt to fix `TypeError: kill() missing 1 required positional argument: 'self'` issue
if "-b v2.4" in stripped_line:
stripped_line = stripped_line.replace("-b v2.4", "-b v2.7")

if (stripped_line.find(camendururepo) + len(camendururepo) == len(stripped_line) or stripped_line[stripped_line.find(camendururepo) + len(camendururepo)] in [' ', '\n']):
stripped_line += ' /content/volatile-concentration-localux'
# if currentbranch == "lite":
# if "https://download.pytorch.org/whl/cu116" in stripped_line and not "torchmetrics==0.11.4" in stripped_line:
Expand Down Expand Up @@ -200,6 +205,12 @@ def addlineandcheck(name, line):
# rulesbroken(linetoexecute_part1)
# elif parttoexecute == 'part2':
# print("" + "part2" + "")

# print("linetoexecute_part2: " + str(linetoexecute_part2))
# print("installextensions: " + str(installextensions))
# print("linetoexecute_part2_2: " + str(linetoexecute_part2_2))
# print("linetoexecute_part3: " + str(linetoexecute_part3))

rulesbroken(linetoexecute_part2)
# rulesbroken(linetoexecute_part2_1) # Do not use this, installextensions is linetoexecute_part2_1
# print("" + "part2_1" + "")
Expand Down
5 changes: 3 additions & 2 deletions volatile_concentration_localux_colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"source": [
"##***Project `VCL-colab`***\n",
"### All camenduru colab in one spot, synced in realtime\n",
"###### Last time updated: Feb 10, 24\n",
"###### Last time updated: Feb 12, 24\n",
"###### (something doesn't work properly? Make sure you use the [latest version](https://colab.research.google.com/github/etherealxx/volatile-concentration-localux-colab/blob/main/volatile_concentration_localux_colab.ipynb), or [report a bug](https://github.com/etherealxx/volatile-concentration-localux-colab/issues).)"
]
},
Expand Down Expand Up @@ -84,6 +84,7 @@
"!git clone https://github.com/etherealxx/volatile-concentration-localux-colab /content/vcltools\n",
"!pip install -q gradio==3.41.2\n",
"!pip install -q pastebin-replace httpx==0.24.1\n",
"from pastebin_replace import pbreplace\n",
"\n",
"emptymodel = False\n",
"\n",
Expand Down Expand Up @@ -404,7 +405,7 @@
"!echo -n {start_colab} > /content/volatile-concentration-localux/static/colabTimer.txt\n",
"!wget -q https://raw.githubusercontent.com/etherealxx/batchlinks-webui/main/notification.mp3 -P /content/volatile-concentration-localux\n",
"\n",
"!python launch.py --listen --xformers --enable-insecure-extension-access --theme dark --gradio-queue --multiple"
"!python launch.py --listen --xformers --enable-insecure-extension-access --theme dark --gradio-queue --multiple --disable-model-loading-ram-optimization"
]
},
{
Expand Down

0 comments on commit 16ab2d3

Please sign in to comment.