sled-group / InfEdit

[CVPR 2024] Official implementation of CVPR 2024 paper: "Inversion-Free Image Editing with Natural Language"
https://sled-group.github.io/InfEdit/
Other
242 stars 7 forks source link

run app_infedit.py #19

Closed cwwjyh closed 2 months ago

cwwjyh commented 3 months ago

A good work!!! When I run python app_infedit.py, get the following error: gradio=4.24.0 diffusers=0.28.0.dev0 torch=2.0.1 python=3.8 cuda=11.7 image

XxFChen commented 3 months ago

change the ptp_utils.py #93 to hidden_states = attn.to_out[0](hidden_states) then you should fix the error

cwwjyh commented 3 months ago

change the ptp_utils.py #93 to hidden_states = attn.to_out[0](hidden_states) then you should fix the error Thank you! I fixed it. When I run this example, I only get half of the image. Have you encountered it? image 1712109213809

h6kplus commented 3 months ago

I'm not sure whether it's a window scale error, maybe can you download the output imae and see whether it's in half or it's the whole image?