module 'numpy' has no attribute 'int' error from yolov5 files

161 views Asked by At

I'm trying to train my dataset by using yolov5, but I got module 'numpy' has no attribute 'int' error when I start the training and this error coming from yolov5 files probably. I added the screenshot of this error. Could you help me to solve it?

enter image description here

1

There are 1 answers

0
Amir Rooholamini On

This attribute in NumPy has been deprecated. You have two solutions:

  1. During the installation of program requirements, install exactly the version mentioned in the requirements.txt file. That is, an older version.
  2. Clone the new version of yolov5 from GitHub.