rainofmine / Face_Attention_Network

Pytorch implementation of face attention network
313 stars 55 forks source link

About Label encoding file? #6

Open abcdvzz opened 5 years ago

abcdvzz commented 5 years ago

As above, what can label encoding file do? Take Widerface as an example, what's the label and ID?

ehp commented 5 years ago

You can detect more types. E.g. men and women faces so set ID 0 for men faces and ID 1 for women faces. Of course you need proper dataset. For WIDER I used only one label "face" with ID 0.

sosha90 commented 4 years ago

You can detect more types. E.g. men and women faces so set ID 0 for men faces and ID 1 for women faces. Of course you need proper dataset. For WIDER I used only one label "face" with ID 0.

if an image has more than a bounding box what is the correct formate is it: 12--Group/12_Group_Group_12_Group_Group_12_285.jpg 912 239 37 38 face 864 268 34 43 face

or 12--Group/12_Group_Group_12_Group_Group_12_285.jpg 912 239 37 38 face 12--Group/12_Group_Group_12_Group_Group_12_285.jpg 864 268 34 43 face

please help

ehp commented 4 years ago

Second option - see https://github.com/rainofmine/Face_Attention_Network/blob/68393da155da02d365e50e4118ca428eb9d24eb7/dataloader.py#L50