Giter Club home page Giter Club logo

Comments (6)

takecareofbigboss avatar takecareofbigboss commented on May 22, 2024

i met the same problem, and hope get ur reply. Is it convenient for you to link with me by wechat(my wechat number: bigbossofwhom).
image

from pytorch_retinaface.

takecareofbigboss avatar takecareofbigboss commented on May 22, 2024

@biubug6

from pytorch_retinaface.

biubug6 avatar biubug6 commented on May 22, 2024

In general, in order to detect the key points accurately, it is necessary to have a large learning rate for the key points. Through such methods the network can be optimized in the direction of utilizing the key points detection.

from pytorch_retinaface.

Dian-Yi avatar Dian-Yi commented on May 22, 2024

@wang-kangkang @takecareofbigboss
have you solved this problem? i meet the same case. the lmk points overlap and always between the eyebrows.

from pytorch_retinaface.

wang-kangkang avatar wang-kangkang commented on May 22, 2024

which may because you didn't notice in data argument, if do the mirror operation of this image, the left eye will be right eye, and vice versa. You should read the following code carefully.

def _mirror(image, boxes, landms):

def _mirror(image, boxes, landms):
_, width, _ = image.shape
if random.randrange(2):
image = image[:, ::-1]
boxes = boxes.copy()
boxes[:, 0::2] = width - boxes[:, 2::-2]
# landm
landms = landms.copy()
landms = landms.reshape([-1, 5, 2])
landms[:, :, 0] = width - landms[:, :, 0]
tmp = landms[:, 1, :].copy()
landms[:, 1, :] = landms[:, 0, :]
landms[:, 0, :] = tmp
tmp1 = landms[:, 4, :].copy()
landms[:, 4, :] = landms[:, 3, :]
landms[:, 3, :] = tmp1
landms = landms.reshape([-1, 10])

return image, boxes, landms

from pytorch_retinaface.

Dian-Yi avatar Dian-Yi commented on May 22, 2024

which may because you didn't notice in data argument, if do the mirror operation of this image, the left eye will be right eye, and vice versa. You should read the following code carefully.

def _mirror(image, boxes, landms):

def _mirror(image, boxes, landms):
_, width, _ = image.shape
if random.randrange(2):
image = image[:, ::-1]
boxes = boxes.copy()
boxes[:, 0::2] = width - boxes[:, 2::-2]

landm

landms = landms.copy()
landms = landms.reshape([-1, 5, 2])
landms[:, :, 0] = width - landms[:, :, 0]
tmp = landms[:, 1, :].copy()
landms[:, 1, :] = landms[:, 0, :]
landms[:, 0, :] = tmp
tmp1 = landms[:, 4, :].copy()
landms[:, 4, :] = landms[:, 3, :]
landms[:, 3, :] = tmp1
landms = landms.reshape([-1, 10])

return image, boxes, landms

thanks very much, i find my code bug in mirror images. the left and right points value is error.

from pytorch_retinaface.

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.