yolov5-face
yolov5-face copied to clipboard
some issues when i use the pretrained models yolov5s-face.pt
there are my paramters:
parser = argparse.ArgumentParser() parser.add_argument('--weights', type=str, default='weights/yolov5s-face.pt', help='initial weights path') parser.add_argument('--cfg', type=str, default='models/yolov5s.yaml', help='model.yaml path') parser.add_argument('--data', type=str, default='data/plate-face.yaml', help='data.yaml path')
others paramters are default.Then when i run train.py ,the error occurrs:(
**Starting training for 300 epochs...
Epoch gpu_mem box obj cls landmark total targets img_size
0%| | 0/817 [00:00<?, ?it/s]/home/cxy/anaconda3/envs/Pytorch/lib/python3.7/site-packages/torch/nn/functional.py:780: UserWarning: Note that order of the arguments: ceil_mode and return_indices will changeto match the args list in nn.MaxPool2d in a future release.
warnings.warn("Note that order of the arguments: ceil_mode and return_indices will change"
0%| | 0/817 [00:02<?, ?it/s]
Traceback (most recent call last):
File "/home/cxy/PycharmProjects/yolov5-face-master/train.py", line 512, in
can you help me solve the problem? very apprciate to your apply...
By the way,when i use the same parameters above,and choose yolov5s.pt(NOT THE yolov5s-face.pt) as the pretrained model,no errors occurrs