当前位置:网站首页>初识生成对抗网络(11)——利用Pytorch搭建WGAN生成手写数字
初识生成对抗网络(11)——利用Pytorch搭建WGAN生成手写数字
2022-06-25 07:02:00 【wendy_ya】
〇、WGAN介绍
关于WGAN的详细介绍可以参考文章:GAN生成对抗网络入门介绍及DCGAN、WGAN等介绍。这里只介绍一下WGAN在代码方面与GAN或DCGAN的区别。
在论文《Wasserstein GAN》中,作者推了一大堆公式定理,最终给出了改进的算法实现流程,而改进后相比原始GAN的算法实现流程却只改了四点:
- 判别器最后一层去掉sigmoid;
- 生成器和判别器的loss不取log;
- 每次更新判别器的参数之后把它们的绝对值截断到不超过一个固定常数c;
- 不要用基于动量的优化算法(包括momentum和Adam),推荐RMSProp,SGD也行;
算法如下图所示:
WGAN
边栏推荐
- The era of enterprise full cloud -- the future of cloud database
- How to calculate the independence weight index?
- How to calculate the D value and W value of statistics in normality test?
- 不怕百战失利,就怕灰心丧气
- 現在通過開戶經理發的開戶鏈接股票開戶安全嗎?
- Apache CouchDB Code Execution Vulnerability (cve-2022-24706) batch POC
- Modeling and fault simulation of aircraft bleed system
- Force buckle 272 Closest binary search tree value II recursion
- 第五天 脚本与UI系统
- C # set up FTP server and realize file uploading and downloading
猜你喜欢

Electronics: Lesson 009 - Experiment 7: study relays

TCP stuff

初体验完全托管型图数据库 Amazon Neptune

The era of enterprise full cloud -- the future of cloud database

Mr. Tang's lecture on operational amplifier (Lecture 7) -- Application of operational amplifier

使用apt-get命令如何安装软件?

In 2022, which industry will graduates prefer when looking for jobs?

2022年毕业生求职找工作青睐哪个行业?

每日刷题记录 (三)

How to calculate the correlation coefficient and correlation degree in grey correlation analysis?
随机推荐
Functions should not specify operation types through variables
自制坡道,可是真的很香
Self made ramp, but it really smells good
[red flag Cup] Supplementary questions
Static web server
Deep learning series 45: overview of image restoration
钱堂教育商学院给的证券账户安全吗?能开户吗?
Jdbc-dao layer implementation
PHP array function Encyclopedia
企业全面云化的时代——云数据库的未来
How to calculate the positive and negative ideal solution and the positive and negative ideal distance in TOPSIS method?
How to do factor analysis? Why should data be standardized?
Is it safe to open an account for stocks on the Internet? Can the securities account be used by others?
Electronics: Lesson 011 - experiment 10: transistor switches
TS environment setup
Websocket understanding and application scenarios
STM32CubeMX 学习(5)输入捕获实验
想要软件测试效果好,搭建好测试环境是前提
TCP stuff
Thread + thread problem record