marta-marta commited on
Commit
3ed364c
·
1 Parent(s): 878d5d1

Modifying the figures to be published

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -309,7 +309,7 @@ latent_point_2 = encoder_model_boxes.predict(number_2_expand)[0]
309
  latent_dimensionality = len(latent_point_1) # define the dimensionality of the latent space
310
  ########################################################################################################################
311
  # Establish the Framework for a LINEAR Interpolation
312
- number_internal = 8 # the number of interpolations that the model will find between two points
313
  num_interp = number_internal + 2 # the number of images to be pictured
314
  latent_matrix = [] # This will contain the latent points of the interpolation
315
  for column in range(latent_dimensionality):
@@ -342,7 +342,7 @@ if st.button("Generate Interpolation:"):
342
  # plt.title("Second Interpolation Point:\n" + str(box_shape_test[number_2]) + "\nPixel Density: " + str(
343
  # box_density_test[number_2]) + "\nAdditional Pixels: " + str(additional_pixels_test[number_2])) # + "\nPredicted Latent Point 2: " + str(latent_point_2)
344
  """
345
- linear_interp_latent = np.linspace(latent_point_1, latent_point_2, interp_length)
346
  print(len(linear_interp_latent))
347
 
348
  linear_predicted_interps = []
 
309
  latent_dimensionality = len(latent_point_1) # define the dimensionality of the latent space
310
  ########################################################################################################################
311
  # Establish the Framework for a LINEAR Interpolation
312
+ number_internal = int(interp_length) # the number of interpolations that the model will find between two points
313
  num_interp = number_internal + 2 # the number of images to be pictured
314
  latent_matrix = [] # This will contain the latent points of the interpolation
315
  for column in range(latent_dimensionality):
 
342
  # plt.title("Second Interpolation Point:\n" + str(box_shape_test[number_2]) + "\nPixel Density: " + str(
343
  # box_density_test[number_2]) + "\nAdditional Pixels: " + str(additional_pixels_test[number_2])) # + "\nPredicted Latent Point 2: " + str(latent_point_2)
344
  """
345
+ linear_interp_latent = np.linspace(latent_point_1, latent_point_2, num_interp)
346
  print(len(linear_interp_latent))
347
 
348
  linear_predicted_interps = []