Johannes Kolbe commited on
Commit
d5205ed
1 Parent(s): 7db1e87

added some more info

Browse files
Files changed (2) hide show
  1. app.py +7 -0
  2. interface.py +5 -0
app.py CHANGED
@@ -62,6 +62,9 @@ def _update_slider():
62
 
63
  """Main function (loop for StreamLit)."""
64
  st.title('Closed-Form Factorization of Latent Semantics in GANs')
 
 
 
65
  st.sidebar.title('Options')
66
  st.sidebar.button('Reset', on_click=_update_slider, kwargs={})
67
 
@@ -130,3 +133,7 @@ for sem_idx, step in steps.items():
130
  code[:, layers, :] += boundaries[sem_idx:sem_idx + 1] * step
131
  image = synthesize(model, gan_type, code)
132
  image_placeholder.image(image / 255.0)
 
 
 
 
 
62
 
63
  """Main function (loop for StreamLit)."""
64
  st.title('Closed-Form Factorization of Latent Semantics in GANs')
65
+ st.markdown("This space is the ported version of [Closed-Form Factorization of Latent Semantics in GANs](https://github.com/genforce/sefa). It reads all sample models from the Hugging Face Hub")
66
+ st.markdown("---")
67
+
68
  st.sidebar.title('Options')
69
  st.sidebar.button('Reset', on_click=_update_slider, kwargs={})
70
 
 
133
  code[:, layers, :] += boundaries[sem_idx:sem_idx + 1] * step
134
  image = synthesize(model, gan_type, code)
135
  image_placeholder.image(image / 255.0)
136
+
137
+ st.markdown("---")
138
+ st.markdown("""This space was created by [johko](https://twitter.com/johko990). Main credits go to the original authors Yujun Shen and Bolei Zhou, who created a great code base to work on.
139
+ This version loads all models from the Hugging Face Hub.""")
interface.py CHANGED
@@ -66,6 +66,8 @@ def main():
66
  """Main function (loop for StreamLit)."""
67
 
68
  st.title('Closed-Form Factorization of Latent Semantics in GANs')
 
 
69
  st.sidebar.title('Options')
70
  st.sidebar.button('Reset', on_click=_update_slider, kwargs={})
71
 
@@ -135,6 +137,9 @@ def main():
135
  image = synthesize(model, gan_type, code)
136
  image_placeholder.image(image / 255.0)
137
 
 
 
 
138
 
139
  if __name__ == '__main__':
140
  main()
 
66
  """Main function (loop for StreamLit)."""
67
 
68
  st.title('Closed-Form Factorization of Latent Semantics in GANs')
69
+ st.markdown("This space is the ported version of [Closed-Form Factorization of Latent Semantics in GANs](https://github.com/genforce/sefa). It reads all sample models from the Hugging Face Hub")
70
+ st.markdown("---")
71
  st.sidebar.title('Options')
72
  st.sidebar.button('Reset', on_click=_update_slider, kwargs={})
73
 
 
137
  image = synthesize(model, gan_type, code)
138
  image_placeholder.image(image / 255.0)
139
 
140
+ st.markdown("---")
141
+ st.markdown("""This space was created by [johko](https://twitter.com/johko990). Main credits go to the original authors Yujun Shen and Bolei Zhou, who created a great code base to work on.
142
+ This version loads all models from the Hugging Face Hub.""")
143
 
144
  if __name__ == '__main__':
145
  main()