-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
I have configured the Mac and training but if I try to get preview every x steps or epochs I get this error:
generating sample images at step / サンプル画像生成 ステップ: 50
Traceback (most recent call last):
File "/Users/myuser/Documents/kohya_ss/train_network.py", line 748, in <module>
train(args)
File "/Users/myuser/Documents/kohya_ss/train_network.py", line 616, in train
train_util.sample_images(
File "/Users/myuser/Documents/kohya_ss/library/train_util.py", line 2959, in sample_images
cuda_rng_state = torch.cuda.get_rng_state()
File "/Users/myuser/Documents/kohya_ss/venv/lib/python3.10/site-packages/torch/cuda/random.py", line 22, in get_rng_state
_lazy_init()
File "/Users/myuser/Documents/kohya_ss/venv/lib/python3.10/site-packages/torch/cuda/__init__.py", line 239, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled
steps: 4%|████████▍ | 50/1150 [01:07<24:42, 1.35s/it, loss=0.0911]
Traceback (most recent call last):
File "/Users/myuser/Documents/kohya_ss/venv/bin/accelerate", line 8, in <module>
sys.exit(main())
File "/Users/myuser/Documents/kohya_ss/venv/lib/python3.10/site-packages/accelerate/commands/accelerate_cli.py", line 45, in main
args.func(args)
File "/Users/myuser/Documents/kohya_ss/venv/lib/python3.10/site-packages/accelerate/commands/launch.py", line 1104, in launch_command
simple_launcher(args)
File "/Users/myuser/Documents/kohya_ss/venv/lib/python3.10/site-packages/accelerate/commands/launch.py", line 567, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
Looks like the preview sample part try to force making a preview in CUDA, despite I'm using MPS (metal performance shaders from Apple) for training.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request