Open Jon-Zbw opened 1 year ago
whole message:
/home/bowen/zhang3/LDM/lora-scripts/sd-scripts/venv/lib/python3.9/site-packages/torch/utils/checkpoint.py:31: UserWarning: None of the inputs have requires_grad=True. Gradients will be None
warnings.warn("None of the inputs have requires_grad=True. Gradients will be None")
Traceback (most recent call last):
File "/home/bowen/zhang3/LDM/lora-scripts/sd-scripts/./sdxl_train_network.py", line 174, in
Unfortunately, the bucket_reso_steps
lower than 32 is not supported in SDXL. Please use 32
or higher.
I will add checking for it.
@kohya-ss thks for replying, the problem is found to be set : bucket_no_upscale=true
Even if bucket_no_upscale=true
, the resolution of the bucket should be divisible by bucket_reso_steps
. So if you set bucket_reso_steps
to 32 or higher, and get the error, there may be a bug. What the value you use for bucket_reso_steps
option?
@kohya-ss Unfortunately, it's 32 ,But the situation at that time was:min_bucket_reso=256 max_bucket_reso=1024 ,about traindata , both width and height are greater than 1024
after got error ,i setted min_bucket_reso=640 max_bucket_reso=1024 resolution = "640,1024" bucket_no_upscale=false and resize the traindata to 640*1024,then it worked
File "/home/bowen/zhang3/LDM/lora-scripts/sd-scripts/library/sdxl_original_unet.py", line 1080, in forward h = torch.cat([h, hs.pop()], dim=1) RuntimeError: Sizes of tensors must match except in dimension 1. Expected size 58 but got size 57 for tensor number 1 in the list.