CS231n Assignment1 환경 설정하기

2017. 1. 20. 18:13

http://cs231n.github.io/assignments2016/assignment1/

위의 링크 내용이 기초이다. virtualenv를 통해서 숙제를 진행한다.


1. 자료 다운받기

http://vision.stanford.edu/teaching/cs231n/winter1516_assignment1.zip


2. unzip

mkdir ~/cs231n

unzip ~/Downloads/winter1516_assignment1.zip -d ~/cs231n/         


3. 필요한 라이브러리 설치

sudo apt-get install libncurses5-dev python-dev libpng-dev libfreetype6-dev


4. assignments1/requirements.txt 내용 수정

Jinja2
MarkupSafe
Pillow
Pygments
appnope
backports-abc
backports.ssl-match-hostname
certifi
cycler
decorator
functools32
gnureadline
ipykernel
ipython
ipython-genutils
ipywidgets
jsonschema
jupyter
jupyter-client
jupyter-console
jupyter-core
matplotlib
mistune
nbconvert
nbformat
notebook
numpy
path.py
pexpect
pickleshare
ptyprocess
pyparsing
python-dateutil
pytz
pyzmq
qtconsole
scipy
simplegeneric
singledispatch
six
terminado
tornado
traitlets
wsgiref


5. virtualenv 설정

sudo pip install virtualenv

virtualenv.env

source .env/bin/activate

pip install -r requirements.txt

deactivate


6. dataset 다운받기

cd cs231n/datasets

./get_datasets.sh


7. 노트북 실행

source .env/bin/activate

jupyter notebook


Deep Learning/CS231n