- 博客(30)
- 资源 (1)
- 收藏
- 关注
转载 Detectron, Caffe2
1. install nvdia driver, cuda 9.0 and cudnn7.0, and NCCL#1 # Install driversudo apt-get install nvidia-384 nvidia-modprobe# then you will be prompted to disable Secure Boot. Select Disable.#2...
2019-07-15 20:22:11
347
原创 links
Anaconda installer archiveAnaconda3-5.1.0-Linux-x86_64.sh is the version with python3.6http://pytorch.cn/previous-versions/
2019-07-11 19:29:37
199
转载 create python virtual environment with python3.5 and python3.6
sourceThis quick tutorial is going to show you how to install the latest Python 3.6.1 in Ubuntu 16.04 LTS via PPA.Ubuntu 16.04 comes with both Python 2.7 and Python 3.5 by default. You can install...
2019-06-19 14:48:40
378
转载 Flask learning note (RESTful API)
REST -- REpresentational State TransferResource: namely data (use URL to locate data?)REpresentational : how you represent your data, like using JSON,XML,JPEG, etc..State Transfer: use HTTP ver...
2019-05-09 21:28:59
188
转载 HTTP HTTPS WebService
Reposted From:http://www.cnblogs.com/ok-lanyan/archive/2012/07/14/2591204.htmlHTTP HTTPS WebService HTTP是一个属于应用层的面向对象的协议,由于其简捷、快速的方式,适用于分布式超媒体信息系统。它于1990年提出,经过几年的使用与发展,得到不断地完善和扩展。目前在WWW中使用的是...
2019-05-09 21:16:23
454
原创 Flask learning notes 3 Forms
This is the learning notes of the tutorials from Corey Schafer.1. In the root direcotry we can create a python script called "forms.py" to define how our forms look like. To do a project it is bett...
2019-05-07 16:11:33
203
原创 Flask learning note 2
1. Set up main script for runningfrom flask import Flask, render_template, url_for# modules that are needed in this part.# render_template can render the template we defined in the templates fold...
2019-05-07 14:59:30
163
原创 Flask learning notes 1
Environment Set Up1. install python and pip32. install virtual environment toolpip3 install virtualenv3. make a new directory and enter it to build the venv and activate it.virtualenv --no...
2019-05-06 22:14:31
144
转载 Tensor Flow Notes
tf.equal(): 比较两个数组/矩阵的对应元素,返回一个布尔值向量,对应位置相等返回True;不等返回False。correct_prediction = tf.equal(tf.argmax(y,1), tf.argmax(y_,1))tf.boolean_mask(tensor,mask,name='boolean_mask',axis=None)tensor是N维度的te...
2019-03-14 04:07:08
189
原创 python addition problem ????
These 2 blocks of code give different result, why? import matplotlib.pyplot as pltimport numpy as npfrom mpl_toolkits.mplot3d import Axes3Ddef midpoints(x): sl = () for i in range(x....
2018-12-31 05:08:21
1516
原创 realsense driver problems and solution
frames can not arrive in 5 sec.....update firmwarefollow the instractions under LINKWHEN run $sudo apt-get updatethe following bug occuredE: Malformed entry 1 in list file /etc/apt/source...
2018-12-24 01:41:33
453
原创 pip install error
Traceback (most recent call last): File "/usr/bin/pip", line 9, in <module> from pip import mainImportError: cannot import name main solution> sudo python -m pip uninstall pip...
2018-12-22 00:57:07
484
原创 caffe make error and solutions
1. arch=compute_20,code=sm_20 problem:::comment this in makefile.config CUDA_ARCH := #-gencode arch=compute_20,code=sm_20 \ -gencode arch=compute_20,code=sm_21 \ -gencode arch=...
2018-12-11 01:25:10
257
原创 取消上次commit
在使用git rm -r <directory>后, 整个文件夹在本地的根目录下也消失了。通过 git log --diff-filter=D --summary可以查看之前所有更改的信息。比如 remove old matlab delete mode 100644 Matlab/.DS_Store delete mode 100644 Ma...
2018-11-21 06:12:09
829
原创 当Ubuntu遇上Gigabyte技嘉主板
CPU:AMDMainboard: Gigabyte之前尝试过在以上配置的台式机上安装Ubuntu, 但遇到各种错误,没解决,没时间,在网上也看到各种关于技嘉对Linux的兼容不太好的文章,于是就放弃了。但今天在mac上装好Ubuntu后,灵机一动,在台式机上再试一下吧,结果很简单,很容易,很流畅,什么问题都没遇到。最重要的原因是,找到了正确的教程。作为工科女汉子,配置和安装各种编程环境是...
2018-10-05 20:56:33
7584
原创 Macbookair上安装Ubuntu 16.04日志
1. 磁盘分区这个网上有很多教程,就不赘述了。 2.版本问题打开Ubuntu16.04的下载界面存在两个版本,Xenial's 4.4 GA kernel和 rolling HWE kernel,这两个kernel有什么区别呢?根据这里的说法,Hardware Enablement (HWE)是为了跟上各种硬件设备更新的脚步,不时会有新的release测试并发行,用户可以及时更新k...
2018-10-05 19:02:00
3852
原创 【C++错误】:R6010 -abort() has been called
出现这个错误可能的原因是 点击打开链接而我在处理云点时,问题出在指针,刚开始我只通过pcl::PointIndices::Ptr inliers定义了inliers, 而没有为它开辟空间,因此在seg.segment函数中进行传参时,指针出现问题。所以,要注意通过函数传参返回运算结果时,一定要先开辟好存储空间,在存储。int Ransac::PlaneEstimation(pcl::PointCl...
2018-06-16 18:43:06
1628
转载 Mac下Xcode(C++)+OpenCV环境配置
https://medium.com/@jaskaranvirdi/setting-up-opencv-and-c-development-environment-in-xcode-b6027728003
2018-05-28 17:31:24
988
原创 旋转矩阵注意点
用R=Rz*Ry*Rx 旋转矩阵去乘以原始坐标轴正交基向量,代表将各个向量依次沿原始坐标系的x,y,z轴旋转相应角度(使用右手定则旋转)。下图的例子中,依次进行了z轴旋转180°,沿y轴90°,x轴90°。clcclear allclose all%%e_x = [1 0 0]'; % fronte_y = [0 1 0]'; % lefte_z = [0 0 1]'; % up...
2018-05-14 20:18:08
711
原创 Matlab: 3d pointcloud plot with rgb color
plot pointcloud without colorwe can use scatter3with color1. generate pcd formate file with xyzPoints 2. set the color of ptCloud object with a n*3 color matrix, with is often obtained from images 3D-...
2018-05-10 03:01:11
2032
转载 Solve Slide Puzzle with Hill Climbing Search Algorithm
Hill climbing search algorithm is one of the simplest algorithm which falls under local search and optimization techniques. Here’s how it’s defined in ‘An Introduction to Machine Learning’ book by Mir...
2018-03-30 03:37:13
592
原创 安装numpy, pandas, scipy 和matplotlib
首先找到python的安装文件夹, 在pathon35/Script文件夹里新建一个bat文件(我安装的是3.5版本),通过文本编辑器在里面写上cmd,点击它就可以直接打开一个该路径下的命令行窗口。在命令行窗口下运行pip install numpypip install scipy等等, 就可以安装相应的库。对于3开头的版本, 使用pip3替代pip。如果版本安装错误,想卸载后重装,可使用pip...
2018-03-26 23:29:32
399
原创 使用ofstream和ifstream
头文件iostream预先定义了一个名为cout的ostream对象, 而要使用ofstream需要用户自己声明一个对象。这个对象和cout的用法非常相似,只是cout将结果打印到屏幕上,ofstream的对象将结果写到文件里。ofstream outFile;outFile.open("example.txt"); //associate with a fileoutFile<<...
2018-03-24 04:43:54
246
原创 指针
int a = 12;int *p;p = &a;注意:p表示指针地址,*p是该地址内所存储的值。当定义一个指针时, 计算机将只分配用来存储地址的内存,但不会分配用来存储指针所指向数据的内存。比如,以下代码就是错误的。long *pl;*pl = 123456;//place a value in never-never land, to which the pointer pl d...
2018-03-23 03:34:43
192
原创 枚举
枚举类型可以将一个类型限制在可控制的范围内。比如枚举星期,颜色等。示例代码: enum spectrum {red, orange, yellow, gree, blue, violet, indigo}; spectrum color; //declare a variable of enum type color = blue; cout << color << ...
2018-03-23 01:53:02
251
原创 共用体和结构体的区别
结构体可以同时存储多种变量类型,而共同体同一个时间只能存储和使用多个变量类型的一种,当另一时间,变量类型被改变后,原来的变量类型和值将被舍弃。共用体的作用是同一个数据项可以使用多种格式,可以节省空间。比如,对商品进行标识时可以用整数和字符串中的一个。struct product{ int type; int amount; union id { long id_long; cha...
2018-03-23 01:17:04
9121
原创 string类简介
赋值,拼接和附加string s1 = "string1";string s2 = "string2";string s3;s3 = s1 + s2;s1 += s2;s2 +="add something";头文件cstring提供的函数char charr1[20];char charr2[20]'strcpy(charr1, charr2); //copy charr2 t...
2018-03-22 18:57:06
358
原创 关于输入
cin读取输入流,遇到空格,回车,制表符结束读取,并忽略空格和换行符。cin对象在接收到错误类型时会返回false,可通过cin.fail()和cin.eof() EOF 是否被设置为1. 当cin将队列读到int型变量时,遇到非数字字符停止;double型--遇到第一个不属于浮点数的字符停止;char数组类型--遇到空白字符停止。int n;cin>>n; //will retru...
2018-03-22 18:32:27
229
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人