Linaqruf / kohya-trainer

Adapted from https://note.com/kohya_ss/n/nbf7ce8d80f29 for easier cloning
Apache License 2.0
1.82k stars 296 forks source link

TypeError: forward() got an unexpected keyword argument 'region_list' #324

Open Sainzerjj opened 7 months ago

Sainzerjj commented 7 months ago

When I ran regionally_controlable_sampling.py, I encountered the following error "TypeError: forward() got an unexpected keyword argument 'region_list'". It seems that the other modules of the unet network, apart from cross attention inserted RegionT2I_AttnProcessor, do not support the condition of cross_attention_kwargs. I am very confused about this.