Code Monkey home page Code Monkey logo

Comments (11)

caidewu avatar caidewu commented on August 15, 2024 8

@Jeriousman
微信图片_20231029091000

from video-retalking.

kunncheng avatar kunncheng commented on August 15, 2024 3

First you should check if there are any frames in your input video that don't have faces. You should cut out these clips.

In some cases, even though the input video contains full faces, the pre-trained detector still fails to detect them.
In my experience, when the face resolution is too large or the face area proportion is too large, it may not be detected. This may be related to the face detector's training set.

from video-retalking.

PanJinquan avatar PanJinquan commented on August 15, 2024 2

fix this bug:
mask_sharp = np.zeros((height, width), dtype=np.float32)

from video-retalking.

kunncheng avatar kunncheng commented on August 15, 2024 1

Sorry for the confusing error.
The reason seems to be that one frame in the video fails to detect a face.
The GPEN detection code is here.

from video-retalking.

blackjxxx avatar blackjxxx commented on August 15, 2024 1

fix this bug: mask_sharp = np.zeros((height, width), dtype=np.float32)

fix this bug: mask_sharp = np.zeros((height, width), dtype=np.float32)

Where to write this line of code

from video-retalking.

Someonetoldme584 avatar Someonetoldme584 commented on August 15, 2024 1

I cant see the temps ?

from video-retalking.

indianajson avatar indianajson commented on August 15, 2024

Thanks for getting back to me, I bypassed that bit of code and ran into more errors. Eventually, I got an error telling me "a face wasn't detected". I didn't realize that was causing all the issues, thank you for telling me!

In situations like this, what's the best course of action? A different source video?

from video-retalking.

indianajson avatar indianajson commented on August 15, 2024

The source definitely has a face in every frame, but I think it may be face area proportion. I cropped the video quite a bit for my test and I'll bet that's why it's having trouble.

Thanks so much for your help and fast response. This project is super exciting and I'm anticipating being blown away by my own results... as soon as I get an actual render. 😅

from video-retalking.

Jeriousman avatar Jeriousman commented on August 15, 2024

@PanJinquan Can you specify where to insert that piece of code?

from video-retalking.

Fillllllllllll avatar Fillllllllllll commented on August 15, 2024

@Jeriousman 微信图片_20231029091000

Hi! If i'm using colab version - where should i put this?

from video-retalking.

arielweinberger avatar arielweinberger commented on August 15, 2024

@Fillllllllllll
https://github.com/OpenTalker/video-retalking/blob/main/third_part/GPEN/gpen_face_enhancer.py

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.