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

AttributeError: 'NoneType' object has no attribute 'detach' #53

Open
Heathen opened this issue Jan 14, 2023 · 0 comments
Open

AttributeError: 'NoneType' object has no attribute 'detach' #53

Heathen opened this issue Jan 14, 2023 · 0 comments

Comments

@Heathen
Copy link

Heathen commented Jan 14, 2023

While trying to train a hand TI:

Error completing request
Arguments: ('Handout', 114514, '0.003', 1, 'C:\AIStuff\Training\Hand', 'dream_artist', 512, 512, 8000, 100, 500, 'C:\AIStuff\autowebui\stable-diffusion-webui\textual_inversion_templates\hand.txt', False, True, 'close-up photo of a woman waving, Handout', 'Handout-neg', 20, 0, 7, 3468537928.0, 512, 512, '1.0-4.0:cos', '', True, True, False, 1, 1, 1.0, 25.0, 1.0, 25.0, 0.9, 0.999, False, 1, False, '0.000005') {}
Traceback (most recent call last):
File "C:\AIStuff\autowebui\stable-diffusion-webui\modules\call_queue.py", line 45, in f
res = list(func(*args, **kwargs))
File "C:\AIStuff\autowebui\stable-diffusion-webui\modules\call_queue.py", line 28, in f
res = func(*args, **kwargs)
File "C:\AIStuff\autowebui\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 "C:\AIStuff\autowebui\stable-diffusion-webui\extensions\DreamArtist-sd-webui-extension\scripts\dream_artist\cptuning.py", line 587, in train_embedding
f"grad:{embedding.vec.grad.detach().cpu().abs().mean().item():.7f}, "
AttributeError: 'NoneType' object has no attribute 'detach'

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

1 participant