- 博客(6)
- 收藏
- 关注
原创 小试牛刀——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
2079
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
617
原创 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
4980
3
原创 小试牛刀——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
3017
原创 Pytorch安装历程
1.首先需要安装一个anaconda3(可以到清华镜像中去下载,方便) 2.创建虚拟环境 为了避免与电脑中已存在的环境中发生冲突,新建一个虚拟环境,具体步骤参见https://blog.youkuaiyun.com/lyy14011305/article/details/59500819?ticket=ST-54761-uVouyW9tXaHgviR7YENY-passport.youkuaiyun.com,打开An...
2018-07-17 13:01:53
302
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