def create_figure_and_sliders(name, state_dim):
    '\n    Creating a window for the latent space visualization,\n    and another one for the sliders to control it.\n\n    :param name: name of model (str)\n    :param state_dim: (int)\n    :return:\n    '
    cv2.namedWindow(name, cv2.WINDOW_NORMAL)
    cv2.resizeWindow(name, 500, 500)
    cv2.namedWindow(('slider for ' + name))
    for i in range(state_dim):
        cv2.createTrackbar(str(i), ('slider for ' + name), 50, 100, (lambda a: None))
Creating a window for the latent space visualization,
and another one for the sliders to control it.

:param name: name of model (str)
:param state_dim: (int)
:return:
def create_figure_and_sliders(name, state_dim):
    '\n    Creating a window for the latent space visualization,\n    and another one for the sliders to control it.\n\n    :param name: name of model (str)\n    :param state_dim: (int)\n    :return:\n    '
    cv2.namedWindow(name, cv2.WINDOW_NORMAL)
    cv2.resizeWindow(name, 500, 500)
    cv2.namedWindow(('slider for ' + name))
    for i in range(state_dim):
        cv2.createTrackbar(str(i), ('slider for ' + name), 50, 100, (lambda a: None))