유전 알고리즘으로 그림 그리기
Wow.. 신기하다 #main.py import cv2, random, os, sys import numpy as np from copy import deepcopy from skimage.measure import compare_mse import multiprocessing as mp filepath = "img/pooh.jpg" #sys.argv[1] filename, ext = os.path.splitext(os.path.basename(filepath)) img = cv2.imread(filepath) height, width, channels = img.shape # hyperparameters n_initial_genes = 50 n_population = 50 prob_mutation = ..
AI
2021. 4. 27. 14:12