allanzelener / YAD2K

YAD2K: Yet Another Darknet 2 Keras
Other
2.71k stars 879 forks source link

when I run the code "yolo_model = load_model("model_data/yolov2.h5")" always raise an error #182

Closed nTnZone closed 4 years ago

nTnZone commented 4 years ago

the error is : File "C:\Users\Oscar\Desktop\yad2k\yad2k\models\keras_yolo.py", line 32, in space_to_depth_x2 AttributeError: module 'tensorflow' has no attribute 'space_to_depth' It's quite strange that I don't have the system path above. I wonder this path is somewhere in your source code file? How do i fix it

nTnZone commented 4 years ago

I use win10 and tensorflow.keras, and I tune all the place should convert to TF v2.0, include API