Giter Club home page Giter Club logo

Comments (6)

tomas-gajarsky avatar tomas-gajarsky commented on June 6, 2024

Hi, I had a quick look at the code you provided and I think that the problem might be in the order of colors. Cv2 imread returns a BGR image array while the face verification model works with RGB. Try to change the order of channels in your test_torch tensors using the rgb2bgr function from facetorch.utils module (it also works for bgr2rgb) and let me know if that provides the correct results.

from facetorch.

teodred avatar teodred commented on June 6, 2024

Thank you for your response.
I have tried to change the order of channels. But it didn't help.
Here is the new results:


tensor(0.1691) result of analyzer
tensor(0.6214) result of predictor


Result of analyzer is different, because i have picked different photos.

from facetorch.

tomas-gajarsky avatar tomas-gajarsky commented on June 6, 2024

Alright, thanks for trying to change the order of colors. I have some additional questions that could help me say what the issue is:

Which result makes more sense to you? Are the faces from the two images one person or different people?

Do the images contain single cropped-out faces? What's the resolution of these images?

from facetorch.

tomas-gajarsky avatar tomas-gajarsky commented on June 6, 2024

FaceAnalyzer resizes the input images to 1080 x 1080 resolution using the ImageReader. The results might be different if your input image is much smaller, which might be true for cropped-out faces.

Change the size of the ImageReader Resize transform in /conf/analyzer/reader/default.yaml to the length of the longer side of the specific input image.

from facetorch.

wangting0 avatar wangting0 commented on June 6, 2024

path_config="gpu.config.yml"

Hello, how did you write this config file? Could you please tell me about it? Thank you very much!

from facetorch.

tomas-gajarsky avatar tomas-gajarsky commented on June 6, 2024

path_config="gpu.config.yml"

Hello, how did you write this config file? Could you please tell me about it? Thank you very much!

You can use the merged config file or its GPU version located in the same directory.

from facetorch.

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.