Questions tagged [generative]

50 questions
1
vote
0 answers

Python: Generative Model LinAlgError: singular matrix error

So I'm in a data science course and been working this week with Gaussian generative classifying models. I wrote the following function to fit the training data: def fit_generative_model(x,y): k = 10 # labels 0,1,...,k-1 d = (x.shape)[1] #…
1
vote
0 answers

Color Picker not Visible

I have an issue where I'm unable to see Color Picker. I'm trying to generate a lot of lines to make patterns to make me feel accomplished. It's a side project. I'm not the best at coding so I need help. Also you have to minimize the window and open…
Tanner May
  • 11
  • 6
1
vote
0 answers

How can I extract the embeddings from an InfoGAN discriminator for a similarity search?

I'm trying to adopt a Keras InfoGAN implementation to essentially extract the transfer values (or embeddings) for an image I feed the discriminator. With this, I want to perform a similarity search with the resulting vectors to find the n most…
1
vote
0 answers

Does Keras nested models share attributes?

I am trying to use Keras to implement GANs(Generative Adversial Network). For the non-saturating game, the loss for the generator looks like this: I am considering to implement this as a nested model in Keras which looks like this: def…
Bowen Kuang
  • 100
  • 7
1
vote
1 answer

Generative sequences in Tensorflow

I'm using the following code as a way to generate a sequence of length num_steps given starting_point and starting_state using an instance of a RNNCell, for example cell=GRUCell(number_of_neurons). outputs = [starting_point] state =…
Sycorax
  • 1,298
  • 13
  • 26
1
vote
2 answers

Having trouble rotating each individual element in a double for loop with Processing

So if you run this sketch you'll see a grid of plus signs. I want to rotate each individual but i can't seem to figure it out. I tried translate, pushMatrix/popMatrix. But maybe it's not on the right place. I removed it now, maybe someone can point…
Martijn van den Bergh
  • 1,434
  • 1
  • 20
  • 40
0
votes
0 answers

Generate magazine flatplan with constraints

I'm working on a magazine. We are working with multiple types of papers (short articles, long articles, portfolio, ads, etc.) that together make 128 pages in total. I'm looking for a way to generate ordering proposals for those articles (flatplan).…
0
votes
0 answers

Checkpoints and model training

I'm very new to training on bigger datasets and would appreciate some advice. I have a very large dataset that I am training on Google Colab. Colab has a 12-hour period, and it stops the runtime. I have built-in checkpoints every so often. If Colab…
0
votes
0 answers

Improving classification model (f1_score): real images vs generative images (fake)

I am working on a model to detect images. There are 2 classes, real and generative (fake). I can't get higher than 0.85 f1_score. Any recommendations how to improve the score? The data set contains 4000 real images (4000, 1200) and 2000 fake images…
0
votes
0 answers

What are the recommended security practices for training a chatbot with sensitive corporate data?

I'm working on developing a chatbot that will use sensitive corporate data, and I'm concerned about the security implications of sending this data to a remote server for training. What are the recommended security practices for training a chatbot…
VGF
  • 55
  • 8
0
votes
0 answers

cGANs to variational inference cGANs?

Can we use variational inference in conditional GANs? I tried a Conditional GAN (pix2pix paper) and I want to know how can I use VI in a cGANs? Unfortunately, I could not find a link or an article for it.
0
votes
0 answers

GAN not converging

I have wriiten a python code for a General Adverserial Network which generates CIFAR-10 like images. I have trained the GAN on 100 epochs and after every 10 epoch, I am displaying the error and accuracy of the GAN. My GAN model is training but there…
0
votes
0 answers

How to change Discord application name using Python

I want to change a Discord's application name (NOT username) dynamically through code. Is there any way to do it? I have scrapped through Documentation and not yet found any. headers = {"Authorization":…
0
votes
1 answer

Writing phenaki video to file: Expected numpy array with ndim `3` but got `4`

I'm trying to write the output of the Phenaki make_video to an mp4 file. I'm using this Phenaki implementation from github https://github.com/lucidrains/phenaki-pytorch/search?q=make_video phenaki = Phenaki( cvivit = cvivit, maskgit =…
ninajay
  • 527
  • 1
  • 5
  • 10
0
votes
0 answers

Place a random amount of numbers inside a grid that have a duplicate value

I have been working on a project where I have to create a grid. Inside the grid are 19 rows, with each n-amount of cells. Every cell has an alphabetical value that is hidden. I want to show a number inside some cells, but there are some conditions…