Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 4 Next »

Setting Keras Environment

Prerequisites

For your convenience, you'd better install and use git bash.

Therefore, I will test on git bash or bash terminal integrated within VSCode.

Install Miniconda on Windows

Download: https://docs.conda.io/en/latest/miniconda.html

Setting Keras

Install Karas from Yaml

# Make yaml file.
$ vi environment-gpu.yml
name: keras-study

dependencies:
  - python=3.7
  - scikit-learn
  - scipy
  - numpy
  - matplotlib
  - ipython
  - jupyter
  - pillow
  - opencv
  - graphviz
  - cython
  - pip:
      - tensorflow-gpu==1.15
      - keras==2.2.4
      - pydot-ng

# Create conda env
$ conda env create -f environment-gpu.yml

# Enter karas-study env
$ conda activate karas-study

If not able to activate a certain conda env, add this instruction into .bashrc

. ~/Miniconda3/etc/profile.d/conda.sh

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.