deepfacelab中文网

 找回密码
 立即注册(仅限QQ邮箱)
楼主: 抹茶味牛子

AI绘画之训练自己的Lora模型

  [复制链接]

1

主题

39

帖子

301

积分

初级丹师

Rank: 3Rank: 3

积分
301
发表于 2023-4-22 15:32:16 | 显示全部楼层
A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
Error no kernel image is available for execution on the device at line 167 in file D:\ai\tool\bitsandbytes\csrc\ops.cu
Traceback (most recent call last):
  File "C:\Users\liang\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\liang\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "D:\ZZZ\AI\lora-scripts\venv\Scripts\accelerate.exe\__main__.py", line 7, in <module>
  File "D:\ZZZ\AI\lora-scripts\venv\lib\site-packages\accelerate\commands\accelerate_cli.py", line 45, in main
    args.func(args)
  File "D:\ZZZ\AI\lora-scripts\venv\lib\site-packages\accelerate\commands\launch.py", line 1104, in launch_command
    simple_launcher(args)
  File "D:\ZZZ\AI\lora-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 '['D:\\ZZZ\\AI\\lora-scripts\\venv\\Scripts\\python.exe', './sd-scripts/train_network.py', '--enable_bucket', '--pretrained_model_name_or_path=./sd-models/model.ckpt', '--train_data_dir=./train/sucai', '--output_dir=./output', '--logging_dir=./logs', '--log_prefix=sucai', '--resolution=512,640', '--network_module=networks.lora', '--max_train_epochs=10', '--learning_rate=1e-4', '--unet_lr=1e-4', '--text_encoder_lr=1e-5', '--lr_scheduler=cosine_with_restarts', '--lr_warmup_steps=0', '--lr_scheduler_num_cycles=1', '--network_dim=32', '--network_alpha=32', '--output_name=sucai', '--train_batch_size=1', '--save_every_n_epochs=2', '--mixed_precision=fp16', '--save_precision=fp16', '--seed=1337', '--cache_latents', '--prior_loss_weight=1', '--max_token_length=225', '--caption_extension=.txt', '--save_model_as=safetensors', '--min_bucket_reso=256', '--max_bucket_reso=1024', '--keep_tokens=0', '--xformers', '--shuffle_caption', '--clip_skip=2', '--optimizer_type=AdamW8bit']' returned non-zero exit status 1.
Train finished


是什么问题
回复 支持 反对

使用道具 举报

0

主题

55

帖子

454

积分

初级丹师

Rank: 3Rank: 3

积分
454
发表于 2023-4-22 17:02:29 | 显示全部楼层
devilshy 发表于 2023-4-16 17:47
解决了No module named 'xformers',又报错啦Error caught was: No module named 'triton'

试过直 ...

这个问题不用管它,
回复 支持 反对

使用道具 举报

0

主题

1

帖子

45

积分

初级丹童

Rank: 1

积分
45
发表于 2023-4-22 17:43:00 | 显示全部楼层
运行完了 "install-cn.ps1"
SDwebUI在哪打开?
回复 支持 反对

使用道具 举报

0

主题

8

帖子

90

积分

高级丹童

Rank: 2

积分
90
发表于 2023-4-22 18:02:39 | 显示全部楼层
感谢大神的指导很有用
回复 支持 反对

使用道具 举报

0

主题

2

帖子

91

积分

高级丹童

Rank: 2

积分
91
发表于 2023-5-3 16:37:34 | 显示全部楼层
很详细的教程
回复 支持 反对

使用道具 举报

45

主题

353

帖子

5513

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
5513

万事如意节日勋章

发表于 2023-5-3 23:19:39 | 显示全部楼层
[Dataset 0]
loading image sizes.
100%|████████████████████████████████████████████████████████████████████████████████| 57/57 [00:00<00:00, 2597.94it/s]
make buckets
number of images (including repeats) / 各bucketの画像枚数(繰り返し回数を含む)
bucket 0: resolution (512, 512), count: 171
mean ar error (without repeats): 0.0
prepare accelerator
Traceback (most recent call last):
  File "I:\pro\lora-scripts\sd-scripts\train_network.py", line 773, in <module>
    train(args)
  File "I:\pro\lora-scripts\sd-scripts\train_network.py", line 139, in train
    accelerator, unwrap_model = train_util.prepare_accelerator(args)
  File "I:\pro\lora-scripts\sd-scripts\library\train_util.py", line 2847, in prepare_accelerator
    accelerator = Accelerator(
  File "I:\pro\lora-scripts\venv\lib\site-packages\accelerate\accelerator.py", line 355, in __init__
    raise ValueError(err.format(mode="fp16", requirement="a GPU"))
ValueError: fp16 mixed precision requires a GPU
Traceback (most recent call last):
  File "C:\Users\weir\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\weir\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "I:\pro\lora-scripts\venv\Scripts\accelerate.exe\__main__.py", line 7, in <module>
  File "I:\pro\lora-scripts\venv\lib\site-packages\accelerate\commands\accelerate_cli.py", line 45, in main
    args.func(args)
回复 支持 反对

使用道具 举报

6

主题

406

帖子

2万

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
20747
发表于 2023-5-4 17:31:35 | 显示全部楼层
A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
训练提示的,能看看嘛,真是呜呜呜
回复 支持 反对

使用道具 举报

3

主题

63

帖子

1698

积分

初级丹圣

Rank: 8Rank: 8

积分
1698
发表于 2023-5-6 09:59:03 | 显示全部楼层
一脸懵逼的先回复再看,十几年没有摸电脑了
回复 支持 反对

使用道具 举报

19

主题

126

帖子

1234

积分

初级丹圣

Rank: 8Rank: 8

积分
1234
发表于 2023-6-14 21:09:41 | 显示全部楼层
raise ValueError(err.format(mode="fp16", requirement="a GPU"))
ValueError: fp16 mixed precision requires a GPU

楼主这个报错怎么搞呀
回复 支持 反对

使用道具 举报

3

主题

79

帖子

852

积分

高级丹师

Rank: 5Rank: 5

积分
852
发表于 2023-7-10 21:51:11 | 显示全部楼层
想要玩的6,要学的东西太多了啊
回复 支持 反对

使用道具 举报

QQ|Archiver|手机版|deepfacelab中文网 |网站地图

GMT+8, 2024-10-18 16:33 , Processed in 0.093991 second(s), 8 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表