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

Someone could help me? returned non-zero exit status 1. #3013

Open
Explyy opened this issue Dec 12, 2024 · 3 comments
Open

Someone could help me? returned non-zero exit status 1. #3013

Explyy opened this issue Dec 12, 2024 · 3 comments

Comments

@Explyy
Copy link

Explyy commented Dec 12, 2024

Traceback (most recent call last):
File "C:\Users\DAVIDE\AI\Kohya_ss\kohya_ss\sd-scripts\flux_train_network.py", line 583, in
trainer.train(args)
File "C:\Users\DAVIDE\AI\Kohya_ss\kohya_ss\sd-scripts\train_network.py", line 442, in train
vae.to(accelerator.device, dtype=vae_dtype)
File "C:\Users\DAVIDE\AI\Kohya_ss\kohya_ss\venv\lib\site-packages\torch\nn\modules\module.py", line 1340, in to
return self._apply(convert)
File "C:\Users\DAVIDE\AI\Kohya_ss\kohya_ss\venv\lib\site-packages\torch\nn\modules\module.py", line 900, in _apply
module._apply(fn)
File "C:\Users\DAVIDE\AI\Kohya_ss\kohya_ss\venv\lib\site-packages\torch\nn\modules\module.py", line 900, in _apply
module._apply(fn)
File "C:\Users\DAVIDE\AI\Kohya_ss\kohya_ss\venv\lib\site-packages\torch\nn\modules\module.py", line 900, in _apply
module._apply(fn)
[Previous line repeated 3 more times]
File "C:\Users\DAVIDE\AI\Kohya_ss\kohya_ss\venv\lib\site-packages\torch\nn\modules\module.py", line 927, in _apply
param_applied = fn(param)
File "C:\Users\DAVIDE\AI\Kohya_ss\kohya_ss\venv\lib\site-packages\torch\nn\modules\module.py", line 1333, in convert
raise NotImplementedError(
NotImplementedError: Cannot copy out of meta tensor; no data! Please use torch.nn.Module.to_empty() instead of torch.nn.Module.to() when moving module from meta to a different device.
Traceback (most recent call last):
File "C:\Users\DAVIDE\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\DAVIDE\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\DAVIDE\AI\Kohya_ss\kohya_ss\venv\Scripts\accelerate.EXE_main
.py", line 7, in
sys.exit(main())
File "C:\Users\DAVIDE\AI\Kohya_ss\kohya_ss\venv\lib\site-packages\accelerate\commands\accelerate_cli.py", line 48, in main
args.func(args)
File "C:\Users\DAVIDE\AI\Kohya_ss\kohya_ss\venv\lib\site-packages\accelerate\commands\launch.py", line 1106, in launch_command
simple_launcher(args)
File "C:\Users\DAVIDE\AI\Kohya_ss\kohya_ss\venv\lib\site-packages\accelerate\commands\launch.py", line 704, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['C:\Users\DAVIDE\AI\Kohya_ss\kohya_ss\venv\Scripts\python.exe', 'C:/Users/DAVIDE/AI/Kohya_ss/kohya_ss/sd-scripts/flux_train_network.py', '--config_file', 'C:/Users/DAVIDE/AI/Kohya_ss/Lora/Train_Data\model/config_lora-20241212-125307.toml']' returned non-zero exit status 1.

@maitruclam
Copy link

check out some thing under you will find out what happen or not :))

  • Check you use the same name of another model/lora for your new model/lora > i meet this a lot
  • check your img folder is have the right name that kohya ask: 1_key some thing...
  • there is have image or not
    that is 3 thing i have meet with that error code

@Explyy
Copy link
Author

Explyy commented Dec 12, 2024

Thank you a lot! it seems that i can`t describe the image with any text, if i start the training without LLM image description it does work..

@Sylsatra
Copy link

Thank you a lot! it seems that i can`t describe the image with any text, if i start the training without LLM image description it does work..

That is weird, can you provide the config and the full error if possible?

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

3 participants