Creation of Images from Text-Prompt
Hello,I am trying to run “Stable Diffusion WebUI” on Windows 10 (Legion GPU).github.comGitHub - AUTOMATIC1111/stable-diffusion-webui: Stable Diffusion web UIStable Diffusion web UIWhile I try to train (Create Embedding, Provided a Custom Image Directory), I get the following error, any ideas?:Calculating sha256 for D:\Ganu\AIImage\huggingface\test\webui\embeddings\Test-31stDec20204-3.pt: c900b2fed73e52a66f6fa2a52c2456ac66a8cd252546b5287bf07d9bfc2b9107Training at rate of 0.005 until step 100000Preparing dataset…100%|¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 1/1 [00:15<00:00, 15.11s/it]D:\Ganu\AIImage\huggingface\test\webui\modules\textual_inversion\textual_inversion.py:493: FutureWarning:torch.cuda.amp.GradScaler(args...)is deprecated. Please usetorch.amp.GradScaler('cuda', args...)instead.scaler = torch.cuda.amp.GradScaler()0%|                                                                                                                                                                                  | 0/100000 [00:00<?, ?it/s]*** Error training embeddingTraceback (most recent call last):File “D:\Ganu\AIImage\huggingface\test\webui\modules\textual_inversion\textual_inversion.py”, line 555, in train_embeddingscaler.scale(loss).backward()File “D:\Ganu\AIImage\huggingface\test\system\python\lib\site-packages\torch_tensor.py”, line 581, in backwardtorch.autograd.backward(File “D:\Ganu\AIImage\huggingface\test\system\python\lib\site-packages\torch\autograd_init_.py”, line 347, in backward_engine_run_backward(File “D:\Ganu\AIImage\huggingface\test\system\python\lib\site-packages\torch\autograd\graph.py”, line 825, in _engine_run_backwardreturn Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward passRuntimeError: Found dtype Float but expected Half
2024-12-31T06:58:59Z
If you have any problems with WebUI, it’s best to ask onthe A1111 WebUI github. It’s similar to this situation…github.com/AUTOMATIC1111/stable-diffusion-webui[Bug]: Textual Inversion training not working anymore (AssertionError)opened05:04PM - 23 May 23 UTCWoisekbug-report### Is there an existing issue for this?

- [X] I have searched the existing iss…ues and checked the recent builds/commits

### What happened?

On the 20th of May at around 22h I did a TI training. Since then, I can't train any TI anymore. It always quits with an AssertionError.
I didn't set anything unusual or different then ever. It just won't work anymore.

### Steps to reproduce the problem

1. Train a TI

### What should have happened?

The TI should be trained.

### Commit where the problem happens

Version: v1.2.1 Commit hash: 89f9faa63388756314e8a1d96cf86bf5e0663045

### What platforms do you use to access the UI ?

Windows

### What browsers do you use to access the UI ?

Mozilla Firefox

### Command Line Arguments

```Shell
--xformers --api --administrator --opt-split-attention --theme=dark
```


### List of extensions

![Zwischenablagebild](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/122026301/b0da3001-1579-4b6c-aac0-a6d5d352ca7a)


### Console logs

```Shell
Loading weights [1a189f0be6] from I:\Super SD 2.0\stable-diffusion-webui\models\Stable-diffusion\SD v1.5\v1-5-pruned_(7.17GB).safetensors
Loading VAE weights specified in settings: I:\Super SD 2.0\stable-diffusion-webui\models\VAE\vae-ft-mse-840000-ema-pruned.safetensors
Applying xformers cross attention optimization.
Weights loaded in 1.5s (load weights from disk: 0.4s, apply weights to model: 0.4s, load VAE: 0.1s, move model to device: 0.5s).
Training at rate of 0.001 until step 200
Preparing dataset...
100%|██████████████████████████████████████████████████████████████████████████████████| 29/29 [00:06<00:00,  4.65it/s]
No saved optimizer exists in checkpoint
  0%|                                                                                            | 0/1 [00:00<?, ?it/s]Traceback (most recent call last):
  File "I:\Super SD 2.0\stable-diffusion-webui\modules\textual_inversion\textual_inversion.py", line 522, in train_embedding
    scaler.step(optimizer)
  File "I:\Super SD 2.0\stable-diffusion-webui\venv\lib\site-packages\torch\cuda\amp\grad_scaler.py", line 339, in step
    assert len(optimizer_state["found_inf_per_device"]) > 0, "No inf checks were recorded for this optimizer."
AssertionError: No inf checks were recorded for this optimizer.

Applying xformers cross attention optimization.
```


### Additional information

_No response_