LeonLok / Multi-Camera-Live-Object-Tracking

Multi-camera live traffic and object counting with YOLO v4, Deep SORT, and Flask.
GNU General Public License v3.0
972 stars 283 forks source link

Error while using Yolov1 stream :Cannot interpret feed_dict #10

Closed ajithvcoder closed 4 years ago

ajithvcoder commented 4 years ago

Hi , I am able to run cam 0 and yolo0 but while running yolov1 (after changing <!img/> to in templates) i am facing this error screenshot - https://ibb.co/fHxyNZf "Cannot interpret feed_dict as Tensor : Tensor ("placeholder :0", shape=(3,3,3,32) is a element of graph)" . Could you let me know what i should change

LeonLok commented 4 years ago

I'm not sure why that's happening since I've not had that issue before, but I found this on Google that might be related: https://datascience.stackexchange.com/a/55790

It seems like it could be something to do with the Flask app using multi-threading? You could maybe add K.clear_session() in yolo.py and see if that works.