Coder Social home page Coder Social logo

Comments (5)

ahaliassos avatar ahaliassos commented on August 23, 2024

Hi, we only tested the code with python 3.8 and the versions of the packages as listed in requirements.txt. I would suggest creating a new conda environment with python 3.8 and then pip installing from requirements.txt. Hope that helps.

from lipforensics.

aaawrong avatar aaawrong commented on August 23, 2024

Thanks for your reply!And sorry to bother you again.
I tried using python3.8 and the requirements.But when I run the crop_mouths.py,it still make a mistake.
The landmark pictures (png) I made are 960x480, and then I turn then into npy. Maybe there was a mistake here?

File "F:\Anaconda3\envs\py38torch19\lib\site-packages\skimage\transform_geometric.py", line 1621, in estimate_transform
tform.estimate(src, dst, *args, **kwargs)
File "F:\Anaconda3\envs\py38torch19\lib\site-packages\skimage\transform_geometric.py", line 1362, in estimate
self.params = _umeyama(src, dst, estimate_scale=True)
File "F:\Anaconda3\envs\py38torch19\lib\site-packages\skimage\transform_geometric.py", line 128, in _umeyama
A = dst_demean.T @ src_demean / num
ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 960 is different from 5)

from lipforensics.

ahaliassos avatar ahaliassos commented on August 23, 2024

In what format are the landmarks you use? The numpy array of the landmarks for each frame must be of size (68, 2), i.e., there are 68 landmarks per frame. You can use FAN to compute them.

from lipforensics.

ahaliassos avatar ahaliassos commented on August 23, 2024

Closing this now. Please reopen if you're still having issues.

from lipforensics.

aaawrong avatar aaawrong commented on August 23, 2024

Closing this now. Please reopen if you're still having issues.

Sorry for the late reply, thanks for your help.

from lipforensics.

Related Issues (13)

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.