|
发表于 2023-3-1 16:57:08
|
显示全部楼层
炼丹开始 ,然后就这样了 。。
prepare tokenizer
Traceback (most recent call last):
File "E:\kohya_ss\train_network.py", line 507, in <module>
train(args)
File "E:\kohya_ss\train_network.py", line 56, in train
tokenizer = train_util.load_tokenizer(args)
File "E:\kohya_ss\library\train_util.py", line 1802, in load_tokenizer
tokenizer = CLIPTokenizer.from_pretrained(TOKENIZER_PATH)
File "E:\kohya_ss\venv\lib\site-packages\transformers\tokenization_utils_base.py", line 1804, in from_pretrained
return cls._from_pretrained(
File "E:\kohya_ss\venv\lib\site-packages\transformers\tokenization_utils_base.py", line 1959, in _from_pretrained
tokenizer = cls(*init_inputs, **init_kwargs)
File "E:\kohya_ss\venv\lib\site-packages\transformers\models\clip\tokenization_clip.py", line 323, in __init__
self.encoder = json.load(vocab_handle)
File "C:\Users\ui\AppData\Local\Programs\Python\Python310\lib\json\__init__.py", line 293, in load
return loads(fp.read(),
File "C:\Users\ui\AppData\Local\Programs\Python\Python310\lib\json\__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\ui\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\ui\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 214903 (char 214902)
Traceback (most recent call last):
File "C:\Users\ui\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\ui\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "E:\kohya_ss\venv\Scripts\accelerate.exe\__main__.py", line 7, in <module>
File "E:\kohya_ss\venv\lib\site-packages\accelerate\commands\accelerate_cli.py", line 45, in main
args.func(args)
File "E:\kohya_ss\venv\lib\site-packages\accelerate\commands\launch.py", line 1104, in launch_command
simple_launcher(args)
File "E:\kohya_ss\venv\lib\site-packages\accelerate\commands\launch.py", line 567, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['E:\\kohya_ss\\venv\\Scripts\\python.exe', 'train_network.py', '--pretrained_model_name_or_path=D:/miaoshouai_stable-diffusion-webui-cn_230205/stable-diffusion-webui-cn/models/Stable-diffusion/v1-5-pruned-emaonly.ckpt', '--train_data_dir=E:/xunlian/image', '--resolution=512,512', '--output_dir=D:/miaoshouai_stable-diffusion-webui-cn_230205/stable-diffusion-webui-cn/models/Lora', '--logging_dir=E:/xunlian/log', '--network_alpha=128', '--save_model_as=safetensors', '--network_module=networks.lora', '--text_encoder_lr=5e-5', '--unet_lr=0.0001', '--network_dim=128', '--output_name=rognarok1', '--lr_scheduler_num_cycles=1', '--learning_rate=0.0001', '--lr_scheduler=constant', '--train_batch_size=1', '--max_train_steps=4700', '--save_every_n_epochs=1', '--mixed_precision=fp16', '--save_precision=fp16', '--seed=1234', '--caption_extension=.txt', '--cache_latents', '--optimizer_type=AdamW8bit', '--max_data_loader_n_workers=1', '--clip_skip=2', '--bucket_reso_steps=64', '--mem_eff_attn', '--gradient_checkpointing', '--xformers', '--use_8bit_adam', '--bucket_no_upscale']' returned non-zero exit status 1. |
|