cv2.imread 256范围内
e2dict
发表于 | 阅读次数:
1 | dict((name, getattr(ref, name)) for name in dir(ref) if not name.startswith('_')) |
git delete
发表于 | 阅读次数:
直接delete失败
需要直接git rm file
python画图 取消ticks, labels
发表于 | 阅读次数:
1 | # Get rid of the ticks |
np tile使用
发表于 | 阅读次数:
1 | >>> a = np.array([0, 1, 2]) |
shuffle data
发表于 | 阅读次数:
1 | idx = np.random.permutation( n ) |
np.delete
发表于 | 阅读次数:
1 | np.delete([1,3,2], [1]) |
h5py debug冲突
发表于 | 阅读次数:
在debug
的时候,调用h5py读取文件,
然后debug失败。
解决: 关闭h5py读取文件
tensorflow 理解
发表于 | 阅读次数:
- 计算图不在变量内部,它处在全局命名空间内
- placeholder的值一般是常量或者是numpy
- tf.get_variable(“count”, [])
1 | 初始化使用 初始化器和 tf.assign() |
tfdbg使用
发表于 | 阅读次数:
1 | # Let your BUILD target depend on "//tensorflow/python/debug:debug_py" |