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

training not running after installing the Dreambooth extension #23

Open
mozily opened this issue Oct 24, 2024 · 2 comments
Open

training not running after installing the Dreambooth extension #23

mozily opened this issue Oct 24, 2024 · 2 comments

Comments

@mozily
Copy link

mozily commented Oct 24, 2024

this method worked well until 2024-10-22, but it suddenly stopped working after that.

image : siutin/stable-diffusion-webui-docker:latest-cuda
command : --listen --enable-insecure-extension-access

Until then, I was using it well, but suddenly when I run the train in Dreambooth, it outputs the following error.


Initializing dreambooth training...
Traceback (most recent call last):
File "/app/stable-diffusion-webui/extensions/sd_dreambooth_extension/dreambooth/ui_functions.py", line 732, in start_training
from dreambooth.train_dreambooth import main # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/stable-diffusion-webui/extensions/sd_dreambooth_extension/dreambooth/train_dreambooth.py", line 34, in
from diffusers.training_utils import unet_lora_state_dict
File "/app/stable-diffusion-webui/venv/lib/python3.11/site-packages/diffusers/training_utils.py", line 27, in
if transformers.integrations.deepspeed.is_deepspeed_zero3_enabled():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'transformers.integrations' has no attribute 'deepspeed'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/app/stable-diffusion-webui/extensions/sd_dreambooth_extension/dreambooth/ui_functions.py", line 734, in start_training
from dreambooth.train_dreambooth import main # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/stable-diffusion-webui/extensions/sd_dreambooth_extension/dreambooth/train_dreambooth.py", line 34, in
from diffusers.training_utils import unet_lora_state_dict
File "/app/stable-diffusion-webui/venv/lib/python3.11/site-packages/diffusers/training_utils.py", line 27, in
if transformers.integrations.deepspeed.is_deepspeed_zero3_enabled():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'transformers.integrations' has no attribute 'deepspeed'
Duration: 00:00:00
Duration: 00:00:01

Please help me understand why this error is occurring.

@siutin
Copy link
Owner

siutin commented Oct 24, 2024

Sorry to hear about that, currently there have been changes in the way releases are related to the CUDA version. Previously, each release was tied to CUDA version 12.1.1. Could you try using this to see if it works?

image: siutin/stable-diffusion-webui-docker:latest-cuda-12.1.1

@mozily
Copy link
Author

mozily commented Oct 25, 2024

@siutin thank you for the quick response.

I tried again using the "latest-cuda-12.1.1" image you mentioned, but the same error as in the main text is displayed.

The last image I successfully used was the "latest-cuda" image from 2024-10-22. With the same image, I was able to recreate the container, install DreamBooth, and even build the model. However, when I attempt to train it afterward, the same error as above is displayed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants