Closed vincentkieboom closed 4 years ago
After update yolov4, try again.
python3 -m pip install -U yolov4
Same error..
What is your tensorflow version?
Edit like below
~\anaconda3\lib\site-packages\yolov4\model\yolov4.py
s_bboxes = self.decode93(s_bboxes, training=training)
...
m_bboxes = self.decode101(m_bboxes, training=training)
...
l_bboxes = self.decode109(l_bboxes, training=training)
python 3.6.9, Linux Ubuntu yolov4 v0.11.0 tensorflow v2.2.0
I tested it now, but I can't make same error.
What is your tensorflow version?
Edit like below
~\anaconda3\lib\site-packages\yolov4\model\yolov4.py
s_bboxes = self.decode93(s_bboxes, training=training) ... m_bboxes = self.decode101(m_bboxes, training=training) ... l_bboxes = self.decode109(l_bboxes, training=training)
After edit I get this error message:
---------------------------------------------------------------------------
error Traceback (most recent call last)
<ipython-input-2-9306638226c6> in <module>
6
7 yolo.inference(
----> 8 media_path=".test.jpg")
~\anaconda3\lib\site-packages\yolov4\tf\__init__.py in inference(self, media_path, is_image, cv_waitKey_delay)
197 if is_image:
198 frame = cv2.imread(media_path)
--> 199 frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
200
201 prev_time = time.time()
error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
I'm on tf v2.2.0
----> 8 media_path=".test.jpg")
.test.jpg
is invalid name.
./test.jpg
or /<path>/test.jpg
Ah indeed, this worked! Thank you!
After modifying the parameters and adding a clear error message output, I will close it. Thanks @vincent1618
tf: add FileNotFoundError in YOLOv4.inference() 45c7516 model: yolov4: modify positional arg to keyword arg 9889f8f
I'm not able to run the code because of the following errormessage. Please help.
My code:
I get the following error when running my code: