PrakhAI commited on
Commit
dad1c8d
·
1 Parent(s): f51247b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -42,8 +42,8 @@ def sample_latent(key):
42
  if st.button('Generate Digit'):
43
  latents = sample_latent(jax.random.PRNGKey(int(1_000_000 * time.time())))
44
  g_out = generator.apply({'params': g_state['params'], 'batch_stats': g_state['batch_stats']}, latents, training=False)
45
- print(g_state['params'])
46
- print(g_state['batch_stats'])
47
- print(g_out)
48
  img = ((np.array(g_out)+1)*255./2.).astype(np.uint8)[0]
49
  st.image(Image.fromarray(np.repeat(img, repeats=3, axis=2)))
 
42
  if st.button('Generate Digit'):
43
  latents = sample_latent(jax.random.PRNGKey(int(1_000_000 * time.time())))
44
  g_out = generator.apply({'params': g_state['params'], 'batch_stats': g_state['batch_stats']}, latents, training=False)
45
+ st.write(g_state['params'])
46
+ st.write(g_state['batch_stats'])
47
+ st.write(g_out)
48
  img = ((np.array(g_out)+1)*255./2.).astype(np.uint8)[0]
49
  st.image(Image.fromarray(np.repeat(img, repeats=3, axis=2)))