kohya-ss / kohya-ss/sd-scripts

returned non-zero exit status 3221225477 problem with Kohya lora training

Open
#567 13 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7.2k
Forks
1.2k
Avg merge
11m
Merged PRs (30d)
2

Description

Can the problem be that I have GTX 1050 ti 4 GB? (playing with options to lower VRAM usage does not help), When I play with settings I get the same thing but the last thing changes to returned non-zero exit status 1.
![Screenshot (261)](https://github.com/kohya-ss/sd-scripts/assets/135466142/649e903f-9fbd-4395-98da-049127338c8c)

CalledProcessError: Command '['C:\\Python3109\\python.exe', 'train_network.py', '--enable_bucket',
'--pretrained_model_name_or_path=runwayml/stable-diffusion-v1-5',
'--train_data_dir=C:/Users/Maroš/Desktop/mi1-output\\img', '--reg_data_dir=C:/Users/Maroš/Desktop/mi1-output\\reg',
'--resolution=512,512', '--output_dir=C:/Users/Maroš/Desktop/mi1-output\\model',
'--logging_dir=C:/Users/Maroš/Desktop/mi1-output\\log', '--network_alpha=1', '--save_model_as=safetensors',
'--network_module=networks.lora', '--text_encoder_lr=5e-05', '--unet_lr=0.0001', '--network_dim=8',
'--output_name=last', '--lr_scheduler_num_cycles=1', '--learning_rate=0.0001', '--lr_scheduler=cosine',
'--lr_warmup_steps=152', '--train_batch_size=1', '--max_train_steps=1520', '--save_every_n_epochs=1',
'--mixed_precision=fp16', '--save_precision=fp16', '--cache_latents', '--optimizer_type=AdamW8bit',
'--max_data_loader_n_workers=0', '--bucket_reso_steps=64', '--xformers', '--bucket_no_upscale']' returned non-zero exit
status 3221225477.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the reported train_network.py command and the full error output around CalledProcessError, then check how this Windows run handles the GTX 1050 Ti, fp16, xformers, and AdamW8bit options. Reproduce with the supplied arguments if possible; done means identifying a specific cause or compatibility requirement rather than only confirming the non-zero status.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.