This repo contains lab materials for CS4243 - Computer Vision and Pattern Recognition in AY22/23 Sem 1. I will be updating the link of my slides and other related materials here.
- Execute the following commands in terminal
- Install Miniconda3
# For Linux curl https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o miniconda.sh -J -L -k # For OS X (x86_64) curl https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -o miniconda.sh -J -L -k chmod +x miniconda.sh ./miniconda.sh source ~/.bashrc # source ~/.zshrc if you are using zsh
- Install the Python libraries
# Clone this repo git clone https://github.com/ljhgabe/CS4243-Lab-Materials.git cd CS4243-Lab-Materials # Install python libraries conda create -n tf python=3.9 conda activate tf pip install -r requirements.txt
- Run Jupyter Notebook
jupyter notebook
- I found previous commands did not work for installing tensorflow on Mac with Apple Silicon. Here is a solution that works on my Mac M1. Shout out to Better Data Science.
- Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Install Xcode build tools (if you don't have it yet):
xcode-select --install
- Download and install Miniforge from the following URL:
- https://github.com/conda-forge/miniforge
- Download the ARM64 version
- Now you have a file called
Miniforge3-MacOSX-arm64.sh
chmod +x Miniforge3-MacOSX-arm64.sh ./Miniforge3-MacOSX-arm64.sh source ~/.bashrc # source ~/.zshrc if you are using zsh
- Create a new virtual environment and activate it:
# Clone this repo git clone https://github.com/ljhgabe/CS4243-Lab-Materials.git cd CS4243-Lab-Materials conda create -n tf python=3.9 conda activate tf
- Install TensorFlow and other libraries:
conda install -c apple tensorflow-deps pip install -r requirements_arm.txt conda install jupyter
- Run Jupyter Notebook
jupyter notebook
-
Install Anaconda 3
-
Go to Application -> Anaconda3 -> Anaconda Prompt
-
Install git (if you don't have it yet)
conda install git git clone https://github.com/ljhgabe/CS4243-Lab-Materials.git cd CS4243-Lab-Materials
-
Create your conda environment
conda create -n tf python=3.9 conda activate tf
-
Install TensorFlow and other libraries:
pip install -r requirements.txt
-
Run Jupyter Notebook
jupyter notebook