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

problem with textual inversion tab #2995

Open
gradi01 opened this issue Nov 30, 2024 · 0 comments
Open

problem with textual inversion tab #2995

gradi01 opened this issue Nov 30, 2024 · 0 comments

Comments

@gradi01
Copy link

gradi01 commented Nov 30, 2024

Hello, I have this error that is recurring.
No matter what options I put, this error message does not go away.

Thank you in advance for your help.

2024-11-30 16:22:06 INFO     prepare tokenizers                                                   sdxl_train_util.py:138
                    INFO     update token length: 75                                              sdxl_train_util.py:163
                    INFO     prepare accelerator                                          train_textual_inversion.py:189
accelerator device: cuda
                    INFO     loading model for process 0/1                                         sdxl_train_util.py:33
Traceback (most recent call last):
  File "D:\kohya_ss\sd-scripts\sdxl_train_textual_inversion.py", line 138, in <module>
    trainer.train(args)
  File "D:\kohya_ss\sd-scripts\train_textual_inversion.py", line 197, in train
    model_version, text_encoder_or_list, vae, unet = self.load_target_model(args, weight_dtype, accelerator)
  File "D:\kohya_ss\sd-scripts\sdxl_train_textual_inversion.py", line 36, in load_target_model
    ) = sdxl_train_util.load_target_model(args, accelerator, sdxl_model_util.MODEL_VERSION_SDXL_BASE_V1_0, weight_dtype)
  File "D:\kohya_ss\sd-scripts\library\sdxl_train_util.py", line 50, in load_target_model
    args.disable_mmap_load_safetensors,
AttributeError: 'Namespace' object has no attribute 'disable_mmap_load_safetensors'
Traceback (most recent call last):
  File "C:\Users\hanzo\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\hanzo\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "D:\kohya_ss\venv\Scripts\accelerate.EXE\__main__.py", line 7, in <module>
    sys.exit(main())
  File "D:\kohya_ss\venv\lib\site-packages\accelerate\commands\accelerate_cli.py", line 47, in main
    args.func(args)
  File "D:\kohya_ss\venv\lib\site-packages\accelerate\commands\launch.py", line 1017, in launch_command
    simple_launcher(args)
  File "D:\kohya_ss\venv\lib\site-packages\accelerate\commands\launch.py", line 637, in simple_launcher
    raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['D:\\kohya_ss\\venv\\Scripts\\python.exe', 'D:/kohya_ss/sd-scripts/sdxl_train_textual_inversion.py', '--config_file', 'D:/kohya_ss/dataset/outputs/config_textual_inversion-20241130-162154.toml']' returned non-zero exit status 1.
16:22:08-789000 INFO     Training has ended.
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