Closed Flonixcorn closed 1 year ago
This is the error when creating a model!
`
Exception setting up output: Error(s) in loading state_dict for UNet2DConditionModel:
Missing key(s) in state_dict: "up_blocks.0.upsamplers.0.conv.weight", "up_blocks.0.upsamplers.0.conv.bias", "up_blocks.1.upsamplers.0.conv.weight", "up_blocks.1.upsamplers.0.conv.bias", "up_blocks.2.upsamplers.0.conv.weight", "up_blocks.2.upsamplers.0.conv.bias".
Unexpected key(s) in state_dict: "up_blocks.0.attentions.2.conv.bias", "up_blocks.0.attentions.2.conv.weight".
Traceback (most recent call last):
File "X:\AI\StableDiffusion\stable-diffusion-webui\extensions\sd_dreambooth_extension\dreambooth\sd_to_diff.py", line 922, in extract_checkpoint
unet.load_state_dict(converted_unet_checkpoint)
File "X:\AI\StableDiffusion\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1604, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for UNet2DConditionModel:
Missing key(s) in state_dict: "up_blocks.0.upsamplers.0.conv.weight", "up_blocks.0.upsamplers.0.conv.bias", "up_blocks.1.upsamplers.0.conv.weight", "up_blocks.1.upsamplers.0.conv.bias", "up_blocks.2.upsamplers.0.conv.weight", "up_blocks.2.upsamplers.0.conv.bias".
Unexpected key(s) in state_dict: "up_blocks.0.attentions.2.conv.bias", "up_blocks.0.attentions.2.conv.weight".
Pipeline or config is not set, unable to continue.`
This error also gets thrown
`
Saved settings.
Custom model name is
Starting Dreambooth training...
Initializing dreambooth training...
Replace CrossAttention.forward to use default
Change in precision detected, please restart the webUI entirely to use new precision.
We have 0 sample image(s).
Traceback (most recent call last):
File "X:\AI\StableDiffusion\stable-diffusion-webui\extensions\sd_dreambooth_extension\scripts\dreambooth.py", line 571, in start_training
latest_file = max(list_of_files, key=os.path.getmtime)
ValueError: max() arg is an empty sequence
Training completed, reloading SD Model.
Restored system models.
Returning result: Exception training model: 'max() arg is an empty sequence'.
`
Now getting only Returning result: Exception training model: 'max() arg is an empty sequence'.
So weird! Now it just works!
Have you read the Readme? Yes Have you completely restarted the stable-diffusion-webUI, not just reloaded the UI? Yes Have you updated Dreambooth to the latest revision? Yes Have you updated the Stable-Diffusion-WebUI to the latest version? Yes No, really. Please save us both some trouble and update the SD-WebUI and Extension and restart before posting this. Reply 'OK' Below to acknowledge that you did this. OK Describe the bug
(A clear and concise description of what the bug is) When Training a model that i created i just throws this error: Training completed, reloading SD Model. Restored system models. Returning result: Exception training model: 'Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: 'X:\AI\StableDiffusion\stable-diffusion-webui\models\dreambooth\ApterusArt\working\tokenizer'.'.
Provide logs
Logs at the bottom
Environment
native windows, rtx 3090![image](https://user-images.githubusercontent.com/62509661/213523020-03ac822a-ce1a-4db3-90b1-338f993e99a2.png)