stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

Error with final step of most recent Google Collab

Open vonwolfe opened this issue 3 years ago • 6 comments

I receive an error when running the final step (step 4) of Google Collab. This was working 1 hour ago, no changes have been made on my side, and now the below error is appearing:

import sys sys.argv = ['webui.py', "--share", "--opt-split-attention"]

import webui webui.webui()

No checkpoints found. When searching for checkpoints, looked at:

  • file /content/stable-diffusion-webui/stable-diffusion-webui/model.ckpt
  • directory /content/stable-diffusion-webui/stable-diffusion-webui/models Can't run without a checkpoint. Find and place a .ckpt file into any of those locations. The program will exit.

NameError Traceback (most recent call last) in 2 sys.argv = ['webui.py', "--share", "--opt-split-attention"] 3 ----> 4 import webui 5 webui.webui()

2 frames /content/stable-diffusion-webui/stable-diffusion-webui/modules/sd_models.py in select_checkpoint() 81 print(f" - directory {os.path.abspath(shared.cmd_opts.ckpt_dir)}", file=sys.stderr) 82 print(f"Can't run without a checkpoint. Find and place a .ckpt file into any of those locations. The program will exit.", file=sys.stderr) ---> 83 exit(1) 84 85 checkpoint_info = next(iter(checkpoints_list.values()))

NameError: name 'exit' is not defined

vonwolfe avatar Sep 26 '22 20:09 vonwolfe

having the exact same issue

jwfeniello avatar Sep 27 '22 03:09 jwfeniello

No checkpoints found. When searching for checkpoints, looked at:

  • file /content/stable-diffusion-webui/stable-diffusion-webui/model.ckpt
  • directory /content/stable-diffusion-webui/stable-diffusion-webui/models Can't run without a checkpoint. Find and place a .ckpt file into any of those locations. The program will exit.

NameError Traceback (most recent call last) in 2 sys.argv = ['webui.py', "--share", "--opt-split-attention"] 3 ----> 4 import webui 5 webui.webui()

2 frames /content/stable-diffusion-webui/stable-diffusion-webui/modules/sd_models.py in select_checkpoint() 81 print(f" - directory {os.path.abspath(shared.cmd_opts.ckpt_dir)}", file=sys.stderr) 82 print(f"Can't run without a checkpoint. Find and place a .ckpt file into any of those locations. The program will exit.", file=sys.stderr) ---> 83 exit(1) 84 85 checkpoint_info = next(iter(checkpoints_list.values()))

NameError: name 'exit' is not defined

jwfeniello avatar Sep 27 '22 03:09 jwfeniello

having the exact same issue as you, have you found the solution?

jonan10075 avatar Sep 28 '22 05:09 jonan10075

Yes make sure you press restart runtime after the step which asks to do it in bold and then continue

Sent from my iPhone

On 28 Sep 2022, at 06:31, jonan10075 @.***> wrote:

 having the exact same issue as you, have you found the solution?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

vonwolfe avatar Sep 28 '22 06:09 vonwolfe

exactly, just as you said, thanks, @vonwolfe

jonan10075 avatar Sep 28 '22 08:09 jonan10075

Yes make sure you press restart runtime after the step which asks to do it in bold and then continue Sent from my iPhone On 28 Sep 2022, at 06:31, jonan10075 @.***> wrote:  having the exact same issue as you, have you found the solution? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

Which version/flavor of colab are you using where this worked? For example is it one of these five? https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Online-Services

I have been checking versions and none of the ones I've tried so far have any steps that say to restart the runtime (and just restarting and going through everything from the beginning again doesn't solve the problem).

Ezekiel-Kruglick avatar Nov 12 '22 04:11 Ezekiel-Kruglick

Reopen or create new issue if the problem is still present.

mezotaken avatar Jan 16 '23 18:01 mezotaken