
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 · 248 阅读 · 0 评论 -
小试牛刀——pytorch实现小猫小狗分类
# -*- coding: utf-8 -*- __author__ = 'cui' import torch import torchvision from PIL import Image import numpy as np from torchvision import transforms as T class_dict = {0: 'tench, Tinca tinca', ...原创 2018-07-19 14:17:56 · 2944 阅读 · 0 评论 -
python读取xml信息和图片,用cv2标注图片
import os import xml.dom.minidom import cv2 as cv ImgPath = '/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 · 4926 阅读 · 3 评论 -
小试牛刀——pytorch实现ResNet34网络
书上的,很抽象 from torch import nn from torch.nn import functional as F import os import torchvision class ResidualBlock(nn.Module): def __init__(self, inchannel, outchannel, stride=1, shortcut=None...原创 2018-07-31 09:02:05 · 1980 阅读 · 1 评论 -
小试牛刀——线性回归
深度学习框架中的小例子 import torch as t from matplotlib import pyplot as plt t.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 · 578 阅读 · 0 评论 -
tmux快捷键
偶然逛得一张快捷键图十分受用,与大家共同分享,故转载转载 2018-08-08 10:42:23 · 284 阅读 · 0 评论