上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 29 下一页
摘要: #python 读取文本: ##方法1: with open(txt_path, "r") as fr: lines = fr.readlines() for line in lines: line = line.strip() #去除换行符 \n ##方法2: f = open("tmp2.txt 阅读全文
posted @ 2023-01-10 10:23 无左无右 阅读(130) 评论(0) 推荐(0)
摘要: import time str_time_now = time.strftime("%Y-%m-%d_%H:%M:%S", time.localtime()) ##2023-01-10_09:58:33 2023-01-10_09:58:33 用str_time_now可以很方便的嵌入到文件名中,方 阅读全文
posted @ 2023-01-10 10:00 无左无右 阅读(121) 评论(0) 推荐(0)
摘要: bn层又坑我一次!!!! caffe转pytorch。 由于第二次加了一些网络,不知道从哪里复制的,直接是 self.p6_conv_bn = nn.BatchNorm2d(128) 然后跑前向对精度的时候死活不一样啊!!!! 然后开始了我查找问题的漫漫之旅!!足足花了我2h。 首先就是对各种层输出 阅读全文
posted @ 2023-01-06 15:35 无左无右 阅读(190) 评论(0) 推荐(0)
摘要: 在blob.hpp添加函数: void save_data_to_txt(const string path_txt, bool b_save_shape = true) { std::ofstream fOut(path_txt); if (!fOut) { std::cout << "Open 阅读全文
posted @ 2023-01-05 17:01 无左无右 阅读(38) 评论(0) 推荐(0)
摘要: void MyLossLayer<Ftype, Btype>::Forward_cpu(const vector<Blob*>& bottom, const vector<Blob*>& top) { // bottom[0]: "depth" 1x1x36x64 // bottom[1]: "da 阅读全文
posted @ 2023-01-04 14:15 无左无右 阅读(33) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/yang332233/article/details/110164808?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522166988875516782428685782%2522%252C% 阅读全文
posted @ 2022-12-01 18:39 无左无右 阅读(225) 评论(0) 推荐(0)
摘要: import torchvision import torch input_ = torch.rand(3, 128, 24, 96) #[b,c,h,w] bbox = [[0,0.1,0.15,0.4,0.6], [0,0.1,0.15,0.4,0.6], [1,0.01,0.15,0.4,0. 阅读全文
posted @ 2022-11-26 22:43 无左无右 阅读(204) 评论(0) 推荐(0)
摘要: #pytorch net = net_now() state_dict = torch.load(model_path, map_location=lambda storage, loc: storage) net.load_state_dict(state_dict, strict=True) # 阅读全文
posted @ 2022-11-22 14:24 无左无右 阅读(34) 评论(0) 推荐(0)
摘要: 曾几何时,我一直都是记忆的>> 可以保存终端打印的到本地txt 比如: who >> use 确实会在本地生成use文件,然后打开文本use就会有如下信息: algo tty7 2022-10-27 19:38 (:0) algo pts/21 2022-11-10 18:25 (10.188.18 阅读全文
posted @ 2022-11-16 20:32 无左无右 阅读(103) 评论(0) 推荐(0)
摘要: 根据caffe训练打印的 I1102 20:42:49.268401 188 solver.cpp:352] Iteration 135020 (0.108123 iter/s, 92.4871s/10 iter), 114.5/13668.5ep, loss = 0.0899582 提取itera 阅读全文
posted @ 2022-11-04 14:39 无左无右 阅读(44) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 29 下一页