Malisius / booru2prompt

An extension for stable-diffusion-webui to convert image booru posts into prompts
58 stars 8 forks source link

Broken in Forge #20

Open oncoremarco opened 6 months ago

oncoremarco commented 6 months ago

Does not work with the Forge UI. Does not appear in the list of extensions on the Generation tab.

aolko commented 5 months ago

It does appear in the extension list, but not as a tab

Loading booru2prompt settings
*** Error loading script: tagger.py
    Traceback (most recent call last):
      File "D:\Programs\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\modules\scripts.py", line 544, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\Programs\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\modules\script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\Programs\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\extensions\stable-diffusion-webui-wd14-tagger\scripts\tagger.py", line 5, in <module>
        from tagger.api import on_app_started  # pylint: disable=import-error
      File "D:\Programs\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\extensions\stable-diffusion-webui-wd14-tagger\tagger\api.py", line 17, in <module>
        from tagger import utils  # pylint: disable=import-error
      File "D:\Programs\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\extensions\stable-diffusion-webui-wd14-tagger\tagger\utils.py", line 13, in <module>
        from tagger.interrogator import Interrogator, DeepDanbooruInterrogator, \
      File "D:\Programs\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\extensions\stable-diffusion-webui-wd14-tagger\tagger\interrogator.py", line 32, in <module>
        if shared.cmd_opts.additional_device_ids is not None:
    AttributeError: 'Namespace' object has no attribute 'additional_device_ids'
D:\Programs\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\extensions\booru2prompt\scripts\main.py:442: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  searchimages.style(grid=3)
D:\Programs\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\extensions\booru2prompt\scripts\main.py:442: GradioDeprecationWarning: The 'grid' parameter will be deprecated. Please use 'columns' in the constructor instead.
  searchimages.style(grid=3)
*** Error executing callback ui_tabs_callback for D:\Programs\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\extensions\booru2prompt\scripts\main.py
    Traceback (most recent call last):
      File "D:\Programs\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\modules\script_callbacks.py", line 183, in ui_tabs_callback
        res += c.callback() or []
      File "D:\Programs\StabilityMatrix\Data\Packages\Stable Diffusion WebUI Forge\extensions\booru2prompt\scripts\main.py", line 501, in on_ui_tabs
        sendselected = modules.generation_parameters_copypaste.create_buttons(["txt2img", "img2img", "inpaint", "extras"])
    AttributeError: module 'modules' has no attribute 'generation_parameters_copypaste'

@Malisius pls fix

abubasal commented 5 months ago

+1

shimizu-izumi commented 4 months ago

+1

aolko commented 4 months ago

I wonder if @Malisius cares or left this repository for dead?

shimizu-izumi commented 1 month ago

Probably dead @aolko, I guess I'll try to fix it myself.