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

stable diffusion sdxl train error #253

Open
CHK-0000 opened this issue Nov 1, 2024 · 0 comments
Open

stable diffusion sdxl train error #253

CHK-0000 opened this issue Nov 1, 2024 · 0 comments

Comments

@CHK-0000
Copy link

CHK-0000 commented Nov 1, 2024

(test) C:\DiffSynth-Studio\examples\train\stable_diffusion_xl>python train_sdxl_lora.py --pretrained_path models/stable_diffusion_xl/autismmixSDXL_autismmixConfetti.safetensors --dataset_path C:\DiffSynth-Studio\data\test --output_path ./models --max_epochs 1 --steps_per_epoch 500 --height 1024 --width 1024 --center_crop --precision "32" --learning_rate 1e-4 --lora_rank 4 --lora_alpha 4 --use_gradient_checkpointing
2024-11-01 14:08:11.631651: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
2024-11-01 14:08:12.397738: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
Loading models from: models/stable_diffusion_xl/autismmixSDXL_autismmixConfetti.safetensors
Traceback (most recent call last):
File "C:\DiffSynth-Studio\examples\train\stable_diffusion_xl\train_sdxl_lora.py", line 54, in
model = LightningModel(
File "C:\DiffSynth-Studio\examples\train\stable_diffusion_xl\train_sdxl_lora.py", line 17, in init
model_manager.load_models(pretrained_weights)
File "C:\Users\ksl10\anaconda3\envs\test\lib\site-packages\diffsynth\models\model_manager.py", line 508, in load_models
self.load_model(file_path, model_names)
File "C:\Users\ksl10\anaconda3\envs\test\lib\site-packages\diffsynth\models\model_manager.py", line 490, in load_model
if model_detector.match(file_path, state_dict):
File "C:\Users\ksl10\anaconda3\envs\test\lib\site-packages\diffsynth\models\model_manager.py", line 264, in match
if len(state_dict) == 0:
TypeError: object of type 'NoneType' has no len()

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