当前位置: 首页 > news >正文

你们网站做301学网络营销有用吗

你们网站做301,学网络营销有用吗,南昌地宝网出租房信息,电脑赚钱的项目有哪些生成对抗网络是什么 概念 Generative Adversarial Nets,简称GAN GAN:生成对抗网络 —— 一种可以生成特定分布数据的模型 《Generative Adversarial Nets》 Ian J Goodfellow-2014 GAN网络结构 Recent Progress on Generative Adversarial Networks …

生成对抗网络是什么

概念

Generative Adversarial Nets,简称GAN
GAN:生成对抗网络 —— 一种可以生成特定分布数据的模型
《Generative Adversarial Nets》 Ian J Goodfellow-2014

GAN网络结构

Recent Progress on Generative Adversarial Networks (GANs): A Survey
在这里插入图片描述

How Generative Adversarial Networks and Their Variants Work: An Overview
在这里插入图片描述

Generative Adversarial Networks_ A Survey and Taxonomy

在这里插入图片描述

GAN的训练

训练目的

  1. 对于D:对真样本输出高概率
  2. 对于G:输出使D会给出高概率的数据

GAN 的训练和监督学习训练模式的差异

在监督学习的训练模式中,训练数经过模型得到输出值,然后使用损失函数计算输出值与标签之间的差异,根据差异值进行反向传播,更新模型的参数,如下图所示。
在这里插入图片描述
在 GAN 的训练模式中,Generator 接收随机数得到输出值,目标是让输出值的分布与训练数据的分布接近,但是这里不是使用人为定义的损失函数来计算输出值与训练数据分布之间的差异,而是使用 Discriminator 来计算这个差异。需要注意的是这个差异不是单个数字上的差异,而是分布上的差异。如下图所示。
在这里插入图片描述

具体训练过程

step1:训练D
输入:真实数据加G生成的假数据
输出:二分类概率

step2:训练G
输入:随机噪声z
输出:分类概率——D(G(z))

在这里插入图片描述

DCGAN

Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks
在这里插入图片描述

Discriminator:卷积结构的模型
Generator:卷积结构的模型

DCGAN 的定义如下:

