Lab 03

Factor Graphs

During this lab, you should get a bit deeper understanding of the factorgraph concepts presented during the lectures.

labs_03_templates.zip
labs_03_program.pdf

Pytorch installation

You will need Pytorch and matplotlib installed on your PC for this (and only this) lab (outside the ARO singularity).

If you have any working Pytorch and matplotlib installation on your PC, then you're ready for the lab.

If you don't, follow this tutorial (for Ubuntu Linux):

sudo apt update && sudo apt install python3-venv
python3 -m venv ~/pytorch_venv  # or any other folder
source ~/pytorch_venv/bin/activate
pip install torch matplotlib  # This downloads about 600 MB of data

When you leave this console or reboot your computer, you get the virtualenv back by calling source ~/pytorch_venv/bin/activate.

Please, be sure to be outside any Conda environments and outside ARO singularity when following this tutorial.
If you're on WSL, the installation of Pytorch took too much space and deleting the virtualenv doesn't free up the space, please follow this guide to reclaim the taken space.
courses/aro/tutorials/lab03.txt · Last modified: 2025/03/07 16:37 by peckama2