Insightface: face2rec2.py error

Created on 17 Sep 2019  路  4Comments  路  Source: deepinsight/insightface

When I use face2rec.py all goes well, but in the end I have this error below:
Traceback (most recent call last): File "face2rec2.py", line 253, in <module> image_encode(args, i, item, q_out) File "face2rec2.py", line 105, in image_encode s = mx.recordio.pack(header, '') File "/home/song/miniconda3/lib/python3.7/site-packages/mxnet/recordio.py", line 393, in pack s = label.tostring() + s TypeError: can't concat str to bytes
It seems like there is something in the last line of .lst file
( I seperate the .lst file into 2 files, error persists.)
Hi someone could help to explain this error?

Most helpful comment

Find the answer in another post
Just modify
mx.recordio.pack(header, b'') in face2rec.py line 105

All 4 comments

Find the answer in another post
Just modify
mx.recordio.pack(header, b'') in face2rec.py line 105

Find the answer in another post
Just modify
mx.recordio.pack(header, b'') in face2rec.py line 105

This post?
You're right.b means for bytes

Find the answer in another post
Just modify
mx.recordio.pack(header, b'') in face2rec.py line 105

This post?
You're right.b means for bytes

yes ;)

Hi @xysong1201,
Would you like to share how to run face2rec2.py file?
Best regards,
PeterPham

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mdv3101 picture mdv3101  路  5Comments

1frey picture 1frey  路  4Comments

zys1994 picture zys1994  路  3Comments

zhenglaizhang picture zhenglaizhang  路  3Comments

ahkarami picture ahkarami  路  4Comments