p1atdev / LECO

Low-rank adaptation for Erasing COncepts from diffusion models.
https://arxiv.org/abs/2303.07345
Apache License 2.0
307 stars 23 forks source link

Error: "euler_a" and "lms" not working, tensors on different devices #20

Open torridgristle opened 1 year ago

torridgristle commented 1 year ago

Same error for "euler_a" and "lms" noise schedulers.

Traceback (most recent call last):
  File "/content/LECO/./train_lora.py", line 334, in <module>
    main(args)
  File "/content/LECO/./train_lora.py", line 321, in main
    train(config, prompts)
  File "/content/LECO/./train_lora.py", line 166, in train
    latents = train_util.get_initial_latents(
  File "/content/LECO/train_util.py", line 55, in get_initial_latents
    latents = noise * scheduler.init_noise_sigma
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

"ddim" still works fine.

yuelinrx commented 4 months ago

have you solved the problem?