Spaces:
Running
Running
Commit
·
39da866
1
Parent(s):
be50c8a
Modifying the number of options for interpolation lengths. Also changed the definition of the interpolation length
Browse files
app.py
CHANGED
@@ -260,7 +260,7 @@ shape_options = ("basic_box", "diagonal_box_split", "horizontal_vertical_box_spl
|
|
260 |
"x_hot_dog_box", "x_plus_box")
|
261 |
density_options = ["{:.2f}".format(x) for x in np.linspace(0.1, 1, 10)]
|
262 |
thickness_options = [str(int(x)) for x in np.linspace(0, 10, 11)]
|
263 |
-
interpolation_options = [str(int(x)) for x in
|
264 |
|
265 |
# Provide User Options
|
266 |
st.header("Option 1: Perform a Linear Interpolation")
|
@@ -338,8 +338,8 @@ latent_point_2 = encoder_model_boxes.predict(number_2_expand)[0]
|
|
338 |
latent_dimensionality = len(latent_point_1) # define the dimensionality of the latent space
|
339 |
########################################################################################################################
|
340 |
# Establish the Framework for a LINEAR Interpolation
|
341 |
-
number_internal = int(interp_length) # the number of interpolations that the model will find between two points
|
342 |
-
num_interp =
|
343 |
latent_matrix = [] # This will contain the latent points of the interpolation
|
344 |
for column in range(latent_dimensionality):
|
345 |
new_column = np.linspace(latent_point_1[column], latent_point_2[column], num_interp)
|
|
|
260 |
"x_hot_dog_box", "x_plus_box")
|
261 |
density_options = ["{:.2f}".format(x) for x in np.linspace(0.1, 1, 10)]
|
262 |
thickness_options = [str(int(x)) for x in np.linspace(0, 10, 11)]
|
263 |
+
interpolation_options = [str(int(x)) for x in np.linspace(2, 20, 19)]
|
264 |
|
265 |
# Provide User Options
|
266 |
st.header("Option 1: Perform a Linear Interpolation")
|
|
|
338 |
latent_dimensionality = len(latent_point_1) # define the dimensionality of the latent space
|
339 |
########################################################################################################################
|
340 |
# Establish the Framework for a LINEAR Interpolation
|
341 |
+
# number_internal = int(interp_length) # the number of interpolations that the model will find between two points
|
342 |
+
num_interp = int(interp_length) # the number of images to be pictured
|
343 |
latent_matrix = [] # This will contain the latent points of the interpolation
|
344 |
for column in range(latent_dimensionality):
|
345 |
new_column = np.linspace(latent_point_1[column], latent_point_2[column], num_interp)
|