摘要: #include <iostream>#include <eigen3/Eigen/Dense> using namespace std;using namespace Eigen;int main(){ Matrix2f ss; ss<<2.3f,3.2f, 3.4f,3.1f; cout<<ss 阅读全文
posted @ 2023-07-19 20:42 FigureOut 阅读(24) 评论(0) 推荐(0)
摘要: cmake_minimum_required(VERSION 3.15) project(test) set(CMAKE_CXX_STANDARD 11) set(SRC add.cpp test.cpp div.cpp) set(EXECUTABLE_OUTPUT_PATH /home/dabin 阅读全文
posted @ 2023-07-16 21:41 FigureOut 阅读(32) 评论(0) 推荐(0)
摘要: 添加远端仓库,命令 git remote add <远端名称> <仓库路径> ·远端名称,默认是origin,取决于远端服务器设置 ·仓库路径,从远端服务器获取URL git remote add origin git@gitee.com:ss/git_test.gitgit 将本地分支与远端分支关 阅读全文
posted @ 2023-07-08 20:04 FigureOut 阅读(29) 评论(0) 推荐(0)
摘要: 改为离线安装,下载ml_collections安装包 ml_collections.tar.gz 解压文件 tar -zxvf ml_collections.tar.gz 修改 setup.py文件的读取README的方式为utf-8 open('READ.ME',encoding='utf-8') 阅读全文
posted @ 2022-07-20 09:20 FigureOut 阅读(459) 评论(0) 推荐(0)
摘要: 使用这个命令编译通过 sudo cmake .. -DCMAKE_BUILD_TYPE=Release -DCUDA_nppi_LIBRARY=true -DWITH_CUDA=OFF -DBUILD_TIFF=ON 阅读全文
posted @ 2022-07-06 10:11 FigureOut 阅读(393) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/weixin_44573410/article/details/119735565 阅读全文
posted @ 2022-04-14 17:02 FigureOut 阅读(21) 评论(0) 推荐(0)
摘要: tensorflow 1.x的contrib.layers写法 w_init = tf.contrib.layers.variance_scaling_initializer() 迁移到tensorflow2.x报错 AttributeError: module 'tensorflow' has n 阅读全文
posted @ 2022-04-10 18:23 FigureOut 阅读(195) 评论(0) 推荐(0)
摘要: #toTensor image=Image.open('D:\GKD\data\dogdata\\1.jpg') trans_totensor= transforms.ToTensor() img_tensor=trans_totensor(image) #Normalize trans_forms 阅读全文
posted @ 2021-12-11 16:15 FigureOut 阅读(66) 评论(0) 推荐(0)
摘要: 添加图片 outputimages是图片存放文件夹 writer=SummaryWriter('outputimages') img = Image.open('D:\GKD\data\dogdata\\1.jpg') dogdata= np.array(img) print(dogdata.sha 阅读全文
posted @ 2021-12-11 14:54 FigureOut 阅读(351) 评论(0) 推荐(0)
摘要: pytorch安装 pytorch官网 选择自己的版本运行RunCommand中的命令 https://pytorch.org 阅读全文
posted @ 2021-01-15 12:37 FigureOut 阅读(505) 评论(0) 推荐(0)