Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 404 error when trying to generate image #12196

Closed
1 task done
atirjavid opened this issue Jul 31, 2023 · 1 comment
Closed
1 task done

[Bug]: 404 error when trying to generate image #12196

atirjavid opened this issue Jul 31, 2023 · 1 comment
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@atirjavid
Copy link

atirjavid commented Jul 31, 2023

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

Trying to generate img2img and I get this error:

    Traceback (most recent call last):
      File "/home/stoned/stable-diffusion/stable-diffusion-webui/modules/call_queue.py", line 58, in f
        res = list(func(*args, **kwargs))
      File "/home/stoned/stable-diffusion/stable-diffusion-webui/modules/call_queue.py", line 37, in f
        res = func(*args, **kwargs)
      File "/home/stoned/stable-diffusion/stable-diffusion-webui/modules/img2img.py", line 232, in img2img
        processed = process_images(p)
      File "/home/stoned/stable-diffusion/stable-diffusion-webui/modules/processing.py", line 677, in process_images
        res = process_images_inner(p)
      File "/home/stoned/stable-diffusion/stable-diffusion-webui/modules/processing.py", line 738, in process_images_inner
        sd_vae_approx.model()
      File "/home/stoned/stable-diffusion/stable-diffusion-webui/modules/sd_vae_approx.py", line 53, in model
        download_model(model_path, 'https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/download/v1.0.0-pre/' + model_name)
      File "/home/stoned/stable-diffusion/stable-diffusion-webui/modules/sd_vae_approx.py", line 39, in download_model
        torch.hub.download_url_to_file(model_url, model_path)
      File "/home/stoned/stable-diffusion/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/hub.py", line 611, in download_url_to_file
        u = urlopen(req)
      File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
        return opener.open(url, data, timeout)
      File "/usr/lib/python3.10/urllib/request.py", line 525, in open
        response = meth(req, response)
      File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
        response = self.parent.error(
      File "/usr/lib/python3.10/urllib/request.py", line 563, in error
        return self._call_chain(*args)
      File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
        result = func(*args)
      File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
        raise HTTPError(req.full_url, code, msg, hdrs, fp)
    urllib.error.HTTPError: HTTP Error 404: Not Found

Steps to reproduce the problem

  1. Go to .... img2img
  2. Press generate
  3. Error

What should have happened?

Normal behavior.

Version or Commit where the problem happens

commit 68f336b (HEAD -> master, tag: v1.5.1, origin/master, origin/HEAD)

What Python version are you running on ?

Python 3.10.x

What platforms do you use to access the UI ?

Linux

What device are you running WebUI on?

Nvidia GPUs (RTX 20 above)

Cross attention optimization

Automatic

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

# Commandline arguments for webui.py, for example: export COMMANDLINE_ARGS="--medvram --opt-split-attention"
#export COMMANDLINE_ARGS=""

List of extensions

 Extension	URL	Branch	Version	Date	Update
--sd-webui-ar-plus	https://github.com/LEv145/--sd-webui-ar-plus	main	a7ac063a	Sun Jul 30 11:45:00 2023	unknown
DreamArtist-sd-webui-extension	https://github.com/7eu7d7/DreamArtist-sd-webui-extension.git	master	12f80775	Mon Apr 24 05:53:26 2023	unknown
Stable-Diffusion-Webui-Civitai-Helper	https://github.com/butaixianran/Stable-Diffusion-Webui-Civitai-Helper.git	main	920ca326	Tue May 23 11:53:22 2023	unknown
canvas-zoom	https://github.com/richrobber2/canvas-zoom.git	main	be66fb61	Sat Jul 29 12:55:22 2023	unknown
sd-dynamic-prompts	https://github.com/adieyal/sd-dynamic-prompts.git	main	57dc35f6	Sun Jul 30 22:34:45 2023	unknown
sd-extension-system-info	https://github.com/vladmandic/sd-extension-system-info.git	main	9d3c0ca0	Fri Jul 14 19:46:48 2023	unknown
sd-webui-ar	https://github.com/alemelis/sd-webui-ar.git	main	04ee2c6c	Thu Jul 6 10:14:29 2023	unknown
sd-webui-inpaint-anything	https://github.com/Uminosachi/sd-webui-inpaint-anything.git	main	0dd86071	Sun Jul 30 10:29:49 2023	unknown
sd-webui-prompt-history	https://github.com/namkazt/sd-webui-prompt-history	main	bde3e95e	Sat Jul 15 06:23:45 2023	unknown
sd-webui-segment-anything	https://github.com/continue-revolution/sd-webui-segment-anything.git	master	5df716be	Wed Jul 26 23:06:35 2023	unknown
sd_dreambooth_extension	https://github.com/d8ahazard/sd_dreambooth_extension.git	main	c2a5617c	Sat Jul 8 13:35:47 2023	unknown
stable-diffusion-webui-images-browser	https://github.com/AlUlkesh/stable-diffusion-webui-images-browser.git	main	b984cdd1	Tue Jul 25 06:51:27 2023	unknown
LDSR	built-in	None		Mon Jul 31 02:58:27 2023	
Lora	built-in	None		Mon Jul 31 02:58:27 2023	
ScuNET	built-in	None		Mon Jul 31 02:58:27 2023	
SwinIR	built-in	None		Mon Jul 31 02:58:27 2023	
canvas-zoom-and-pan	built-in	None		Mon Jul 31 02:58:27 2023	
extra-options-section	built-in	None		Mon Jul 31 02:58:27 2023	
mobile	built-in	None		Mon Jul 31 02:58:27 2023	
prompt-bracket-checker	built-in	None		Mon Jul 31 02:58:27 2023	

Console logs

Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]
Version: v1.5.1
Commit hash: 68f336bd994bed5442ad95bad6b6ad5564a5409a
Installing requirements
Launching Web UI with arguments: 
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
*** "Disable all extensions" option was set, will only load built-in extensions ***
Loading weights [40f9701da0] from /home/stoned/stable-diffusion/stable-diffusion-webui/models/Stable-diffusion/uberRealisticPornMerge_urpmv13.safetensors
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 10.5s (launcher: 6.5s, import torch: 1.6s, import gradio: 0.5s, setup paths: 0.4s, other imports: 0.3s, opts onchange: 0.3s, load scripts: 0.4s, create ui: 0.3s).
Creating model from config: /home/stoned/stable-diffusion/stable-diffusion-webui/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying attention optimization: Doggettx... done.
Model loaded in 2.7s (load weights from disk: 0.4s, create model: 0.5s, apply weights to model: 0.5s, apply half(): 0.4s, move model to device: 0.7s, calculate empty prompt: 0.1s).
Downloading VAEApprox model to: /home/stoned/stable-diffusion/stable-diffusion-webui/models/VAE-approx/model.pt
*** Error completing request
*** Arguments: ('task(uzdo6v24a5dgmd2)', 0, 'PROMPT_HERE', [], <PIL.Image.Image image mode=RGBA size=512x640 at 0x7F572CF95000>, None, None, None, None, None, None, 64, 0, 4, 0, 1, True, False, 1, 1, 10, 1.5, 0.7, 3814144952.0, -1.0, 0, 0, 0, False, 0, 640, 512, 1, 0, 0, 32, 0, '', '', '', [], False, [], '', <gradio.routes.Request object at 0x7f572cf0cb80>, 0, '<ul>\n<li><code>CFG Scale</code> should be 2 or lower.</li>\n</ul>\n', True, True, '', '', True, 50, True, 1, 0, False, 4, 0.5, 'Linear', 'None', '<p style="margin-bottom:0.75em">Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8</p>', 128, 8, ['left', 'right', 'up', 'down'], 1, 0.05, 128, 4, 0, ['left', 'right', 'up', 'down'], False, False, 'positive', 'comma', 0, False, False, '', '<p style="margin-bottom:0.75em">Will upscale the image by the selected scale factor; use width and height sliders to set tile size</p>', 64, 0, 2, 1, '', [], 0, '', [], 0, '', [], True, False, False, False, 0) {}
    Traceback (most recent call last):
      File "/home/stoned/stable-diffusion/stable-diffusion-webui/modules/call_queue.py", line 58, in f
        res = list(func(*args, **kwargs))
      File "/home/stoned/stable-diffusion/stable-diffusion-webui/modules/call_queue.py", line 37, in f
        res = func(*args, **kwargs)
      File "/home/stoned/stable-diffusion/stable-diffusion-webui/modules/img2img.py", line 232, in img2img
        processed = process_images(p)
      File "/home/stoned/stable-diffusion/stable-diffusion-webui/modules/processing.py", line 677, in process_images
        res = process_images_inner(p)
      File "/home/stoned/stable-diffusion/stable-diffusion-webui/modules/processing.py", line 738, in process_images_inner
        sd_vae_approx.model()
      File "/home/stoned/stable-diffusion/stable-diffusion-webui/modules/sd_vae_approx.py", line 53, in model
        download_model(model_path, 'https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/download/v1.0.0-pre/' + model_name)
      File "/home/stoned/stable-diffusion/stable-diffusion-webui/modules/sd_vae_approx.py", line 39, in download_model
        torch.hub.download_url_to_file(model_url, model_path)
      File "/home/stoned/stable-diffusion/stable-diffusion-webui/venv/lib/python3.10/site-packages/torch/hub.py", line 611, in download_url_to_file
        u = urlopen(req)
      File "/usr/lib/python3.10/urllib/request.py", line 216, in urlopen
        return opener.open(url, data, timeout)
      File "/usr/lib/python3.10/urllib/request.py", line 525, in open
        response = meth(req, response)
      File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
        response = self.parent.error(
      File "/usr/lib/python3.10/urllib/request.py", line 563, in error
        return self._call_chain(*args)
      File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
        result = func(*args)
      File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
        raise HTTPError(req.full_url, code, msg, hdrs, fp)
    urllib.error.HTTPError: HTTP Error 404: Not Found


---

Additional information

No response

@atirjavid atirjavid added the bug-report Report of a bug, yet to be confirmed label Jul 31, 2023
@atirjavid atirjavid changed the title [Bug]: [Bug]: 404 error when trying to generate image Jul 31, 2023
@w-e-w
Copy link
Collaborator

w-e-w commented Jul 31, 2023

#12193

@w-e-w w-e-w closed this as completed Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

2 participants