Bioinspired Image Reproducer
pip install -r requirements/r.txt
Basic run
python3 main.py -f target_filename
To see the parameters and what they represent, just run:
or
-f
or --filename
, represents the filename of the image will be reproduced (required)
example: 1.jpg
-p
or --population-size
, represents the population size
default=10
-m
or --mutation
, represents the Mutation Type
options: random, rank_based_adaptive, gaussian, triangular. default='gaussian'
Type of Crossover/Recombination
-c
or --crossover
, represents the Crossover Type
options: one_cut, two_point, intermediate, average. default='one_cut'
-M
or --mutation-rate
, represents the Mutation Rate or Probability (between 0 and 1)
default=0.1
-C
or --crossover-rate
, represents the Crossover Rate or Probability (between 0 and 1)
default=0.9
-s
or --grid-size
, represents the Grid size that will be used to travel the image
Indicates the precision of the algorithm and has the number 1 as the minimum value and highest precision (more pixels). default=8
-u
or --gaussian-mu
, represents the mean to be applied in the gaussian mutation
default=2
-d
or --gaussian-sigma
, represents the standard deviation to be applied in the gaussian mutation
default=10