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

PNG Info "Send to" Errors #7

Closed
Iroarar opened this issue Apr 18, 2023 · 2 comments
Closed

PNG Info "Send to" Errors #7

Iroarar opened this issue Apr 18, 2023 · 2 comments

Comments

@Iroarar
Copy link

Iroarar commented Apr 18, 2023

Hi, if I have used this script on a created image I can load it in PNG info but from there I am unable to load it back in with Send to txt2img and etc. The prompt fields become errors.

This is what the console prints when this happens

File "V:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict
    output = await app.get_blocks().process_api(
  File "V:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1075, in process_api
    result = await self.call_function(
  File "V:\AI\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 884, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "V:\AI\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "V:\AI\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "V:\AI\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "V:\AI\stable-diffusion-webui\modules\generation_parameters_copypaste.py", line 347, in paste_func
    params = parse_generation_parameters(prompt)
  File "V:\AI\stable-diffusion-webui\modules\generation_parameters_copypaste.py", line 265, in parse_generation_parameters
    v = v[1:-1] if v[0] == '"' and v[-1] == '"' else v
IndexError: string index out of range

Thanks for any help.

@Bing-su
Copy link
Owner

Bing-su commented Apr 18, 2023

Fixed.

This issue occurred when
dd_prompt or dd_neg_prompt was left blank and there were no newlines(\n) in the prompt. (because it parses based on \n).

I didn't catch it because I always put newlines in the prompt. 😅

@Iroarar
Copy link
Author

Iroarar commented Apr 18, 2023

Thanks, with the new update it works fine now. 👍

@Iroarar Iroarar closed this as completed Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants