AadeIT
AadeIT
@marco8chong 你flask是如何进行改变的(web),我需要你的帮助,谢谢
@marco8chong 当时您在使用flask时有遇到graph的问题吗?我现在这个点上很困扰。我把这个项目整合到flask里面,flask的线程机制和tensorflow发生了矛盾导致graph发生报错。
@marco8chong 谢谢您的回答,我的问题就在这里,在您给我的这篇文档中“This will load your model with the default graph and session from Tensorflow. If you try to do that in multiple threads, you'll have an error.”,这句话的原因是因为不同的线程加载不同的graph容易出现报错所以需要在每一个线程中设置thread_graph = Graph()设置为默认的graph,当你使用flask+keras时也会出现这个问题,第一遍的使用是正常的,第二遍的时候会显示graph问题,所以需要使用graph.as_default()这句函数,但是这个项目中使用的预测函数不是predict所以我很懊恼,不知道graph.as_default()这句话要加在哪里。
您好,您coco的数据集格式是如何修改的。我看代码的数据集和voc的数据集xml文件有点不一样
Change your configuration file,find yolov3,A total of three ****************************************** [convolutional] batch_normalize=1 size=3 stride=1 pad=1 filters=256 activation=leaky [convolutional] size=1 stride=1 pad=1 filters=15 #change this activation=linear [yolo] mask = 0,1,2 anchors =...
Change your configuration file,find [yolo],A total of three Here's the part code ***************************************** [convolutional] batch_normalize=1 size=3 stride=1 pad=1 filters=256 activation=leaky [convolutional] size=1 stride=1 pad=1 filters=15 #change...
you're welcome ------------------ 原始邮件 ------------------ 发件人: "ischansgithub"
we also have this a problem
The problem is not finding the network structure of yolov3, Import py files with network structure `try: from yolo3.model import yolo_body,yolo_head #######yolo3 is file ,model is py ,yolo_body is function...
keras_to_tensorflow.py add: from yolo3.model import yolo_head,yolo_body around 60 lines: def load_model(input_model_path, input_json_path=None, input_yaml_path=None): if not Path(input_model_path).exists(): raise FileNotFoundError( ...