自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

原创 tensorflow保存路劲有误及解决方法

出现以上错误是由于tf.train.Saver().save()函数的路径填写不正确

2017-06-26 17:15:05 433

原创 关于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

第三步输入以下命令e\Anaconda\pythongridpyheart_scale其中e\Anaconda\python的python是指pythonexee\Anaconda是pythonexe

2017-03-29

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除