Generation

generate functionThu, 26 Jan 2023

to initialize the population from image by flamingo search alg.

def init_population(size, image_size, image_array): pop = np.zeros((size, image_size[0], image_size[1], 3), dtype=np.uint8) for i in range(size): pop[i] = image_array return pop

Want to kickstart your project?Use the new AI Studio to create your code