GithubHelp home page GithubHelp logo

tsukar / evolo Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 1.13 MB

Evolutionary YOLO

Python 64.24% Jupyter Notebook 35.76%
convolutional-neural-networks evolutionary-computation neural-architecture-search

evolo's Introduction

evolo

CircleCI

Evolutionary YOLO

Requirements

  • Python 3.6.7
  • Jupyter Notebook

Usage

Clone this repository and AlexeyAB/darknet, respectively.

$ git clone https://github.com/tsukar/evolo.git
$ git clone https://github.com/AlexeyAB/darknet.git
$ cd darknet/

Edit the Makefile so that you can use your GPU.

@@ -1,7 +1,7 @@
-GPU=0
-CUDNN=0
+GPU=1
+CUDNN=1
 CUDNN_HALF=0
-OPENCV=0
+OPENCV=1
 AVX=0
 OPENMP=0
 LIBSO=0
@@ -30,7 +30,7 @@ OS := $(shell uname)
 # ARCH= -gencode arch=compute_72,code=[sm_72,compute_72]
 
 # GTX 1080, GTX 1070, GTX 1060, GTX 1050, GTX 1030, Titan Xp, Tesla P40, Tesla P4
-# ARCH= -gencode arch=compute_61,code=sm_61 -gencode arch=compute_61,code=compute_61
+ARCH= -gencode arch=compute_61,code=sm_61 -gencode arch=compute_61,code=compute_61
 
 # GP100/Tesla P100 <96> DGX-1
 # ARCH= -gencode arch=compute_60,code=sm_60

Just make and copy the compiled binary into the root directory of this repository.

$ make
$ cp darknet ../evolo/
$ cd ../evolo/

Download the pre-trained weights from YOLOv2 official site.

$ wget https://pjreddie.com/media/files/darknet19_448.conv.23

Download train.zip and test.zip (currently not available - please contact me at tsukada [at] iba.t.u-tokyo.ac.jp if you need them). Put the decompressed *.jpg files in data/x-ray/train/, data/x-ray/test/, respectively.

Run Jupyter Notebook and open evolution.ipynb -> Run All to start evolution.

$ jupyter notebook

After evolution, open evaluation.ipynb -> Run All for evaluation.

evolo's People

Contributors

tsukar avatar

evolo's Issues

Add test code for input/output dimensions

The logic for calculating input/output dimensions has not yet been tested.

A possible way to confirm it works is:

  • To let the darknet binary parse the .cfg files mutated by this program, and check if no error occurs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.