s9roll7 / animatediff-cli-prompt-travel

animatediff prompt travel
Apache License 2.0
1.17k stars 105 forks source link

Output quality for img2img become lower #199

Closed alanhuang67 closed 7 months ago

alanhuang67 commented 7 months ago

After updating to the latest bug fix version, the image quality of img2img becomes lower and blurry.

s9roll7 commented 7 months ago

After updating to the latest bug fix version, the image quality of img2img becomes lower and blurry.

can you upload json file?

git show -s --format=%H Can you look up the commit id with this command and post it?

alanhuang67 commented 7 months ago

b6fbe11b47c5a86a33ca6e4e7546ec72222d5565

json here 1206_HAND.json

feel like have afterimage after update new version

output sample before update 00000001

after update 00000014

s9roll7 commented 7 months ago

Thank you. I know what caused it. The latest version is to reduce ram capacity and generation time. The resolution of controlnet is reduced to (512,*) except for "controlnet_tile". I thought that everything except "tile" would have no effect on the results, but I was wrong.

If you want to fix it now, the following should fix it

https://github.com/s9roll7/animatediff-cli-prompt-travel/blob/685903f39852f978337306bd1cd7bdcc0b29fb50/src/animatediff/pipelines/animation.py#L2780

no_shrink_type = ["controlnet_tile", "controlnet_depth"]

alanhuang67 commented 7 months ago

Thanks so much!

do I need to add openpose if I use it?

s9roll7 commented 7 months ago

Perhaps openpose doesn't affect the quality even if the resolution is low.

alanhuang67 commented 6 months ago

@s9roll7 hello, it still have blur situation after your update!

00000007