Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

Fixing script for vae demo

Open kahitomi opened this issue 9 years ago • 3 comments

Recently, I tried running the vae demo, but it did not work well. The problem is caused by the reparameterization funciton, I changed it a bit as follow:

def reparameterization(mu, logvar):
    eps = data_layer(name="noise", size=z_dim)
    with mixed_layer(act=LinearActivation()) as sigma:
        sigma += dotmul_operator(layer_math.sqrt(layer_math.exp(logvar)), eps)

    return mu + sigma

The main issue in previous script is setting paramattr as eps. What is more, reducing z_dim size may get better result.

Best wishes

kahitomi avatar Aug 31 '17 01:08 kahitomi

@cxysteven help to follow up this issue

luotao1 avatar Sep 01 '17 02:09 luotao1

go ahead.

cxysteven avatar Sep 01 '17 03:09 cxysteven

close this issue due to inactivity.

wanghaoshuang avatar Feb 04 '18 06:02 wanghaoshuang