11 questions
0
votes
1
answer
81
views
Generator is not learning in One to Many CGANs
I am still new to GANs and trying to implement the One to Many CGAN, on the MNIST Dataset, to generate a sequence of images (with the number of output images equal to the number of generators) from a ...
1
vote
0
answers
31
views
downsampling time series and noise vector in a GAN generator
I am building a conditional GAN for time series forecasting. My dataset consists of multivariate time series data, including historical gold prices and historical USD prices as features. My goal is to ...
1
vote
1
answer
362
views
How to train a model for a dataset of images with 12 bands using TensorFlow's pix2pix notebook?
I'm using TensorFlow's pix2pix: Image-to-image translation with a conditional GAN notebook to train a model for my dataset that consists of multispectral satellite images with 12 bands like 512 x 512 ...
0
votes
1
answer
78
views
Python Tensorflow error "Input 0 of layer "dense" is incompatible with the layer: expected min_ndim=2, found ndim=1."
I'm creating a cGAN model network for a project yet run into the error (the code will be at the bottom):
Exception has occurred: ValueError
Exception encountered when calling layer 'sequential' (type ...
1
vote
0
answers
183
views
Implementation of the discriminator in CGAN
I am trying to implement CGAN with convolutions. I have written a discriminator. The code is running but I am not sure if it is correct or not. Below is my code
import torch
import torch.nn as nn
...
0
votes
1
answer
185
views
ValueError: Input 0 of layer “Discriminator” is incompatible with the layer: expected shape=(None, 3), found shape=(100, 2)
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn import preprocessing
from sklearn.preprocessing import StandardScaler
from sklearn.metrics ...
0
votes
0
answers
192
views
Conditional GAN loss
I'm a little confused, I applied an existing code to the cgan and then plotted a plot diagram for the loss. It showed me three vector values of loss for the generator while the discriminant took ...
1
vote
0
answers
55
views
I want to optimize the conditon gan model (generator),error: shape '[64, 3, 64, 64]' is invalid for input of size 2952192 ,
This is original github source:
https://github.com/otepencelik/GAN-Artwork-Generation
I want to rerun this model and use it another area (CGAN).
I want to change the network to generate multiple label ...
0
votes
1
answer
168
views
In layers.append(nn.BatchNorm1d(out_feat, 0.8)) and layers.append(nn.LeakyReLU(0.2, inplace=True)) What is meant by 0.8 and 0.2?
class Generator(nn.Module):
def init(self): # defines an init function which is used to initialize all the required variables
super(Generator, self).init()
self.label_emb = nn.Embedding(opt....
1
vote
0
answers
94
views
best way of using float as the conditional input for cGAN? one-hot encoder?
I'm trying to make a model for outputing an image based on speed (a float input). This can for example range from 1.0 to 6.0. so basically it is an cGAN, with a latent noise and a float as combined ...
0
votes
0
answers
200
views
Getting Error in tf.cast while implementing CGAN
Question
HI, I am implementing CGAN in TensorFlow.
Please help me understand the cause of the error and how to resolve it.
Code
def train(dataset, epochs): for epoch in range(epochs):
start = ...