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]: 1.7.0 Error with Caption #14328

Closed
4 of 6 tasks
sololll opened this issue Dec 16, 2023 · 1 comment · Fixed by #14330
Closed
4 of 6 tasks

[Bug]: 1.7.0 Error with Caption #14328

sololll opened this issue Dec 16, 2023 · 1 comment · Fixed by #14330
Labels
bug Report of a confirmed bug

Comments

@sololll
Copy link

sololll commented Dec 16, 2023

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

A1111 1.7.0,Ubuntu 22

Extras→Caption: Error

Steps to reproduce the problem

  1. Go to Extras→Caption
  2. Press Generate

What should have happened?

This operation was supposed to generate caption files, but it encountered an error.

What browsers do you use to access the UI ?

No response

Sysinfo

A1111 1.7.0
Ubuntu 22

Console logs

*** Error completing request
*** Arguments: ('task(wqgmrh67bas9e4t)', 2, None, None, '/root/xxx/img/t/', '/root/xxx/img/tB/', True, 0, 1, 512, 512, True, 'None', 'None', 0, False, 1, False, 1, 0, False, 0.9, 0.15, 0.5, False, False, 384, 768, 4096, 409600, 'Maximize area', 0.1, True, ['BLIP'], False, ['Horizontal'], False, 0.5, 0.2) {}
    Traceback (most recent call last):
      File "/root/xxx/stable-diffusion-webui/modules/call_queue.py", line 57, in f
        res = list(func(*args, **kwargs))
      File "/root/xxx/stable-diffusion-webui/modules/call_queue.py", line 36, in f
        res = func(*args, **kwargs)
      File "/root/xxx/stable-diffusion-webui/modules/postprocessing.py", line 132, in run_postprocessing_webui
        return run_postprocessing(*args, **kwargs)
      File "/root/xxx/stable-diffusion-webui/modules/postprocessing.py", line 73, in run_postprocessing
        scripts.scripts_postproc.run(initial_pp, args)
      File "/root/xxx/stable-diffusion-webui/modules/scripts_postprocessing.py", line 196, in run
        script.process(single_image, **process_args)
      File "/root/xxx/stable-diffusion-webui/scripts/postprocessing_caption.py", line 28, in process
        captions.append(shared.interrogator.generate_caption(pp.image))
      File "/root/xxx/stable-diffusion-webui/modules/interrogate.py", line 178, in generate_caption
        ])(pil_image).unsqueeze(0).type(self.dtype).to(devices.device_interrogate)
    AttributeError: 'str' object has no attribute 'to'

Additional information

No response

@sololll sololll added the bug-report Report of a bug, yet to be confirmed label Dec 16, 2023
@w-e-w w-e-w added the bug Report of a confirmed bug label Dec 16, 2023
w-e-w added a commit that referenced this issue Dec 16, 2023
@w-e-w w-e-w mentioned this issue Dec 16, 2023
4 tasks
@w-e-w
Copy link
Collaborator

w-e-w commented Dec 16, 2023

fix PR #14330

@w-e-w w-e-w linked a pull request Dec 16, 2023 that will close this issue
4 tasks
@catboxanon catboxanon removed the bug-report Report of a bug, yet to be confirmed label Dec 17, 2023
ruchej pushed a commit to ruchej/stable-diffusion-webui that referenced this issue Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Report of a confirmed bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants