Questions tagged [dcgan]

Deep Convolutional Generative Adversarial Networks (dcgan) are ai architectural structures used for conveluted systems, that do not depend on the standard mean-squared error pathing, and so these ai systems learn of their own volition. dcgans are typically used to generate unique content.

Deep Convolutional Generative Adversarial Networks (dcgan) are architectural structures used for conveluted systems, that do not depend on the standard mean-squared error pathing, and so thse ai systems learn of their own volition. dcgans are typically used to generate unique content.

dcgan typically comprises two parts;
The discriminator, which learns how to distinguish fake from real objects of the type we’d like to create
The generator, which creates new content and tries to fool the discriminator

89 questions
1
vote
1 answer

DCGANs discriminator accuracy metric using PyTorch

I am implementing DCGANs using PyTorch. It works well in that I can get reasonable quality generated images, however now I want to evaluate the health of the GAN models by using metrics, mainly the ones introduced by this guide…
apples92
  • 25
  • 2
  • 6
1
vote
0 answers

Keras/TensorFlow MNIST DCGAN: why does generator has almost zero loss from start?

I have constructed a DCGAN (deep convolutional generative adversarial network) inspired by this github repository. It is written in a more low level Tensorflow code that I tried transforming into Keras syntax instead. Now, the network is quite heavy…
1
vote
0 answers

How to reshape images in folder for DCGAN code?

These are the 9600 images in my folder + their properties: enter image description here I tried resizing them with this code below, but then this gave me an image shape of (9600, 224, 672). I mainly used this code because it helped me get my images…
srv_77
  • 547
  • 1
  • 8
  • 20
1
vote
0 answers

Improving a DCGAN by giving the generator an edge batch to start with

I'm trying to improve a DCGAN by giving the generator an edge batch to start with. I'm having trouble with the dimensions of the array. I want my image edge array to have the same dimension as np.random.randn(64, 128) Here is some of my code: def…
1
vote
2 answers

PyTorch expected CPU got CUDA tensor

I've been struggling to find what's wrong in my code. I'm trying to implement DCGAN paper and from the past 1 hour, I'm going through these errors. Could anyone please help me fix this? I'm training this on Google colab with GPU runtime but I'm…
1
vote
1 answer

What is the code and kernel value of the respective CNN(DCGAN) model? TF KERAS

I am trying to replicate a paper, "Unsupervised fabric defect detection based on a deep convolutional generative adversarial network", by Guanghua Hu. It's a DCGAN, but has also a inverter, that is similar to the discriminator. My question is how…
1
vote
2 answers

Issue regarding channel size in DCGAN (Pytorch) for grayscale image

I tried to modify this example code enter link description here of DCGAN for my own dataset. The exmple code is for RGB image, but my data is grayscale image. Therefore, I set the value of number of channels ‘nc’ as 1. However, when I tried running…
1
vote
2 answers

Difference between simple GAN and DCGAN

I'm exploring Generative Adeversarial Networks (GAN's), which i use for several tasks not only image generation. The Deep Convolutional GAN (DCGAN) is another approche of GAN that is specially used for image data, the particulatity of DCGAN's is…
Nadjib Bendaoud
  • 546
  • 1
  • 8
  • 19
1
vote
0 answers

How do BN layers work in DCGAN while using keras?

I train a DCGAN on CelebA dataset using keras whose version is 2.2.4.I'm confused about the keras functional API implementation like predict about BN layers in the DCGAN architecture. During training,I need to use generator.predict(noise) to get…
Zhiwen
  • 11
  • 3
1
vote
1 answer

Conditional GAN - shuffle/split two datasets identically

I'm trying to use train a DCGAN to colorize some images. When doing so, I condition my GAN on grayscale versions of the images. I then want to train my GAN/discriminator first with a batch of real images, and then with a batch of fake images. Every…
forTheRoad
  • 61
  • 5
1
vote
1 answer

How to create a Pytorch Dataset from .pt files?

I have transformed MNIST images saved as .pt files in a folder in Google drive. I'm writing my Pytorch code in Colab. I would like to use these files, and create a Dataset that stores these images as Tensors. How can I do this? Transforming images…
a_jelly_fish
  • 478
  • 6
  • 21
1
vote
1 answer

Need help understanding the label input in a CGAN

I am trying to implement a CGAN. I understand that in convolutional generator and discriminator models, you add volume to the inputs by adding depth that represents the label. So if you have 10 classes in your data, your generator and discriminator…
Zengi
  • 121
  • 1
  • 10
1
vote
1 answer

Invalid operation is performed in: LinearFunction (Forward)

this is the main code. The images size is 420*420 import os import chainer from chainer import training from chainer.training import extensions batchsize = 64 epoch = 10 gpu = 0 dataset = "/content/gdrive/My Drive/images/" out =…
evgeni fotia
  • 4,650
  • 3
  • 16
  • 34
1
vote
0 answers

DCGAN generator loss stuck at 0.7 after 5 epochs

After playing around with the PyTorch DCGAN faces tutorial, i started working with my own dataset which consists of images with size 1x32x32 (channel, height, width). Now, i did apply most of the things from this repository:…
1
vote
1 answer

Why doesn't this test function output an image? pokeGAN Tutorial

I am new to python coding and using tensorflow, that being said this may be a dumb question. I was following the pokeGAN tutorial done by Siraj, and he doesn't really comment on the test function. I have trained the model, but when I uncomment the…