Giter VIP home page Giter VIP logo

bcisift's Introduction

BciSift

Installation

Requirements

  • (Linux) Extra libraries I had to install in order to install OpenCV:
sudo apt install libgtk2.0-dev pkg-config libcanberra-gtk-module libcanberra-gtk3-module 

I've run thesse commands using linux, Cmake however is supposed to be portable (at least in windows and linux), but I have not tried it on another platform yet.

For MAC installation, check the original repository on https://github.com/faturita/BciSift

Building

export LD_LIBRARY_PATH=/usr/local/lib
  • Export OpenCV_DIR variable:
export OpenCV_DIR=<path_of_opencv/build>

Also may have to export opencv for the linker:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/<path_of_opencv>/build/lib
  • Build makefile with Cmake, and then run it
cmake -DCMAKE_CXX_COMPILER=clang++
make

Running

  • generatesignals: Genera 3000 imagenes de seniales aleatorias con picos falsos y las divide en train test y validation
  • loadsignals: Abre un archivo csv con una senial, y genera un dataset de imagenes por cada uno de los canales. El formato de archivos es:
      - name
          - name.csv
          - channelsN
              - images
                  - train
                      - hit
                      - miss
                  - test
                      - hit
                      - miss
                  - validation
                      - hit
                      - miss
              - model.pb
    
    Donde el csv es el primer argumento y name es el segundo
    ./BCISift ./input.csv inyectado_x3
    
  • cnntrain: Recibe el nombre de un dataset. Tiene que estar en la carpeta data y tener una carpeta "images" adentro con la data ya organizada. Genera un model.pb adentro de la carpeta del dataset
  • cnntest: Recibe el nombre de un dataset Tiene que estar en la carpeta data y tener una carpeta "images" adentro con la data ya organizada y un archivo con el nombre 'model.pb'. Corre predicciones en todas las imagenes de test
  • signaltrain: Recibe el nombre de un dataset de tipo senial, con la organizacion descripta en el loadsignal. Entrena los 8 canales por separado y genera un modelo para cada canal

bcisift's People

Contributors

faturita avatar shipupi avatar

Watchers

James Cloos avatar

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.