stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: Cant create ckpt model, dreambooth local training

Open mactics777 opened this issue 3 years ago • 7 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

Tried to train a model, following this tutorial form aitrepreneur https://www.youtube.com/watch?v=HahKXY7AQ8c

i can train the model to all the steps necessary, but when i want to create the ckpt i get an error.

Im on a Windows 10 build Python 10.6 Ryzen 2600, 16GB RAM RTX 3060 12GB

Steps to reproduce the problem

train a model, following this tutorial form aitrepreneur

https://www.youtube.com/watch?v=HahKXY7AQ8c

What should have happened?

Exporting a ckpt model.

Commit where the problem happens

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

No response

Additional information, context and logs

Traceback (most recent call last): File "C:\Stablediffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 284, in run_predict output = await app.blocks.process_api( File "C:\Stablediffusion\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:\Stablediffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 824, in call_function prediction = await anyio.to_thread.run_sync( File "C:\Stablediffusion\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:\Stablediffusion\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "C:\Stablediffusion\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run result = context.run(func, *args) TypeError: compile_checkpoint() takes 2 positional arguments but 3 were given

mactics777 avatar Nov 12 '22 13:11 mactics777

Same issue here, just downloading the latest version and then I get this error.

Alice2O3 avatar Nov 12 '22 16:11 Alice2O3

Having a similar issue with the latest version.

arthuranimation avatar Nov 12 '22 21:11 arthuranimation

Dont sure about it's proper way to fix it, but removing the line "db_pretrained_vae_name_or_path," in \extensions\sd_dreambooth_extension\scripts\main.py and restart helped me.

buccelati22 avatar Nov 13 '22 08:11 buccelati22

Thanks for the hint! I deleted the 130-line and the .cpkt-generation worked again.

FlexTestHD avatar Nov 13 '22 12:11 FlexTestHD

Thanks for the hint! I deleted the 130-line and the .cpkt-generation worked again.

Well, although this workaround is fine, I would still want to have this issue fixed in the future version.

Alice2O3 avatar Nov 14 '22 04:11 Alice2O3

I tried deleting the line 'db_pretrained_vae_name_or_path,' within main.py, however I still get the same issue. Anyone else found an additional work around?

CaptDoodle avatar Nov 18 '22 13:11 CaptDoodle

have this issue also, commenting out didnt work for me

johneliot1978 avatar Nov 28 '22 08:11 johneliot1978

Getting same issue

MadMick96 avatar Dec 02 '22 22:12 MadMick96

Same here

caretaker0815 avatar Jan 22 '23 16:01 caretaker0815

Closing as stale.

catboxanon avatar Aug 03 '23 16:08 catboxanon