![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
pytorch
naomicui
这个作者很懒,什么都没留下…
展开
-
Pytorch安装历程
1.首先需要安装一个anaconda3(可以到清华镜像中去下载,方便)2.创建虚拟环境为了避免与电脑中已存在的环境中发生冲突,新建一个虚拟环境,具体步骤参见https://blog.csdn.net/lyy14011305/article/details/59500819?ticket=ST-54761-uVouyW9tXaHgviR7YENY-passport.csdn.net,打开An...原创 2018-07-17 13:01:53 · 191 阅读 · 0 评论 -
小试牛刀——pytorch实现小猫小狗分类
# -*- coding: utf-8 -*-__author__ = 'cui'import torchimport torchvisionfrom PIL import Imageimport numpy as npfrom torchvision import transforms as Tclass_dict = {0: 'tench, Tinca tinca', ...原创 2018-07-19 14:17:56 · 2824 阅读 · 0 评论 -
python读取xml信息和图片,用cv2标注图片
import osimport xml.dom.minidomimport cv2 as cvImgPath = '/home/newbee/CODEs/CSRNet-pytorch-master/train/images/'AnnoPath = '/home/newbee/CODEs/CSRNet-pytorch-master/train/xmls/'imagelist = os...原创 2018-07-25 16:30:17 · 4699 阅读 · 3 评论 -
小试牛刀——pytorch实现ResNet34网络
书上的,很抽象from torch import nnfrom torch.nn import functional as Fimport osimport torchvisionclass ResidualBlock(nn.Module): def __init__(self, inchannel, outchannel, stride=1, shortcut=None...原创 2018-07-31 09:02:05 · 1869 阅读 · 1 评论 -
小试牛刀——线性回归
深度学习框架中的小例子import torch as tfrom matplotlib import pyplot as pltt.manual_seed(1000)def get_fake_data(batch_size=8): x = t.rand(batch_size, 1) * 20 #x为(8,1)的torch y = x * 2 + (1 + t.r...原创 2018-07-27 17:42:58 · 507 阅读 · 0 评论 -
tmux快捷键
偶然逛得一张快捷键图十分受用,与大家共同分享,故转载转载 2018-08-08 10:42:23 · 231 阅读 · 0 评论