jpterry commited on
Commit
8b71b4f
·
1 Parent(s): 6e2e849

adding print statements

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -146,6 +146,7 @@ def predict_and_analyze(model_name, num_channels, dim, image):
146
  # im = f.readlines()
147
  # image = np.frombuffer(image)
148
 
 
149
  image = np.load(image.name, allow_pickle=True)
150
 
151
  # image = image.reshape((num_channels, W, W))
@@ -163,8 +164,11 @@ def predict_and_analyze(model_name, num_channels, dim, image):
163
 
164
  model_name += '_%i' % (num_channels)
165
 
 
 
166
  model = load_model(model_name, activation=True)
167
 
 
168
  output, activation_1, activation_2 = get_activations(model, image, sub_mean=True)
169
 
170
  output = 'Planet prediction with %f percent confidence' % (100*output)
 
146
  # im = f.readlines()
147
  # image = np.frombuffer(image)
148
 
149
+ print("Loading data")
150
  image = np.load(image.name, allow_pickle=True)
151
 
152
  # image = image.reshape((num_channels, W, W))
 
164
 
165
  model_name += '_%i' % (num_channels)
166
 
167
+
168
+ print("Loading model")
169
  model = load_model(model_name, activation=True)
170
 
171
+ print("Looking at activations")
172
  output, activation_1, activation_2 = get_activations(model, image, sub_mean=True)
173
 
174
  output = 'Planet prediction with %f percent confidence' % (100*output)