Training Error - ModuleNotFoundError: No module named 'library' #2547
threepennie
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there
I am running Kohyaa on Windows and try train, and it responds as below
ModuleNotFoundError: No module named 'library' ?
anyone had same situation?
i cant decipher but maybe someone else could?
Traceback (most recent call last):
File "C:\Users\User\kohya_ss-23.0.12\sd-scripts\sdxl_train_network.py", line 4, in
from library.device_utils import init_ipex, clean_memory_on_device
ModuleNotFoundError: No module named 'library'
Traceback (most recent call last):
File "C:\Users\User.pyenv\pyenv-win\versions\3.10.9\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\User.pyenv\pyenv-win\versions\3.10.9\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\User\kohya_ss-23.0.12\venv\Scripts\accelerate.exe_main.py", line 7, in
File "C:\Users\User\kohya_ss-23.0.12\venv\lib\site-packages\accelerate\commands\accelerate_cli.py", line 47, in main
args.func(args)
File "C:\Users\User\kohya_ss-23.0.12\venv\lib\site-packages\accelerate\commands\launch.py", line 1017, in launch_command
simple_launcher(args)
File "C:\Users\User\kohya_ss-23.0.12\venv\lib\site-packages\accelerate\commands\launch.py", line 637, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['C:\Users\User\kohya_ss-23.0.12\venv\Scripts\python.exe', 'C:\Users\User\kohya_ss-23.0.12/sd-scripts/sdxl_train_network.py', '--bucket_no_upscale', '--bucket_reso_steps=64', '--cache_latents', '--enable_bucket', '--min_bucket_reso=256', '--max_bucket_reso=2048', '--learning_rate=0.0001', '--lr_scheduler=cosine', '--lr_scheduler_num_cycles=1', '--lr_warmup_steps=48', '--max_data_loader_n_workers=0', '--max_grad_norm=1', '--resolution=512,512', '--max_train_steps=480', '--mixed_precision=fp16', '--network_alpha=1', '--network_dim=128', '--network_module=networks.lora', '--no_half_vae', '--optimizer_type=AdamW8bit', '--output_dir=C:\Users\User\kohya_ss-23.0.12\training\15_middlefingers', '--output_name=15_middlefingers', '--pretrained_model_name_or_path=stabilityai/stable-diffusion-xl-base-1.0', '--save_every_n_epochs=1', '--save_model_as=safetensors', '--save_precision=fp16', '--text_encoder_lr=0.0001', '--train_batch_size=1', '--train_data_dir=C:\Users\User\kohya_ss-23.0.12\training', '--unet_lr=0.0001', '--xformers', '--sample_sampler=euler_a', '--sample_prompts=C:\Users\User\kohya_ss-23.0.12\training\15_middlefingers\sample\prompt.txt', '--sample_every_n_epochs=0', '--sample_every_n_steps=0']' returned non-zero exit status 1.
Beta Was this translation helpful? Give feedback.
All reactions