# Snack & Hacks Genetic Algorithms
There are two challenges available for this episode of Snacks & Hacks:
1. Use genetic algorithms to generate a custom image of simple shapes (moderate level, no hardware requirements)
2. Use genetic algorithms to generate your face using nvidia's StyleGAN for hyper-realistic faces (advanced level, GPU needed)
## Challenge 1
The instructions for the first moderate level challenge can be found in the file genetic_polygons.py in this repository.
## Challenge 2
The second advanced level challenge makes use of tensorflow and the contents of this repo: https://github.com/NVlabs/stylegan. **Note that to do this assignment you need to have an nvidia GPU with CUDA environment setup**. Alternatively, you can use cloud computing, like Google Cloud Platform, but there may be costs associated with it, there will be added complexity, and it may take some time before you get the necessary approval for your GPU quota.
The idea of the challenge is to use adapt the code from https://github.com/NVlabs/stylegan/blob/master/pretrained_example.py to generate face phenotypes using either the input layer or activation in one of the hidden layers as genotypes. The fitness function should be based on similarity between a phenotype and a target face that we're trying to generate (for instance your own face).
This challenge is certainly not for the faint-hearted, so unless you know what you're doing, you should go for Challenge 1.
Good luck!
## More information
Blog post providing a brief intro to genetic algorithms: https://towardsdatascience.com/introduction-to-genetic-algorithms-including-example-code-e396e98d8bf3
用于图像生成的遗传算法:用于复制图像的两种遗传算法。 一个使用多边形和一个像素
需积分: 24 36 浏览量
2021-02-05
22:27:15
上传
评论
收藏 12.58MB ZIP 举报
日月龙腾
- 粉丝: 27
- 资源: 4575
最新资源
- 三菱PLC(Mitsubishi)通讯协议的C#实现,支持FX、Q系列的ASCII-3E、BIN-3E、FX串口格式
- 五一建模20242024
- rainy-day.jpg
- IMG_20240501_171218.jpg
- Swift-内购封装swift版本
- 经典CNN网络之ResNet 图像分类网络实战项目:7种小麦叶片病害分类(迁移学习)
- Java毕设之ssm010基于ssm的新能源汽车在线租赁管理系统+vue.rar
- Java毕设之ssm009毕业生就业信息统计系统+vue.rar
- Java毕设之ssm008医院门诊挂号系统+jsp.rar
- Java毕设之ssm007亚盛汽车配件销售业绩管理统+jsp.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
评论0