MPV python assignment templates
Using this repo
The recommended way of using the templates is as follows.
First, you clone the repository:
git clone
Then, you create a new branch for your solutions:
cd mpv-python-assignment-templates
git checkout -b solutions
After that, you can work on your solutions, commiting as necessary.
In order to update the template, commit all your work and execute:
# download the new template version:
git checkout master
git pull
# and update your solutions branch:
git checkout solutions
git merge master
You can create conda environment with all required packages via
cd conda_env_yaml
# For CPU-only setup run
conda env create -f environment-cpu.yml
# if you have CUDA GPU card use instead
conda env create -f environment-gpu.yml
If way above does not work for you (e.g. you are on Windows), try the following for CPU:
conda create --name mpv-assignments-cpu-only python=3.6
conda activate mpv-assignments-cpu-only
conda install pytorch torchvision cpuonly -c pytorch
pip install kornia tqdm notebook matplotlib opencv-contrib-python seaborn tensorboard tensorboardX
conda install -c conda-forge widgetsnbextension
conda install -c conda-forge ipywidgets
And following for GPU:
conda create --name mpv-assignments-gpu python=3.6
conda activate mpv-assignments-gpu
conda install pytorch torchvision cudatoolkit=10.1 -c pytorch
pip install kornia tqdm notebook matplotlib opencv-contrib-python seaborn tensorboard tensorboardX
conda install -c conda-forge widgetsnbextension
conda install -c conda-forge ipywidgets
Keep in mind that the assignments and the assignment templates will be updated during the semester. Always pull the current template version before starting to work on an assignment!