DL-Seq2Seq icon indicating copy to clipboard operation
DL-Seq2Seq copied to clipboard

Unconditional sketch generation producing same output

Open alasin opened this issue 6 years ago • 1 comments

Hi,

Thanks for open-sourcing your implementation. I tried the unconditional variant of your sketch generation model and I'm getting the same output for multiple calls to skrnn_sample followed by draw_image. Is this expected?

alasin avatar Mar 02 '19 16:03 alasin

You need to set random_state parameter in the skrnn_sample module. By default it is set at 98, that's why you are getting same image for multiple calls. While sampling from the trained model we need to generate samples using gmm layer, so generating similar output again and again is not possible. As a solution, for each random_state the model's parameters are initialized with similar values. So you can generate an output for a fixed initialiazation of parameters again.

Hope it clears your doubt.

GauravBh1010tt avatar Mar 03 '19 06:03 GauravBh1010tt