摘要: 【1】 H. Li, Z. Lin, X. Shen, J. Brandt, and G. Hua, “A convolutional neural network cascade for face detection,” in Proceedings of the IEEE conference 阅读全文
posted @ 2021-05-08 09:56 一剑光寒十四州 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1. conda已安装环境 安装完conda,配置完环境(conda执行路径)后: 会有一个base 使用以下命令可以看到conda已安装的环境 1 conda info -e 2. conda在线配置环境 conda create -n faceDetTorch python=3.6# 激活环境s 阅读全文
posted @ 2021-04-16 10:29 一剑光寒十四州 阅读(778) 评论(0) 推荐(0) 编辑
摘要: 试一试 1 import torch 2 import torch.nn as nn 3 import torch.nn.functional as F 4 from torchsummary import summary 5 6 class ResBlock(nn.Module): 7 def _ 阅读全文
posted @ 2021-04-02 16:43 一剑光寒十四州 阅读(755) 评论(0) 推荐(0) 编辑
摘要: 1 import os 2 import torch 3 from torchvision import transforms 4 from data_pipe import get_data 5 from vgg import VGG_13 6 from resnet18 import ResNe 阅读全文
posted @ 2021-04-02 16:40 一剑光寒十四州 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 1 #coding= utf-8 2 import os 3 import torch 4 from data_pipe import get_data 5 from model import SimpleNet 6 import numpy as np 7 import cv2 8 from PI 阅读全文
posted @ 2021-03-30 11:06 一剑光寒十四州 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 模型保存与加载有两种方式,本文暂时只讨论模型参数方式 1> 单GPU 保存 1 torch.save(model.state_dict(), "model.pth") 加载 1 model = SimpleNet() 2 model.load_state_dict(torch.load("./mod 阅读全文
posted @ 2021-03-30 10:36 一剑光寒十四州 阅读(95) 评论(0) 推荐(0) 编辑
摘要: <一> 目标: C的历史和特性 编写程序所需的步骤 关于编译器和链接器的一些知识 C的标准 <二> 记录: 1> 计算机工作的基本原理 现代计算机可分为几个部件: 中央处理单元(CPU):担负着绝大部分的计算工作。 随机访问存储器(RAM):作为一个工作区来保存程序和文件。 永久存储器:一般是硬盘, 阅读全文
posted @ 2021-03-26 17:06 一剑光寒十四州 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 根据《C Primer Plus》重走一遍 C。 阅读全文
posted @ 2021-03-26 15:49 一剑光寒十四州 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 统计当前文件夹下文件的个数 ls -l |grep "^-"|wc -l 统计当前文件夹下文件的个数(包含子目录) ls -lR|grep "^-"|wc -l 统计当前文件夹下目录的个数 ls -l |grep "^d"|wc -l 统计当期文件夹下目录的个数(包含子目录) ls -lR|grep 阅读全文
posted @ 2021-03-25 14:49 一剑光寒十四州 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 1 import cv2 2 3 img_path = r"E:\tmp\tmp.jpg" 4 image = cv2.imread(img_path) 5 cv2.imshow("image", image) 6 cv2.waitKey(5000) 镜像/顺时针旋转180度 1 image1 = 阅读全文
posted @ 2021-03-25 13:31 一剑光寒十四州 阅读(171) 评论(0) 推荐(0) 编辑