Internkurs i Computer Vision - BRAIN NTNU 2020
- See course Github-repository: Computer Vision Course Repository
- Clone repository:
git clone https://github.com/BRAIN-NTNU/computer-vision-course.git
- Open cloned directory:
cd computer-vision-course
We are using Jupyter Notebook for our course:
Download Jupyter Notebook (official tutorial here):
- Install with pip:
pip install notebook
- Verify successful installation with:
jupyter notebook
- End session: Press
cmd
+C
on Mac, orctrl
+C
on Windows.
We use virtualenv
is to manage Python packages for different projects.
Using virtualenv allows you to avoid installing Python packages globally which could break system tools or other projects. You can also just install the packages specified in the requirements.txt
globally if you want. Assuming Python 3 already installed. Use pip
or pip3
for the commands below, depending on your local environment.
- Install virtualenv, if not already installed:
pip install virtualenv
- Create new environment in
computer-vision-course/
:virtualenv venv
- Activate new environment:
source venv/bin/activate
on Mac, or equivalentlyvenv\Scripts\activate.bat
on Windows. - Install packages that is needed for course:
pip install -r requirements.txt
- Add new virtual environment to Jupyter:
python -m ipykernel install --user --name=venv
. - Start jupyter notebook:
jupyter notebook
- Open [For Participants]-notebook.
- Change kernel to
venv
: Select venv under Kernel > Change kernel > venv, from the top menu bar
If you want to remove the virtual environment after the course delete our venv using:
rm -rf venv/
and remove from Jupyter:jupyter kernelspec uninstall venv
.