- 博客(10)
- 资源 (1)
- 收藏
- 关注
原创 anaconda3-2020.2+python3.6+pytorch+pycharm环境搭建
1.anaconda3-2020.2安装正常安装,添加path那一选项取消,其他直接下一步。之前anaconda3-4.3.0,anaconda3-5.2.0安装pytorch都有点问题。2.python自带版本是3.63.pytorch安装在conda prompt中添加路径conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/conda config --add cha
2020-11-21 15:22:10 397 1
原创 Colab pytorch
安装! pip3 install torch torchvision挂载from google.colab import drivedrive.mount('/content/drive/') # 将google硬盘挂载在/comtent/drive/目录上面文件夹import osos.chdir("/content/drive/My Drive/image")
2020-11-19 22:47:39 95
原创 memset()、fgets()
char *fgets(char *str, int n, FILE *stream) 从指定的流 stream 读取一行,并把它存储在 str 所指向的字符串内。当读取 (n-1) 个字符时,或者读取到换行符时,或者到达文件末尾时,它会停止,具体视情况而定。str – 这是指向一个字符数组的指针,该数组存储了要读取的字符串。n – 这是要读取的最大字符数(包括最后的空字符)。通常是使用...
2020-03-21 20:06:17 301
转载 Linux Ubuntu 虚拟机怎么连网
https://blog.csdn.net/qq_38786209/article/details/79997301
2020-03-21 20:03:24 364
原创 打开摄像头和putText函数
cv::VideoCapture cap; cap.open(0);//选择哪个摄像头 if (!cap.isOpened()) return -1; cv::Mat frame; cap >> frame;cv::Point origin; origin.x = int(frame.cols/2-100) ; origin.y = int(frame.rows/2-...
2020-03-12 00:31:17 168
原创 AttributeError: ‘NoneType’ object has no attribute ‘shape’
AttributeError: ‘NoneType’ object has no attribute ‘shape’解决方法:图片路径错误导致
2020-03-01 11:48:14 236
原创 TypeError: ‘numpy.float64’ object cannot be interpreted as an integer
1.TypeError: ‘numpy.float64’ object cannot be interpreted as an integer解决方法:for i in range(rows1,rows):for j in range(cols):中rows为int,需要转换类型rows1 = int(np.floor(rows/2))2.AttributeError: ‘NoneTyp...
2020-02-28 22:09:38 582
原创 vs2017+opencv LNK1104 无法打开文件“opencv_world310d.lib”
换电脑重新配置出现问题。链接器-输入-附加依赖库必须是绝对路径。
2020-02-19 20:44:17 1989 2
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人