Loading

摘要: STL排序 sort(s.begin(), s.end()); STL vector 初始化 vector<string> strs = {"dog","racecar","car"}; string 添加单个字符 sameAlpha[strI].append(1, strs[i][strI]); 阅读全文
posted @ 2021-08-18 02:07 Guang'Jun 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 安装指令 sudo apt-get install software-properties-common sudo add-apt-repository ppa:x2go/stable sudo apt-get update sudo apt-get install x2goserver x2gos 阅读全文
posted @ 2021-06-25 12:42 Guang'Jun 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 转自: https://blog.csdn.net/wujunlei1595848/article/details/87027871?utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7EBlogCommendFromMa 阅读全文
posted @ 2021-06-25 11:30 Guang'Jun 阅读(62) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_42067550/article/details/106871772 https://www.youtube.com/watch?v=qI0vyfR2_Rc&list=PLvOO0btloRnsiqM72G4Uid0UWljikENlU&index= 阅读全文
posted @ 2021-06-23 21:23 Guang'Jun 阅读(31) 评论(0) 推荐(0) 编辑
摘要: ####1. vector vector<T> v; //采用模板实现类实现,默认构造函数 vector(v.begin(), v.end()); //将v[begin(), end())区间中的元素拷贝给本身。 vector(n, elem); //构造函数将n个elem拷贝给本身。 vector 阅读全文
posted @ 2021-06-13 00:52 Guang'Jun 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 假如输入数据是4维的 a = torch.randn(3, 4, 5, 6) y = a[..., 0] # 取第四个维度的第0个 上面操作等同于 y = a[:, :, :, 0] 阅读全文
posted @ 2021-06-11 11:27 Guang'Jun 阅读(52) 评论(0) 推荐(0) 编辑
摘要: code from https://github.com/kenziyuliu/MS-G3D/blob/master/ntu_visualize.py 函数plt: https://blog.csdn.net/sinat_36219858/article/details/79800460 http: 阅读全文
posted @ 2021-06-10 21:28 Guang'Jun 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 问题: -bash: ./tools/dist_train.sh: Permission denied 解决方法: chmod 777 ./tools/dist_train.sh 阅读全文
posted @ 2021-06-05 00:02 Guang'Jun 阅读(1587) 评论(0) 推荐(0) 编辑
摘要: #复制文件: shutil.copyfile("oldfile","newfile") #oldfile和newfile都只能是文件 shutil.copy("oldfile","newfile") #oldfile只能是文件,newfile可以是文件,也可以是目标目录 #复制文件夹: shutil 阅读全文
posted @ 2021-05-28 14:29 Guang'Jun 阅读(152) 评论(0) 推荐(0) 编辑
摘要: # 加载数据成字典(读) with open(annotations_file, "r") as fa: annotations = json.load(fa) # 上载数据成序列(写) with open("annotation/train_annotation.json", 'w') as fp 阅读全文
posted @ 2021-05-28 10:58 Guang'Jun 阅读(36) 评论(0) 推荐(0) 编辑