Skip to content

Traceback (most recent call last): File "mtcnn/data_preprocess/gen_Pnet_train_data.py", line 94, in <module> delta_x = np.random.randint(max(-size, -x1), w) File "mtrand.pyx", line 630, in numpy.random.mtrand.RandomState.randint File "bounded_integers.pyx", line 1228, in numpy.random.bounded_integers._rand_int64 ValueError: low >= high #13

Description

@ouening

Hi, when I generate the Pnet train data, some errors happend:

12880 pics in total
/media/gaoya/disk/Applications/pytorch/目标检测/人脸检测/dataset/WIDER_FACE/WIDER_train/images/0--Parade/0_Parade_marchingband_1_849.jpg
/media/gaoya/disk/Applications/pytorch/目标检测/人脸检测/dataset/WIDER_FACE/WIDER_train/images/0--Parade/0_Parade_Parade_0_904.jpg
Traceback (most recent call last):
  File "mtcnn/data_preprocess/gen_Pnet_train_data.py", line 94, in <module>
    delta_x = np.random.randint(max(-size, -x1), w)
  File "mtrand.pyx", line 630, in numpy.random.mtrand.RandomState.randint
  File "bounded_integers.pyx", line 1228, in numpy.random.bounded_integers._rand_int64
ValueError: low >= high

How can I solve it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions