본문 바로가기

좋아하는 것_매직IT/96.IT 핫이슈

rain.js - Javascript로 작성된 GPU 가속 뉴럴 네트워크

반응형

rain.js - Javascript로 작성된 GPU 가속 뉴럴 네트워크를 소개합니다.

홈페이지에서는 아래와 같이 소개하고 있고요..
GPU accelerated Neural networks in JavaScript for Browsers and Node.js

한마디로 간단하게 말씀드리면..
Javascript로 작성된 GPU 가속 뉴럴 네트워크라고 머릿속에 넣어두시면 됩니다.

그리고, rain.js 관련 간단하게 특징을 소개하자면 아래와 같습니다.
- 브라우저와 Node.js 에서 쉽고 빠르고 편하게 사용 가능  
- GPU.js 를 이용하여 GPU 활용 및 GPU 사용 불가능할 때 자바스크립트 폴백도 지원  
- 여러 신경망 지원 : RNN, LSTM, GRU,..  
- 네이티브 모듈인 headless-gl 에 의존  
 - 맥, 우분투/데비안, 윈도우 에서 사용 가능 (Python 및 gcc, MSVS 등 필요)

시작은 아래와 같이 하시면 될것 같고요..

Getting Started

There are multiple ways to use this library:

NPM

npm install --save brain.js

CDN

<script src="//unpkg.com/brain.js"></script>

Download

Installation note

`Brain.js` depends on a native module `headless-gl` for gpu support. In most cases installing `brain.js` from npm should just work. However, if you run into problems, this mean prebuilt binaries are not able to download from github reporsitories and npm might need to build it for you.

Building from source

Please make sure the following dependencies are installed and up to date and then run:
npm rebuild

System dependencies

Mac OS X

Ubuntu/Debian

sudo apt-get install -y build-essential libxi-dev libglu1-mesa-dev libglew-dev pkg-config

Windows

* For general information on building native modules, see the node-gyp documentation.

예시를 알아봤는데요..
아래와 같이 XOR 함수 라던가, Simple Letter Detection 등등이 있었네요..

좀 더 자세한 사항은 홈페이지를 방문하셔서 알아보시면 좋을것 같네요..

아무튼 오늘블로그는 여기까지고요..
항상 믿고 봐주셔서 감사합니다.

728x90
300x250