wanglei
wanglei
请教大家一个问题,我现在pb文件生成了,图片和视频流的检测都通过了,但是我想通过调用笔记本的摄像头来进行实时监测,请问大佬们有好的脚本吗?或者从那个视频流video_demo.py怎么修改呢?
标签空格问题
我想请教一下,训练完了,也验证完了,但是运行main.py查看map值时报错说是标签有空格,标签有空格不行吗? 错误提示: If you have a with spaces between words you should remove them by running the script "remove_space.py" or "rename_class.py" in the "extra/" folder. 我按照这个提示改了,也没改好啊,求大佬指点
If you depend on functionality not listed there, please file an issue. Traceback (most recent call last): File "E:/TensorFlowfightGoogle/21project/chapter_3/slim/train_image_classifier.py", line 574, in tf.app.run() File "C:\Program Files\Python36\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run...
修改这个代码的地方我找到了,但是后面不知道怎么改了 with tf.name_scope('summary'): tf.summary.scalar("learn_rate", self.learn_rate) tf.summary.scalar("giou_loss", self.giou_loss) tf.summary.scalar("conf_loss", self.conf_loss) tf.summary.scalar("prob_loss", self.prob_loss) tf.summary.scalar("total_loss", self.loss) #tf.summary.scalar("accuracy", 这里不知道怎么写了) logdir = "./data/log/" if os.path.exists(logdir): shutil.rmtree(logdir) os.mkdir(logdir) self.write_op = tf.summary.merge_all() self.summary_writer = tf.summary.FileWriter(logdir, graph=self.sess.graph)