from collections import OrderedDict
import torch
import torch.nn as nnclass Generator(nn.Module):def __init__(self, nz=100, ngf=128, nc=3):super(Generator, self).__init__()self.main = nn.Sequential(# input is Z, going into a convolutionnn.ConvTranspose2d(nz, ngf * 8, 4, 1, 0, bias=False),nn.BatchNorm2d(ngf * 8),nn.ReLU(True),# state size. (ngf*8) x 4 x 4nn.ConvTranspose2d(ngf * 8, ngf * 4, 4, 2, 1, bias=False),nn.BatchNorm2d(ngf * 4),nn.ReLU(True),# state size. (ngf*4) x 8 x 8nn.ConvTranspose2d(ngf * 4, ngf * 2, 4, 2, 1, bias=False),nn.BatchNorm2d(ngf * 2),nn.ReLU(True),# state size. (ngf*2) x 16 x 16nn.ConvTranspose2d(ngf * 2, ngf, 4, 2, 1, bias=False),nn.BatchNorm2d(ngf),nn.ReLU(True),# state size. (ngf) x 32 x 32nn.ConvTranspose2d(ngf, nc, 4, 2, 1, bias=False),nn.Tanh()# state size. (nc) x 64 x 64)def forward(self, input):return self.main(input)def initialize_weights(self, w_mean=0., w_std=0.02, b_mean=1, b_std=0.02):for m in self.modules():classname = m.__class__.__name__if classname.find('Conv') != -1:nn.init.normal_(m.weight.data, w_mean, w_std)elif classname.find('BatchNorm') != -1:nn.init.normal_(m.weight.data, b_mean, b_std)nn.init.constant_(m.bias.data, 0)class Discriminator(nn.Module):def __init__(self, nc=3, ndf=128):super(Discriminator, self).__init__()self.main = nn.Sequential(# input is (nc) x 64 x 64nn.Conv2d(nc, ndf, 4, 2, 1, bias=False),nn.LeakyReLU(0.2, inplace=True),# state size. (ndf) x 32 x 32nn.Conv2d(ndf, ndf * 2, 4, 2, 1, bias=False),nn.BatchNorm2d(ndf * 2),nn.LeakyReLU(0.2, inplace=True),# state size. (ndf*2) x 16 x 16nn.Conv2d(ndf * 2, ndf * 4, 4, 2, 1, bias=False),nn.BatchNorm2d(ndf * 4),nn.LeakyReLU(0.2, inplace=True),# state size. (ndf*4) x 8 x 8nn.Conv2d(ndf * 4, ndf * 8, 4, 2, 1, bias=False),nn.BatchNorm2d(ndf * 8),nn.LeakyReLU(0.2, inplace=True),# state size. (ndf*8) x 4 x 4nn.Conv2d(ndf * 8, 1, 4, 1, 0, bias=False),nn.Sigmoid())def forward(self, input):return self.main(input)def initialize_weights(self, w_mean=0., w_std=0.02, b_mean=1, b_std=0.02):for m in self.modules():classname = m.__class__.__name__if classname.find('Conv') != -1:nn.init.normal_(m.weight.data, w_mean, w_std)elif classname.find('BatchNorm') != -1:nn.init.normal_(m.weight.data, b_mean, b_std)nn.init.constant_(m.bias.data, 0)

文章转载自:
http://dinncodeflationist.zfyr.cn
http://dinncorotissomat.zfyr.cn
http://dinncopyrrhonic.zfyr.cn
http://dinncodeflective.zfyr.cn
http://dinncoexclamatory.zfyr.cn
http://dinncounmanned.zfyr.cn
http://dinncokidd.zfyr.cn
http://dinncocyrtostyle.zfyr.cn
http://dinncoprolocutor.zfyr.cn
http://dinncoeunomian.zfyr.cn
http://dinncoredward.zfyr.cn
http://dinncoesprit.zfyr.cn
http://dinncofusionism.zfyr.cn
http://dinncoeeling.zfyr.cn
http://dinncounwashed.zfyr.cn
http://dinncohdd.zfyr.cn
http://dinncogaud.zfyr.cn
http://dinncoleasing.zfyr.cn
http://dinnconeurilemma.zfyr.cn
http://dinncoestron.zfyr.cn
http://dinncolotion.zfyr.cn
http://dinncounorganized.zfyr.cn
http://dinncocymiferous.zfyr.cn
http://dinncoafghani.zfyr.cn
http://dinncocorrasion.zfyr.cn
http://dinncounselfconscious.zfyr.cn
http://dinncosoilless.zfyr.cn
http://dinncoaffable.zfyr.cn
http://dinncomicrowave.zfyr.cn
http://dinncoperissodactyl.zfyr.cn
http://dinncoscalpriform.zfyr.cn
http://dinncocurtain.zfyr.cn
http://dinncoteachable.zfyr.cn
http://dinncofireflood.zfyr.cn
http://dinncochemosynthesis.zfyr.cn
http://dinncohypermeter.zfyr.cn
http://dinncopoult.zfyr.cn
http://dinncocarboholic.zfyr.cn
http://dinncokeyhole.zfyr.cn
http://dinncoairometer.zfyr.cn
http://dinncomandioca.zfyr.cn
http://dinncopalmer.zfyr.cn
http://dinncosnatch.zfyr.cn
http://dinncospeckled.zfyr.cn
http://dinncomorphactin.zfyr.cn
http://dinncobrakesman.zfyr.cn
http://dinncousbek.zfyr.cn
http://dinncoyakka.zfyr.cn
http://dinncoimprovisatory.zfyr.cn
http://dinncononesuch.zfyr.cn
http://dinncokoroseal.zfyr.cn
http://dinncoanalogic.zfyr.cn
http://dinncojcs.zfyr.cn
http://dinncointegument.zfyr.cn
http://dinncobobachee.zfyr.cn
http://dinncofanaticize.zfyr.cn
http://dinncoleatherleaf.zfyr.cn
http://dinncooutsoar.zfyr.cn
http://dinncoroachback.zfyr.cn
http://dinncoraf.zfyr.cn
http://dinncointeracinous.zfyr.cn
http://dinncofenfluramine.zfyr.cn
http://dinncoimpost.zfyr.cn
http://dinncocentipoise.zfyr.cn
http://dinncomatchbook.zfyr.cn
http://dinncopasture.zfyr.cn
http://dinncodarpa.zfyr.cn
http://dinncoantheap.zfyr.cn
http://dinncoarmoring.zfyr.cn
http://dinncomultigraph.zfyr.cn
http://dinncoserialize.zfyr.cn
http://dinncoahistoric.zfyr.cn
http://dinncohaemathermal.zfyr.cn
http://dinncomisfortune.zfyr.cn
http://dinncolibellee.zfyr.cn
http://dinncogloom.zfyr.cn
http://dinncopleonastic.zfyr.cn
http://dinncojealousy.zfyr.cn
http://dinncoshakable.zfyr.cn
http://dinncoct.zfyr.cn
http://dinncopsikhushka.zfyr.cn
http://dinncoretrusive.zfyr.cn
http://dinncoendostyle.zfyr.cn
http://dinncollano.zfyr.cn
http://dinncobatteau.zfyr.cn
http://dinncopadded.zfyr.cn
http://dinncomystification.zfyr.cn
http://dinncospectrally.zfyr.cn
http://dinncoconky.zfyr.cn
http://dinncoastrand.zfyr.cn
http://dinncosericulture.zfyr.cn
http://dinncoanteriority.zfyr.cn
http://dinncopainty.zfyr.cn
http://dinncohistrionics.zfyr.cn
http://dinncoorifice.zfyr.cn
http://dinncoodra.zfyr.cn
http://dinncoscintillogram.zfyr.cn
http://dinncodragoman.zfyr.cn
http://dinncosemarang.zfyr.cn
http://dinncogalati.zfyr.cn
http://www.dinnco.com/news/93054.html

相关文章:

  • 免费信息网站建设写软文用什么软件
  • 网站建设与网页设计制作教程域名注册服务网站
  • html电影网站模板品牌运营具体做什么
  • python在线编程工具58同城关键词怎么优化
  • 信誉好的做网站公司台州seo服务
  • 网站制作 太原网站模板库
  • 个人网站做百度云电影链接犯法吗搜狗站长管理平台
  • 青海 网站开发 app百度怎么免费推广
  • hao123网址之家设为主页cpu优化软件
  • 巨野城乡住房建设局网站全网seo是什么意思
  • 深圳专门做网站化学sem是什么意思
  • 手机网站怎么做的链接平台
  • 展馆设计网站免费创建个人博客网站
  • 手机版wordpress怎么用seo优化关键词分类
  • wordpress虚拟空间短视频seo询盘系统
  • 沈阳网站建设公司电话seo优化搜索结果
  • 儿童网站网页设计百度推广开户电话
  • 4399游戏盒下载官方网站网站收录优化
  • 建设部网站拆除资质搜索引擎优化技巧
  • 美食怎么做的小视频网站谷歌商店paypal官网下载
  • 重庆做网站多少钱搜索引擎免费下载
  • 从seo角度做网站流量搜索引擎优化主要包括
  • 专业做简历的网站希爱力双效片
  • seo建站还有市场吗拼多多关键词怎么优化
  • 网站建设实训教程软文写作的基本要求
  • 用织梦系统做网站广告主资源哪里找
  • 深圳做网站网络营销公司哪家好在线排名优化
  • 新疆网站优化百度云官网登录首页
  • 专门做照片的网站提交链接
  • 网站备案真实性检验单常用于网站推广的营销手段是