rohitgandikota / sliders

Concept Sliders for Precise Control of Diffusion Models
https://sliders.baulab.info
MIT License
826 stars 67 forks source link

When I set the batch size to 2, an error message is printed: Error Occurred!: (512, 512, x, x) #98

Open benzhangdragonplus opened 2 months ago

benzhangdragonplus commented 2 months ago

I am training on imageslides, and when I set the batch_size=2 in prompts.yaml, will print error message: Error Occurred!: (512, 512, x, x),but it won't stop training, and when I set the batch size to 1, it's normal again,why?

Here is my configuration file:

prompts_file: "trainscripts/imagesliders/data/light/prompts.yaml" pretrained_model: name_or_path: "D:\zealot\sdxl_v10VAEFix.safetensors" # you can also use .ckpt or .safetensors models v2: false # true if model is v2.x v_pred: false # true if model uses v-prediction network: type: "c3lier" # or "c3lier" or "lierla" rank: 4 # #################### alpha: 1.0 training_method: "full" # full, selfattn, xattn, noxattn, or innoxattn train: precision: "bfloat16" noise_scheduler: "ddim" # or "ddpm", "lms", "euler_a" # #################### iterations: 1600 lr: 0.0002 # #################### optimizer: "AdamW" # #################### lr_scheduler: "constant" max_denoising_steps: 50 save: name: "light_temp" path: "models" per_steps: 200 precision: "bfloat16" logging: use_wandb: false verbose: false other: use_xformers: true

rohitgandikota commented 1 month ago

Hey, thanks for the question! We did not configure batch size for image training. Earlier in our experiments using higher batch size was creating memory issues.