AITTSMD / MTCNN-Tensorflow

Reproduce MTCNN using Tensorflow
1.51k stars 713 forks source link

pos_24.txt not found #300

Open sunny1072 opened 4 years ago

sunny1072 commented 4 years ago

Hi,

While running gen_imglist_rnet.py I am getting below error.

Traceback (most recent call last): File "gen_imglist_rnet.py", line 20, in <module> with open(os.path.join(data_dir, '%s/pos_%s.txt' % (dir_name, size)), 'r') as f: FileNotFoundError: [Errno 2] No such file or directory: '../../DATA/no_LM24/pos_24.txt'

COuld you please help me here?

galuhputraa commented 1 year ago

sam with me

galuhputraa commented 1 year ago

i think in gen_hard_example.py we are using Onet but we must use RNet first so change it in line around 231-240

`if name == main:

#net = 'ONet'
net = 'RNet'

if net == "RNet":
    image_size = 24
if net == "ONet":
    image_size = 48

`