insightface icon indicating copy to clipboard operation
insightface copied to clipboard

how to convert .rec and .bin files to images

Open tomriddle54 opened this issue 7 years ago • 6 comments

Hello @yingfeng

I have Downloaded faces_emore and faces_glint data but everything is in .rec or .bin formate I want to convert it into images formate .jpg or.png formate anyone know how can i do this

tomriddle54 avatar Feb 26 '19 11:02 tomriddle54

Hi, FYI: https://github.com/auroua/InsightFace_TF/blob/master/data/mx2tfrecords.py#L33

yunkchen avatar Mar 04 '19 06:03 yunkchen

Extract images from rec or bin files: https://github.com/wujiyang/Face_Pytorch/blob/master/utils/load_images_from_bin.py

leolordwz avatar May 02 '19 01:05 leolordwz

@yunkchen @leolordwz Hi, is there a way to do this in pure python or pytorch?

tengerye avatar Jan 01 '20 05:01 tengerye

introduction https://github.com/eeric/Face_recognition_cnn/blob/main/code/insightface/README.md

eeric avatar Jul 21 '21 06:07 eeric

@yunkchen @leolordwz Hi, is there a way to do this in pure python or pytorch?

Did you find any script for converting rec files to images?

sourabhyadav avatar Nov 23 '22 07:11 sourabhyadav

@sourabhyadav, see above

And yes, you'll need to have MXNet installed since the data is stored in MXNet's native format.

kormalev avatar Nov 23 '22 09:11 kormalev