-
Notifications
You must be signed in to change notification settings - Fork 52
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
Error while training with jjtolton's fork #65
Comments
Also, there's an issue with Starting the ui in Colab:
|
Do you have more complete steps you used to setup the colab so I can test? |
|
@Gushousekai195 I notice you're using Fast Stable Diffusion -- I don't really have the capacity to support anything besides the standard version of Automatic1111's version, sorry about that. If it doesn't work with standard SD on collab I'll take a look at it. |
I'm getting a similar error on the standard Auto1111 UI `2023-02-22T19:11:06.323049482Z Applying xformers cross attention optimization. 2023-02-22T19:11:06.323171693Z Traceback (most recent call last): 2023-02-22T19:11:06.323190980Z File "/workspace/stable-diffusion-webui/modules/call_queue.py", line 56, in f 2023-02-22T19:11:06.323193435Z res = list(func(*args, **kwargs)) 2023-02-22T19:11:06.323195109Z File "/workspace/stable-diffusion-webui/modules/call_queue.py", line 37, in f 2023-02-22T19:11:06.323196902Z res = func(*args, **kwargs) 2023-02-22T19:11:06.323198645Z File "/workspace/stable-diffusion-webui/extensions/DreamArtist-sd-webui- extension/scripts/dream_artist/ui.py", line 32, in train_embedding 2023-02-22T19:11:06.323200468Z embedding, filename = dream_artist.cptuning.train_embedding(*args) 2023-02-22T19:11:06.323202122Z File "/workspace/stable-diffusion-webui/extensions/DreamArtist-sd-webui- extension/scripts/dream_artist/cptuning.py", line 540, in train_embedding 2023-02-22T19:11:06.323203815Z x_samples_ddim = shared.sd_model.decode_first_stage.wrapped(shared.sd_model, output[2]) # forward with grad 2023-02-22T19:11:06.323205518Z AttributeError: 'function' object has no attribute 'wrapped' 2023-02-22T19:11:06.323207031Z ` |
@petersfield1 Thanks. Is this in cloud deploy or local? |
Ah @petersfield1 that's a different error. You use reconstruction or something, right? |
Yeah I was using reconstruction - and it's in the cloud on Runpod's stack, unfortunately don't have the specs on local |
@petersfield1 okay -- can you educate me on what the purpose of reconstruction is and I'll see if I can fix it? I'm just not sure how/why it would be used |
Honestly I have 0 idea myself, it just happened to be the method that has produced the best results for me in the past - I'm running it now without the box ticked and it appears to be working fine |
@petersfield1 yeah I feel you. DA was broken before I even started working on the fix so I never saw what it did while it was working. If you feel it's something you need, holler back and I'll take a look (but I'm hoping it's not 😅 ) |
@jjtolton |
Bummer. Taking a look. |
Good news/bad news.
I did a clean install of WebUI commit And it worked flawlessly. So I cannot isolate this bug to DA on my fork itself. There are probably other compounding issues, but it does work with a clean install in isolation. Sorry my news isn't better. |
This is a SD 2.1 bug. I don't know enough right now to know if there are fundamental differences that make 2.1 incompatible with DA. You can partially bypass this by creating the embeddings with the Or if that is even the correct methodology. |
@jjtolton
Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/call_queue.py", line 56, in f
res = list(func(*args, **kwargs))
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/call_queue.py", line 37, in f
res = func(*args, **kwargs)
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/DreamArtist-sd-webui-extension/scripts/dream_artist/ui.py", line 32, in train_embedding
embedding, filename = dream_artist.cptuning.train_embedding(*args)
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions/DreamArtist-sd-webui-extension/scripts/dream_artist/cptuning.py", line 559, in train_embedding
loss.backward()
File "/usr/local/lib/python3.8/dist-packages/torch/_tensor.py", line 488, in backward
torch.autograd.backward(
File "/usr/local/lib/python3.8/dist-packages/torch/autograd/init.py", line 197, in backward
Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass
File "/usr/local/lib/python3.8/dist-packages/torch/autograd/function.py", line 267, in apply
return user_fn(self, *args)
File "/content/gdrive/MyDrive/sd/stablediffusion/ldm/modules/diffusionmodules/util.py", line 142, in backward
input_grads = torch.autograd.grad(
File "/usr/local/lib/python3.8/dist-packages/torch/autograd/init.py", line 300, in grad
return Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass
RuntimeError: One of the differentiated Tensors does not require grad
The text was updated successfully, but these errors were encountered: