TNTWEN / OpenVINO-YOLOV4

This is implementation of YOLOv4,YOLOv4-relu,YOLOv4-tiny,YOLOv4-tiny-3l,Scaled-YOLOv4 and INT8 Quantization in OpenVINO2021.3
MIT License
238 stars 66 forks source link

AttributeError: module 'tensorflow' has no attribute 'contrib' #62

Open AyaNasser96 opened 2 years ago

AyaNasser96 commented 2 years ago

While try to convert .weights to pb I got this error: AttributeError: module 'tensorflow' has no attribute 'contrib'

File "/home/aya/Deployment_project/OpenVINO-YOLOV4/yolo_v4.py", line 5, in <module> slim = tf.contrib.slim AttributeError: module 'tensorflow' has no attribute 'contrib'

I think it's related to tf version, that the 1.x is deprecated !

hibarasheed17 commented 2 years ago

Have you got any solution for this? I am stuck as well.

AyaNasser96 commented 2 years ago

No, because he used tf 1.x, and all is using tf 2 now, but you could tell me what do you wanna do? and you also could check my answer here if you want to convert yolov4 to IR https://github.com/openvinotoolkit/open_model_zoo/issues/3150#issuecomment-1038003704