- 博客(7)
- 资源 (2)
- 收藏
- 关注
原创 ubantu中为每个文件夹里面的文件生成对应的txt文件,内容为文件夹的名字
参考连接:https://blog.csdn.net/banana1006034246/article/details/791604600:将同一类别的不同图片放在一个目录下,将此文件放在此目录下执行,为每张图片生成txt文件,内容就是目录的名字,txt文件 保存在 文件夹 1-image_labels_dir 里面1:文件夹为一个类别,如: Adir=$(cd "$(dirname "...
2019-06-29 22:26:14 407
原创 tensorflow四舍五入 与 大于某个值为1,小于为0
参考链接: https://blog.csdn.net/xxy0118/article/details/85999155#!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Fri Jun 28 16:32:09 2019@author: muli"""import tensorflow as tflabel ...
2019-06-28 16:40:45 2544
原创 图像多标签标注准确率(accuracy)、精确率(precision)、召回率(recall)和F1值计算
参考链接:https://blog.csdn.net/weixin_41650458/article/details/82555775#!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Thu Jun 13 21:09:48 2019@author: muli"""import numpy as np #y_t...
2019-06-13 21:27:47 5879 7
原创 tf.placeholder_with_default案例
#!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on Fri Jun 7 11:17:10 2019@author: muli"""import tensorflow as tfimport numpy as npdef mand(a): # tf.placeholder_with_default ...
2019-06-08 11:28:50 2564
原创 tensorflow中对指定变量进行初始化
获取未初始化的变量集合print(sess.run(tf.report_uninitialized_variables()))例如我的:[b’Conv2d_1b_1x1/weights’ b’Conv2d_1b_1x1/biases’ b’Conv2d_2a_5x5/weights’ b’Conv2d_2a_5x5/biases创建所有变量集合:lac_var=[]获取所有变量:...
2019-06-08 11:08:23 1546
原创 报错:tensorflow.InvalidArgumentError: Input reshape is 7680 values, but the requested shape has 768
报错:tensorflow.python.framework.errors_impl.InvalidArgumentError: Input to reshape is a tensor with 76800 values, but the requested shape has 768 print("auxiliary_tensor:",auxiliary_tensor) # ...
2019-06-05 20:00:30 2969 2
原创 读取classify_image_graph_def.pb的tensor name
# -*- coding: utf-8 -*-import tensorflow as tfimport osmodel_dir = 'Inception_model'model_name = 'classify_image_graph_def.pb'# 读取并创建一个图graph来存放Google训练好的Inception_v3模型(函数)def create_graph():...
2019-06-01 10:45:46 899 1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人