OedoSoldier / sd-webui-image-sequence-toolkit

Extension for AUTOMATIC111's WebUI
Apache License 2.0
561 stars 41 forks source link

Error with deepdanbooru attribute in enhanced_img2img.py #31

Open Eagle07-Sudo opened 1 year ago

Eagle07-Sudo commented 1 year ago

Issue Description

When attempting to run the famous V1111 fork of the Automatic1111, I encountered an error with the deepdanbooru attribute in the enhanced_img2img.py module. The setup.log displayed the following error message:

Module load: C:\AI\V1111\extensions\enhanced-img2img\scripts\enhanced_img2img.py: AttributeError
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ C:\AI\V1111\modules\script_loading.py:10 in load_module                                                              │
│                                                                                                                      │
│    9 │   try:                                                                                                        │
│ ❱ 10 │   │   module_spec.loader.exec_module(module)                                                                  │
│   11 │   except Exception as e:                                                                                      │
│ in exec_module:883                                                                                                   │
│ in _call_with_frames_removed:241                                                                                     │
│                                                                                                                      │
│ C:\AI\V1111\extensions\enhanced-img2img\scripts\enhanced_img2img.py:22 in <module>                                   │
│                                                                                                                      │
│    21 from modules.sd_hijack import model_hijack                                                                     │
│ ❱  22 if cmd_opts.deepdanbooru:                                                                                      │
│    23 │   import modules.deepbooru as deepbooru                                                                      │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'Namespace' object has no attribute 'deepdanbooru'

After posting my issue on Vlad's GitHub repository, Vladmandic responded that the cause of the error was likely due to the sd-webui-image-sequence-toolkit extension. Vladmandic advised updating the extension since it included a command line flag "--deepdanbooru" that had no function and had been removed as it was useless..

Steps to Reproduce:

  1. Clone V1111 repository.
  2. Install the sd-webui-image-sequence-toolkit extension.
  3. Run the webui.bat file to start the V1111 application.

Additional Information:

Version Platform Description

Could you please investigate this issue further and provide a fix? Thank you.