Git Product home page Git Product logo

Comments (21)

yyz845935161 avatar yyz845935161 commented on September 24, 2024 13

After a few days of hard work, I visualized every variable in the code by going through it line by line. The easiest way to do this is:
Lines 251-265 in [video-retalking/inference.py] are changed to the following code, which is commented in all other codes. This method does not compress the picture, but restorer.enhance method enhances the graphic.

          cropped_faces, restored_faces, restored_img = restorer.enhance(
               ff, has_aligned=False, only_center_face=True, paste_back=True)
           out.write(restored_img)

like this !
image

from video-retalking.

kunncheng avatar kunncheng commented on September 24, 2024 8

Thanks for pointing that out.
I will check the cause of this problem.

from video-retalking.

jedisun76cn avatar jedisun76cn commented on September 24, 2024 3

After a days of hard work, I debuged and traced the code by going through it line by line. i solved the issue by modifying only one-line code like belowed:

pp, orig_faces, enhanced_faces = enhancer.process(pp, xf, bbox=c, face_enhance=True, possion_blending=False) 

from video-retalking.

nagaki09 avatar nagaki09 commented on September 24, 2024 2

After a few days of hard work, I visualized every variable in the code by going through it line by line. The easiest way to do this is: Lines 251-265 in [video-retalking/inference.py] are changed to the following code, which is commented in all other codes. This method does not compress the picture, but restorer.enhance method enhances the graphic.

          cropped_faces, restored_faces, restored_img = restorer.enhance(
               ff, has_aligned=False, only_center_face=True, paste_back=True)
           out.write(restored_img)

like this ! image

清晰度问题确实得到了解决,但是人脸处会出现方框

from video-retalking.

marcelgoya avatar marcelgoya commented on September 24, 2024

I am experiencing the same problem. That's how it looks:

merkel.mp4

from video-retalking.

labels168 avatar labels168 commented on September 24, 2024

感謝您指出了這一點。 我會檢查這個問題的原因。

This happened to me too, and the surroundings became giant teeth, please help to solve the problem, thank you very much!

from video-retalking.

xuguozhi avatar xuguozhi commented on September 24, 2024

+1

from video-retalking.

hobinson avatar hobinson commented on September 24, 2024

The same problem

from video-retalking.

LittleTerry avatar LittleTerry commented on September 24, 2024

same here

from video-retalking.

zhixingrenai avatar zhixingrenai commented on September 24, 2024

me too

from video-retalking.

henrycjh avatar henrycjh commented on September 24, 2024

same here @kunncheng

from video-retalking.

yyz845935161 avatar yyz845935161 commented on September 24, 2024

me too,how to improve video

from video-retalking.

xuelinghao avatar xuelinghao commented on September 24, 2024

我这也一样,720P的片子都会碰到问题,希望可以帮助解决,谢谢

from video-retalking.

Inferencer avatar Inferencer commented on September 24, 2024

can your share result using that please, saves me reinstalling

from video-retalking.

labels168 avatar labels168 commented on September 24, 2024

經過幾天的努力,我將代碼中的每個變量逐行查看可視化。最簡單的方法是: 將 [video-retalking/inference.py] 中的第 251-265 行更改為以下代碼,該代碼在所有其他代碼中都有註釋。該方法不壓縮圖片,restorer.enhance方法是對圖片進行增強。

          cropped_faces, restored_faces, restored_img = restorer.enhance(
               ff, has_aligned=False, only_center_face=True, paste_back=True)
           out.write(restored_img)

像這樣 ! 圖像

Can you provide the installer, or provide the code so we can update it? Thank you!

from video-retalking.

LittleTerry avatar LittleTerry commented on September 24, 2024

After a few days of hard work, I visualized every variable in the code by going through it line by line. The easiest way to do this is: Lines 251-265 in [video-retalking/inference.py] are changed to the following code, which is commented in all other codes. This method does not compress the picture, but restorer.enhance method enhances the graphic.

          cropped_faces, restored_faces, restored_img = restorer.enhance(
               ff, has_aligned=False, only_center_face=True, paste_back=True)
           out.write(restored_img)

like this ! image

您好,我这边经过尝试,您提供的代码确实可以运行,但效果是:在人脸处会出现正方形。请问有办法改进吗?谢谢!

from video-retalking.

QuantJia avatar QuantJia commented on September 24, 2024

+1

from video-retalking.

TalhaaaYaqoob avatar TalhaaaYaqoob commented on September 24, 2024

+1

from video-retalking.

wangnan0610 avatar wangnan0610 commented on September 24, 2024

+1

from video-retalking.

KartavyaBagga avatar KartavyaBagga commented on September 24, 2024

After a days of hard work, I debuged and traced the code by going through it line by line. i solved the issue by modifying only one-line code like belowed:

pp, orig_faces, enhanced_faces = enhancer.process(pp, xf, bbox=c, face_enhance=True, possion_blending=False) 

I Appreciate your hard work going through the code line by line, did you find something which could make the inference for lip synthesis faster ?

from video-retalking.

OmriCBT avatar OmriCBT commented on September 24, 2024

After a days of hard work, I debuged and traced the code by going through it line by line. i solved the issue by modifying only one-line code like belowed:

pp, orig_faces, enhanced_faces = enhancer.process(pp, xf, bbox=c, face_enhance=True, possion_blending=False) 

Thank you! I can confirm this solves the issue of blurry output. But, I personally don't like the face enhancement as it is too aggressive and changes the original face too much. If you wish to avoid this result as well - leave face_enhace as "False" and just change possion_blending to "False". it still loses some of the original video's quality but the box around the face is solved.

from video-retalking.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.