sail-sg / EditAnything

Edit anything in images powered by segment-anything, ControlNet, StableDiffusion, etc. (ACM MM)
Apache License 2.0
3.34k stars 191 forks source link

TypeError: __call__() got an unexpected keyword argument 'alpha_weight' #32

Open MahdiMohseni0033 opened 1 year ago

MahdiMohseni0033 commented 1 year ago

Hey thanks for sharing your amazing work , during getting inference from your code I had faced with TypeError: __call__() got an unexpected keyword argument alpha_weight multiple time and I had no Idea how can I fix this , I'll be so thankful if you could help me

gasvn commented 1 year ago

Can you please let me know how this error happened?

ikuinen commented 1 year ago

@gasvn @MahdiMohseni0033 Should be fixed right now.

https://github.com/sail-sg/EditAnything/blob/f123c475c261c63651f7d63262570dd575ce8f3f/sam2edit_lora.py#L602-L631

MahdiMohseni0033 commented 1 year ago

thanks for your kind respone