Comments (7)
I meet the same problem,it just can't converge.
But the picture in the samples folder are getting more and more clear.
from dcgan-tensorflow.
for GAN, however, convergence is likely an indication of failure...
from dcgan-tensorflow.
I suggest you not to use my code as experiments but just a reference. This code is one of my earliest practice (a year ago) with TensorFlow and now there are "too" many good papers and its implementation in generative model fields which published and open-sourced after DCGAN.
- https://github.com/openai/improved-gan/
- https://github.com/openai/pixel-cnn
- https://github.com/openai/iaf
- https://github.com/openai/InfoGAN
- and literally a lot...
But @kaihuchen showed that this code still can make some promising results like #56.
from dcgan-tensorflow.
What's the algorithms used to generate MNIST digitals? I found a lot of source programs using label information, that original paper not contains.
h0 = tf.nn.relu(self.g_bn0(linear(z, self.gfc_dim, 'g_h0_lin')))
h0 = tf.concat(1, [h0, y])
h1 = tf.nn.relu(self.g_bn1(linear(h0, self.gf_dim*2*s4*s4, 'g_h1_lin')))
h1 = tf.reshape(h1, [self.batch_size, s4, s4, self.gf_dim * 2])
from dcgan-tensorflow.
@auroua Yes , just like "conditional adversarial networks"
Adding label to training data will makes result realistic in general.
from dcgan-tensorflow.
the loss just bounced around 1.3/0.7 means "converge" in my experiments.
from dcgan-tensorflow.
Recently I did a whole bunch of experiments using cGAN, such a getting it to convert from black-and-white portraits to color ones, learning monocular depth perception, or performing image operations such as erasing the background. But eventually I ran into problem when trying to use cGAN's z vector as a neural image model, which I intend to apply to videos. The problem I had with cGAN is that its U-Net architecture is great for image-to-image mapping, but it also weakens the z vector as a latent representation. So for this purpose I think I need to go back to use DCGAN instead. Just want to point out here that DCGAN is by no means obsolete.
from dcgan-tensorflow.
Related Issues (20)
- input _fname_pattern"*.jpg" Synatx Error: Invalid Syntax error in line 91 in main.py
- Why the kernel size of discriminator is 4?
- raise Exception("[!] Entire dataset size is less than the configured batch_size") Exception: [!] Entire dataset size is less than the configured batch_size
- why my model is not converge after 300 epochs HOT 1
- checkpoint not found HOT 2
- What are the in/output node names for Generator and Discriminator? HOT 1
- Solved some problems in my repo/解决了一些问题
- raise Exception("Checkpoint not found in " + FLAGS.checkpoint_dir) Exception: Checkpoint not found in ./out\20200526.133337 - data - retina\checkpoint HOT 5
- Training and Test generating black squares HOT 2
- There are two bugs in the transform function in the utils.py HOT 2
- How to save discriminator network? HOT 2
- Can't create checkpoint
- cannot generate when testing
- failed to teat
- failed to test HOT 1
- NameError:name 'PIL' is not defined HOT 1
- ValueError: could not broadcast input array from shape (1,2048) into shape (98,1024) HOT 2
- TypeError: 'NoneType' object is not subscriptable
- How to generate larger images? HOT 1
- InvalidArgumentError (see above for traceback): Nan in summary histogram for: HistogramSummary_2 [[Node: HistogramSummary_2 = HistogramSummary[T=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"](HistogramSummary_2/tag, discriminator_1/Sigmoid)]] HOT 1
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 dcgan-tensorflow.