Comments (4)
Thanks for sharing your code. Did you tried to train the model with your code? If so, how does the samples look like?
from began-pytorch.
@carpedm20 Actually, here is another PyTorch implementation for BEGAN: https://github.com/sunshineatnoon/Paper-Implementations/tree/master/BEGAN. Although that code lacks two tanh layer at the ends of G and D networks, I found it works well after adding two tanh. After coarsely comparing that code with this one, I found that code strictly obeys the basic training scheme of GANs while this code does not. Maybe some senior tricks are used in this code that I can't undetstand, but you can try this:
- Use d_loss and g_loss to separately and successively update D and G instead of adding them up and updating the whole network once. (line 166 and 167 in trainer.py)
- Use g_loss = l1(AE_G_g, sample_z_G.detach()) on line 164
from began-pytorch.
Here is some samples I generated. 500_G,5000_G,8000_G & 17500_G. I change the lr from 0.00008 to 0.00004 at 5000 iters and to 0.00002 at 10000iters.
I'm sure that I'm using non-optimal parameters and super-parameters. And I don't consider the measure when I update the lr.
from began-pytorch.
@nian-liu I've seen the code you refered. Maybe he has changed his code, the code to compute loss is similiar to mine.
And I guess the tanh() is helpful for solving pytorch's bad initialization. I'm not sure, just for communication.
from began-pytorch.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from began-pytorch.