nostalgebraist commited on
Commit
876d9a1
·
1 Parent(s): 693beab
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -93,6 +93,8 @@ gs1 = st.select_slider('Guidance scale (base)', [0.5*i for i in range(9)], value
93
  button_go = st.button('Generate')
94
  button_stop = st.button('Stop')
95
 
 
 
96
  if button_go:
97
  low_res = st.empty()
98
  high_res = st.empty()
@@ -119,6 +121,7 @@ if button_go:
119
  total = ts2
120
  times_high.append(delta)
121
  times = times_high
 
122
  else:
123
  target = low_res
124
  count_low_res += 1
@@ -126,12 +129,13 @@ if button_go:
126
  total = ts1
127
  times_low.append(delta)
128
  times = times_low
 
129
 
130
  rate = sum(times)/len(times)
131
 
132
  with target.container():
133
  st.image([s, xs])
134
- st.write(f'{count} / {total} | {rate:.2f} seconds/frame')
135
 
136
  if button_stop:
137
  break
 
93
  button_go = st.button('Generate')
94
  button_stop = st.button('Stop')
95
 
96
+ st.write("During generation, the two images show different ways of looking at the same process.\n\nThe left image starts with 100% noise and gradually turns into 100 sigal.\n\nThe right image shows the model's current 'guess' about the left image will look like when all the noise has been removed.")
97
+
98
  if button_go:
99
  low_res = st.empty()
100
  high_res = st.empty()
 
121
  total = ts2
122
  times_high.append(delta)
123
  times = times_high
124
+ prefix = "Part 1 of 2 (base model)"
125
  else:
126
  target = low_res
127
  count_low_res += 1
 
129
  total = ts1
130
  times_low.append(delta)
131
  times = times_low
132
+ prefix = "Part 2 of 2 (upsampling)"
133
 
134
  rate = sum(times)/len(times)
135
 
136
  with target.container():
137
  st.image([s, xs])
138
+ st.write(f'{prefix} | {count:02d} / {total} frames | {rate:.2f} seconds/frame')
139
 
140
  if button_stop:
141
  break