AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
142.83k stars 26.93k forks source link

[Bug]: Deepbooru error #5787

Closed TeKett closed 1 year ago

TeKett commented 1 year ago

Is there an existing issue for this?

What happened?

Im new to this and installed for the first time. Some form of up to date guide would be nice other then just "its integrated", like "its integrated and you dont need to do anything but click the "interrogate deepbooru", and here are some more info about how to use it", or something that the google spider can catch instead of the 3 year old guide written in japanese. Like do i still need to get tags or any files in the "place your deepbooru files here" folder? Currently iv tried to figure it out using outdated info and lots of deep diving threads. Its been a few hours, since naturally i did not even know it existed and saw the folder first with the file to place the files there which started the whole rabbit hole, and gave me questions like whats the difference to the other anime ones and why is this one integrated?

When i click "interrogate deepbooru" i get this Screenshot_84

Steps to reproduce the problem

Just try to install deepbooru

What should have happened?

That it don't error out.

Commit where the problem happens

685f9631b56ff8bd43bce24ff5ce0f9a0e9af490

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

Additional information, context and logs

Traceback (most recent call last): File "C:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 284, in run_predict output = await app.blocks.process_api( File "C:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 982, in process_api result = await self.call_function(fn_index, inputs, iterator) File "C:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 824, in call_function prediction = await anyio.to_thread.run_sync( File "C:\Stable Diffusion\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 "C:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "C:\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run result = context.run(func, *args) File "C:\Stable Diffusion\stable-diffusion-webui\modules\ui.py", line 275, in interrogate_deepbooru prompt = deepbooru.model.tag(image) File "C:\Stable Diffusion\stable-diffusion-webui\modules\deepbooru.py", line 45, in tag res = self.tag_multi(pil_image) File "C:\Stable Diffusion\stable-diffusion-webui\modules\deepbooru.py", line 57, in tag_multi pic = images.resize_image(2, pil_image.convert("RGB"), 512, 512) AttributeError: 'NoneType' object has no attribute 'convert'

MikuAuahDark commented 1 year ago

Have you loaded the image in img2img?

gambar

TeKett commented 1 year ago

Have you loaded the image in img2img?

Do i need to? Since other then the "interrogate deepbooru" button there is zero information about what deepbooru is or does.

MIC132 commented 1 year ago

Have you loaded the image in img2img?

Do i need to? Since other then the "interrogate deepbooru" button there is zero information about what deepbooru is or does.

"Interrogate deepbooru" performs an analysis on the loaded image to guess what booru tags would fit that image. The result is then deposited in the prompt field. So yes, you need to load an image first.

TeKett commented 1 year ago

Have you loaded the image in img2img?

Do i need to? Since other then the "interrogate deepbooru" button there is zero information about what deepbooru is or does.

"Interrogate deepbooru" performs an analysis on the loaded image to guess what booru tags would fit that image. The result is then deposited in the prompt field. So yes, you need to load an image first.

Then why does it even allow you to run it if you dont have an image? Seems kinda step one to me to gray out the button if the input image is empty

aliencaocao commented 1 year ago

That could be a feature request, but it also seems step one to me to first find out what deepbooru is before even trying it @ClashSAN consider closing this, clearly not a bug