vict0rsch commited on
Commit
18e383c
1 Parent(s): c40855a

uint8 empty images

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -154,19 +154,19 @@ def predict(cg: ClimateGAN, api_key):
154
 
155
  climategan_flood = output_dict.get(
156
  "climategan_flood",
157
- np.ones(input_image.shape) * 255,
158
  )
159
  stable_flood = output_dict.get(
160
  "stable_flood",
161
- np.ones(input_image.shape) * 255,
162
  )
163
  stable_copy_flood = output_dict.get(
164
  "stable_copy_flood",
165
- np.ones(input_image.shape) * 255,
166
  )
167
  concat = output_dict.get(
168
  "concat",
169
- np.ones(input_image.shape) * 255,
170
  )
171
 
172
  return (
 
154
 
155
  climategan_flood = output_dict.get(
156
  "climategan_flood",
157
+ np.ones(input_image.shape, dtype=np.uint8) * 255,
158
  )
159
  stable_flood = output_dict.get(
160
  "stable_flood",
161
+ np.ones(input_image.shape, dtype=np.uint8) * 255,
162
  )
163
  stable_copy_flood = output_dict.get(
164
  "stable_copy_flood",
165
+ np.ones(input_image.shape, dtype=np.uint8) * 255,
166
  )
167
  concat = output_dict.get(
168
  "concat",
169
+ np.ones(input_image.shape, dtype=np.uint8) * 255,
170
  )
171
 
172
  return (