MTCNN-Tensorflow icon indicating copy to clipboard operation
MTCNN-Tensorflow copied to clipboard

File "gen_landmark_aug_12.py", line 69, in GenerateData assert(img is not None) AssertionError

Open 2006lizeyuan opened this issue 6 years ago • 6 comments

I have download WIDER_train, and do the first step:run gen_12net_data.py. But when I run gen_landmark_aug_12.py, a mistake happened: $ python gen_landmark_aug_12.py Traceback (most recent call last): File "gen_landmark_aug_12.py", line 189, in imgs,landmarks = GenerateData(train_txt, OUTPUT,net,argument=True) File "gen_landmark_aug_12.py", line 69, in GenerateData assert(img is not None) AssertionError Do you know how to solve it? @AITTSMD

2006lizeyuan avatar Jul 27 '18 07:07 2006lizeyuan

@AITTSMD

2006lizeyuan avatar Jul 27 '18 07:07 2006lizeyuan

@2006lizeyuan 检查图像路径,看看是否没读到图像~

AITTSMD avatar Jul 27 '18 10:07 AITTSMD

@2006lizeyuan ,使用项目里的trainImageList.txt ,斜杠问题

bzzhc avatar Jul 31 '18 05:07 bzzhc

这个路径问题怎么解决呢啊? trainImageList.txt 里面的路径对应的是哪个文件夹的图片?

louqiqi avatar Apr 09 '19 13:04 louqiqi

@AITTSMD

louqiqi avatar Apr 09 '19 14:04 louqiqi

Dear Qiqi,

这是我一年前搞的代码,有点记不清了。问题好像是,作者原文件里那个txt文件并不是训练时用的那个,要自己去网上下训练集和相关记录图片名的txt。

Best, Li Zeyuan 1-626-321-8274

在 2019年4月9日,10:02,louqiqi [email protected] 写道:

@AITTSMD

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

2006lizeyuan avatar Apr 09 '19 14:04 2006lizeyuan