AoI—Energy from scratch

AoI—Energy from scratch

i) install anaconda, if you don't already have it:

Download Anaconda2 (suggested v5.2 for linux): https://www.continuum.io/downloads

$ cd Downloads
$ bash Anaconda2-5.2.0-Linux-x86_64.sh #file name might be slightly different, but follows this format
$ export PATH=~/anaconda2/bin:$PATH
or
$ source ./bashrc

or

wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda2-5.2.0-Linux-x86_64.sh

Anaconda installer archive:
Addr1: https://repo.continuum.io/archive/
Addr2:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

Miniconda installer archive:
Addr:https://repo.continuum.io/miniconda/

software link: https://www.anaconda.com/distribution/#download-section

install doc: https://docs.anaconda.com/anaconda/install/linux/

Note that this install will modify the PATH variable in your bashrc.
You need to open a new terminal for that path change to take place (to be able to find conda in the next step).

uninstall:https://docs.anaconda.com/anaconda/install/uninstall/

ii)create a conda env that will contain python 3:
$ conda create -n cs285_env python=3.5

(optional)delete env:

$ conda remove -n cs285_env --all
iii) activate the environment (do this every time you open a new terminal and want to run code):
$ source activate cs285_env
$ conda deactivate
iv) install the requirements into this conda env

uninstall tensorflow:

pip uninstall protobuf
pip uninstall tensorflow

conda unintsall protobuf
conda uninstall tensorflow
$ pip install --user --requirement requirements.txt
v) allow your code to be able to see 'cs285'
$ cd <path_to_hw>
$ pip install -e .

Note: This conda environment requires activating it every time you open a new terminal (in order to run code), but the benefit is that the required dependencies for this codebase will not affect existing/other versions of things on your computer. This stand-alone environment will have everything that is necessary.

(vi)visualize saved tensorboard event file:
$ cd cs285/data/<your_log_dir>
$ tensorboard --logdir .

Then, navigate to shown url to see scalar summaries as plots (in 'scalar' tab), as well as videos (in 'images' tab)


posted @ 2020-03-20 22:01  sailonzn  阅读(129)  评论(0编辑  收藏  举报