3DDFA_V2 icon indicating copy to clipboard operation
3DDFA_V2 copied to clipboard

Did not detect all the faces in the image

Open lingcong-k opened this issue 4 years ago • 9 comments

Describe the bug Hi, Thanks for the great repo. I met few cases that not all the faces are detected, is that a bug or just misdetection? Thanks

image

To Reproduce this is the original image

image

lingcong-k avatar Feb 19 '21 11:02 lingcong-k

It is a misdetection. You can try to modify the confidence threshold here.

cleardusk avatar Feb 19 '21 15:02 cleardusk

It is a misdetection. You can try to modify the confidence threshold here.

Thanks. changing that threshold didn't help but still it is good..

And I have one more question..
I have the UV tex image, how can I render it back to the original image? is there any function can help me do that? (Coz I will find a particular area in the UV tex image, and then I render it back to the original image, so that i have a mask for that particular area.) Thanks

lingcong-k avatar Feb 19 '21 15:02 lingcong-k

If the UV tex is corresponding to BFM model, you can render it back to the image by sampling. This repo seems not to provide such function, you can refer to any rendering lib or modify the render functions.

cleardusk avatar Feb 19 '21 16:02 cleardusk

Hi, do you sucessfully run the demo? when I run the code python demo.py -f examples/inputs/emma.jpg *** Error in `python': munmap_chunk(): invalid pointer: 0x00007f7a39596ce0 ***? would you like help me solve the error? TKS very much

cyjouc avatar Feb 20 '21 01:02 cyjouc

If the UV tex is corresponding to BFM model, you can render it back to the image by sampling. This repo seems not to provide such function, you can refer to any rendering lib or modify the render functions.

Thanks for you answer. :)

lingcong-k avatar Feb 20 '21 15:02 lingcong-k

Hi, do you sucessfully run the demo? when I run the code python demo.py -f examples/inputs/emma.jpg *** Error in `python': munmap_chunk(): invalid pointer: 0x00007f7a39596ce0 ***? would you like help me solve the error? TKS very much

HI, yes, the demo run smoothly for me.. Maybe u can ask the author about this error. I have no clue about the error info.

lingcong-k avatar Feb 20 '21 15:02 lingcong-k

Hi, do you sucessfully run the demo? when I run the code python demo.py -f examples/inputs/emma.jpg *** Error in `python': munmap_chunk(): invalid pointer: 0x00007f7a39596ce0 ***? would you like help me solve the error? TKS very much

HI, yes, the demo run smoothly for me.. Maybe u can ask the author about this error. I have no clue about the error info.

HI,would you like share the version of requirment env?

cyjouc avatar Feb 22 '21 06:02 cyjouc

Hi, do you sucessfully run the demo? when I run the code python demo.py -f examples/inputs/emma.jpg *** Error in `python': munmap_chunk(): invalid pointer: 0x00007f7a39596ce0 ***? would you like help me solve the error? TKS very much

HI, yes, the demo run smoothly for me.. Maybe u can ask the author about this error. I have no clue about the error info.

HI,would you like share the version of requirment env?

my env is: ubuntu 20.04.1 python 3.6.12 pytorch 1.3.1 cuda 11.0

lingcong-k avatar Feb 23 '21 14:02 lingcong-k

tks for your help! Do you succefully train the model?would you like share the training code?

cyjouc avatar Feb 24 '21 01:02 cyjouc