Coder Social home page Coder Social logo

neural_style_plugin's Introduction

NeuralStylePluginFx

ニューラルネットワークのモデルファイルは同梱していないので、動作させるためには、 nin_imagenet.caffemodel および VGG_ILSVRC_16_layers.caffemodelchainer-neural-art ディレクトリに配置してください。

Windows で動作させる

本プラグインを Windows 上で動作させるためには、下記の環境設定が必要になります。

GPU を使う場合

  1. Visual Studio Community 2013 をインストールする
  • link1 から Web インストーラをダウンロードして実行します
  1. CUDA Toolkit 7.5 をインストールする
  • link2Windows x86_64 を選択して、インストーラをダウンロード、実行します
  1. cuDNN をインストールする
  • link3 から、ライセンスに同意後、cuDNN v4 Library for Windows をダウンロードします
  • 解凍してできる bin, include, lib ディレクトリを C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5 以下に、上書きコピーします
  1. Python をインストールする
  • link4 から PYTHON 2.7 の Windows 64-bit 版をダウンロードして、インストールします
  1. openopt をインストールする
  • コマンドプロンプトから pip install openopt を実行します
  1. cvxopt をインストールする
  • link5 から cvxopt-1.1.7+openblas-cp27-none-win_amd64.whl をダウンロードします
  • コマンドプロンプトから pip install cvxopt-1.1.7+openblas-cp27-none-win_amd64.whl を実行します
  1. chainer をインストールする
  • コマンドプロンプトから
    set VS100COMNTOOLS=%VS120COMNTOOLS%
    set PATH=%VS120COMNTOOLS%\..\..\VC\bin;%PATH%
    pip install chainer
    
    を実行します。
  1. 最後に、neural_style_synthesizer ディレクトリを DWANGO_NeuralStyle.plugin があるディレクトリにコピーします。

お疲れ様でした。

GPU を使わない場合

  1. Python をインストールする
  • link4 から PYTHON 2.7 の Windows 64-bit 版をダウンロードして、インストールします
  1. openopt をインストールする
  • コマンドプロンプトから pip install openopt を実行します
  1. cvxopt をインストールする
  • link5 から cvxopt-1.1.7+openblas-cp27-none-win_amd64.whl をダウンロードします
  • コマンドプロンプトから pip install cvxopt-1.1.7+openblas-cp27-none-win_amd64.whl を実行します
  1. chainer をインストールする
  • コマンドプロンプトから pip install chainer を実行します
  • CUDA Toolkit がインストールされていると、実行に失敗する場合があります。その際は、上記の GPU を使う場合の手順を試すか、CUDA Toolkit をアンインストールしてください。
  1. 最後に、neural_style_synthesizer ディレクトリを DWANGO_NeuralStyle.plugin があるディレクトリにコピーします。

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.