Questions tagged [generative]
50 questions
654
votes
13 answers
What is the difference between a generative and a discriminative algorithm?
What is the difference between a generative and a
discriminative algorithm?

unj2
- 52,135
- 87
- 247
- 375
89
votes
19 answers
Procedural music generation techniques
I've been putting a lot of thought into procedural generation of content for a while and I've never seen much experimentation with procedural music. We have fantastic techniques for generating models, animations, textures, but music is still either…

Serafina Brocious
- 30,433
- 12
- 89
- 114
8
votes
2 answers
What's the relationshiop between Xtext and ANTLR?
I heard that Xtext ultimately uses ANTLR but their grammar specification files have somewhat different formats. So what's the relationship between the two?

oddin
- 391
- 3
- 11
3
votes
1 answer
How to send a picture to printer with python on macOS
I'm doing a python program (using python3.6) that dynamically generates a .jpg picture as output (I used Pillow module). How can I send that picture directly to my printer automatically right after I generate it?
I tried to look into the os module…

Alberto
- 35
- 5
3
votes
2 answers
GAN Converges in Just a Few Epochs
I implemented a genrative adversarial network in Keras. My training data size is about 16,000, where each image is of 32*32 size. All of my training images are the resized versions of the imageds from the imagenet dataset with regard to the object…

Xiangyu Wang
- 31
- 2
2
votes
2 answers
Loss functions in GANs
I'm trying to build a simple mnist GAN and need less to say, it didn't work. I've searched a lot and fixed most of my code. Though I can't really understand how loss functions are working.
This is what I did:
loss_d =…

ParmuTownley
- 957
- 2
- 14
- 34
2
votes
2 answers
How to update GAN Generator and Discriminator asynchronously in Tensorflow?
I want to develop a GAN with Tensorflow, with the Generator being an autoencoder and the Discriminator a Convolutional Neural Net with binary output. There is no problem to develop an autoencoder and the CNN, but my idea is to train 1 epoch for each…

razimbres
- 4,715
- 5
- 23
- 50
2
votes
1 answer
Generate text with a trained character level LSTM model
I trained a model with the purpose of generating sentences as follow:
I feed as training example 2 sequences: x which is a sequence of characters and y which is the same shift by one. The model is based on LSTM and is created with tensorflow.
My…

JimZer
- 918
- 2
- 9
- 19
2
votes
0 answers
Generative Recursion vs. Corecursion
Wikipedia's discussion of recursion indicates that generatively recursive functions "can often be interpreted as corecursive functions" (emphasis mine) while Wikipedia's discussion of corecursion makes it sound like the two are synonyms when it…

Ben Gribaudo
- 5,057
- 1
- 40
- 75
2
votes
2 answers
Processing blendMode issue
I've written a simple script that generates three lines in random positions on a grid. Each line is specific colour - it's for a logo. I want to use the multiply blend mode, but it creates jagged imagery. Any ideas on how to fix this issue?
//…

Lachie9383
- 23
- 5
2
votes
3 answers
Difference between Generative, Discriminating and Parametric, Nonparametric Algorithm/Model
Here in SO I found the following explanation of generative and discriminitive algorithms:
"A generative algorithm models how the data was generated in order to categorize a signal. It asks the question: based on my generation assumptions, which…

Zahid Hasan
- 555
- 1
- 6
- 12
1
vote
2 answers
GCP generativelanguage.googleapis.com not able to enable
I am trying to use this api to call the text-bison model. I get the error below. And when I go to api console, I do not see any option to enable it.
google.api_core.exceptions.PermissionDenied: 403 Generative Language
API has not been used in…

Rajib Deb
- 1,496
- 11
- 30
1
vote
1 answer
Weird behavor of generated object with arrays
I am trying to create a generative object, filled with arrays (all 0).
//declaration of the data object
var data = {}
//initiate to fill data with keys and arrays
function init()
{
var pos =…

HardGroove
- 11
- 1
1
vote
1 answer
Getting a combination of a list where it selects the current number in the list and below
I'm trying to get all combinations of numbers but it's a bit complex, so I'll show via example:
Say I have a list like [5, 10, 12, 4, 6]
I want the combinations of [1, 1, 1, 1, 1], [1, 2, 1, 1, 1], ... [5, 10, 12, 4, 6]
So each number only goes up…

ulkerbiscuits
- 15
- 4
1
vote
0 answers
LineTrace algorithim in processing
I'm trying to implement the LineTrace algorithm described in this article:
Linetrace Generative Art
Particularly where it says:
To trace the outline you can sample some of the nearby edges on the previous line, calculate the average direction of…

pintee
- 119
- 1
- 10