Closed intellizd closed 4 years ago
I had designed DCGAN Layer with reference to pythorch's DCGAN. but there was a missing part in that part.
So I made some corrections by referring to the orignal DCGAN paper. I change the LeakyRelu slope parameter from 0.001x to 0.2x and generator noise connecting with layers of fc layer that include 1024 paramaeter When I added this part, the image began to be created like the paper.
It's almost done. I'm now working on fine tuning and finishing.
I will share the source as soon as it is completed.
thanks.
After the final tune-up,
Here's the result:
It's almost the same, but there's a little noise. I try to remove this noise and improve it with color images.
I'm trying to modify mean & standard deviation parameters in batchnormalization(bn) layer, but I'm not sure how to modify them.
@davisking Please advise to me.
That's brilliant! Thank you for sharing these results. I look forward to seeing results also in color... The noises noted in the fake image compared to the original one perhaps come from the training data's distribution? Is the input noise updated, for example, at each Epoch? Couldn't this affect the quality of the projection and therefore the output image, for example? This network type is really exciting.
I haven't played around with GANs much, so I'm not the best person to ask about the tricks necessary to get them working.
@Cydral Thanks for your compliment.
First, it is necessary to fix the z= noise value to verify that it is being generated correctly.
I think you want to projection image that generated image from each input noise.
Next, I will test GAN by random noise if GAN by fixed noise that is stable. Color image is next. because color image is 3 times slow. I think we need some time to develop it now. I ask for your continued attention. thanks
@davisking I am using Dlib Frameworks to develop GAN. It wasn't about the GAN, it was about the bnlayer. I want to manually set the Mean value and standard deviation in bn layer. I saw a bn_ layer source and it was very complicated!
@intellizd, that's correct. I verified the code you shared and yes, I had the impression that the noises vector could change between several iterations, which in my opinion should penalize convergence on the one hand, and disturb the stability of the parametric model on the other. I'm doing tests myself (and this for some time now) but I'm still stuck on the back-propagation part. I try with convoluted and deconvoluted images to avoid Gaussian noise as an input... but for the moment, it doesn't want to work. So yes, you're right, I'm trying a pix2pix transfer instead. Your progress is very helpful to me so I stay in touch!
We need more understanding of noise vectors in generator. the noise vector shall be assigned to the image to be generated. and we can generate distributed images such like face image category that male & female. most GANs Example, noise input Z is generated indiscriminately without this. we must understand the Original DC-GANs thesis before implementing GANs.
I am trying to implement dcgan-cifar. However, a problem occurred while learning CIFAR10 MODELS. Maybe,I think there is a problem with the function . Binary Cross Entropy (BCE)? that I developed. I made several loss functions.And it's testing. I don't think I know exactly what mechanism Dlib's loss function is yet.
Cifar-DCGAN Layer Architectures
BCE Source