- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 tensorflow 的reshape()和resize()函数
如果Linux上没有安装opencv即import cv2报错,image=cv2.resize(image,(76,76)).reshape((1,76,76,3))以上语句可以由PIL中的函数代替,语句如下:#coding=utf-8import tensorflow as tfimport osimport numpy as npfrom PIL
2017-06-29 16:46:28 6732
原创 报tensorflow.python.framework.errors.InvalidArgumentError:Node'save/restore_slice_2':错误的解决方案
以上错误是在执行tf.train.Saver(max_to_keep=None).save(sess, os.path.join('model','model.ckpt'))出错,是由于warning导致。解决方案:def train(): #encode_to_tfrecords() image, label = read_and_de
2017-06-27 14:22:35 365
原创 tensorflow的错误:IndentationError:unexpected indent及解决方案
出现该错误的原因是由于代码格式有误,可能是由于代码缩进导致格式没对齐等原因
2017-06-27 14:01:29 2766
原创 关于opencv的Mat类型的imwrite()函数写入.jpg图像像素值会改变的解决方案
#include #include #include using namespace std;using namespace cv;int main(){ string path = "F:\\example_tongue\\18标定.jpg"; Mat src = cv::imread(path); Mat dst =Mat::zeros(1276
2017-06-08 17:03:14 4449 4
原创 Ubuntu14.04安装PIL(Image) Package出现的bug及解决方案
安装PIL时出现各种莫名其妙的的bug时用:sudo pip install pillow,安装成功的话from PIL import Image正常执行。pip也需要安装。
2017-06-06 17:08:00 391
libSvm使用方法基于python
2017-03-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人