kohya-ss / kohya-ss/sd-scripts
Training process gives error
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 1.2k
- Avg merge
- 11m
- Merged PRs (30d)
- 2
Description
Decided to update to latest version and a whole new set of problems arised. This is what happens when i try to train:
```
caching latents.
100%|██████████████████████████████████████████████████████████████████████████████████| 27/27 [00:13<00:00, 1.94it/s]
import network module: networks.lora
Traceback (most recent call last):
File "C:\Users\---\sd-scripts\lora_train_popup.py", line 329, in
main()
File "C:\Users\---\sd-scripts\lora_train_popup.py", line 180, in main
train_network.train(args)
File "C:\Users\---\sd-scripts\train_network.py", line 111, in train
network = network_module.create_network(1.0, args.network_dim, args.network_alpha, vae, text_encoder, unet, **net_kwargs)
AttributeError: 'Namespace' object has no attribute 'network_alpha'. Did you mean: 'network_args'?
Traceback (most recent call last):
File "C:\Users\---\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\---\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\---\sd-scripts\venv\Scripts\accelerate.exe\__main__.py", line 7, in
File "C:\Users\---sd-scripts\venv\lib\site-packages\accelerate\commands\accelerate_cli.py", line 45, in main
args.func(args)
File "C:\Users\---\sd-scripts\venv\lib\site-packages\accelerate\commands\launch.py", line 1104, in launch_command
simple_launcher(args)
File "C:\Users\---\sd-scripts\venv\lib\site-packages\accelerate\commands\launch.py", line 567, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['C:\\Users\\---\\sd-scripts\\venv\\Scripts\\python.exe', 'lora_train_popup.py']' returned non-zero exit status 1.
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at lora_train_popup.py:329 and follow the call into train_network.py:111, where the traceback reports the missing network_alpha attribute. Reproduce the LoRA training run from the popup and trace how its Namespace is built; done means training proceeds past network creation without this AttributeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100