GithubHelp home page GithubHelp logo

RGB or BGR input? about mtcnn HOT 4 OPEN

ipazc avatar ipazc commented on May 18, 2024
RGB or BGR input?

from mtcnn.

Comments (4)

Andriy963 avatar Andriy963 commented on May 18, 2024 3

I tested this solution on Wider Face validation dataset for both cases(RGB and BGR) and got next results:
For BGR images(using code from readme file at this repo):
==================== Results ====================
Easy Val AP: 0.5647998370785989
Medium Val AP: 0.5219529625700366
Hard Val AP: 0.2856212575529135

For RGB images(with converting to RGB after image reading):
==================== Results ====================
Easy Val AP: 0.8069582917049369
Medium Val AP: 0.7637617089872778
Hard Val AP: 0.4867522878479363

So, there should be converting to RGB format before processing.

from mtcnn.

raviam avatar raviam commented on May 18, 2024 2

@nyck33 For the blue output images, you can change the colormap of the image before cv2.imwrite() by doing image = cv2.cvtColor(image, cv2.COLOR_RGB2BGR) and passing it to cv2.imwrite()

from mtcnn.

nyck33 avatar nyck33 commented on May 18, 2024

@Andriy963 @acnazarejr Great to know, I just posted on StackExchange about this how pyplot.imread() was giving better results than the cv2.imread()

However, now my output when I cv2.imwrite() looks very blue.

from mtcnn.

punitha-valli avatar punitha-valli commented on May 18, 2024

@acnazarejr @Andriy963 @nyck33 @raviam @akofman

Can you please tell me, which script is suitable to get the boundary box details as ".data" format, for my dataset (OULU),

Thanks in advance

from mtcnn.

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.