Giter VIP home page Giter VIP logo

cs4243-lab-materials's Introduction

CS4243-Lab-Materials

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.

Lab Contents

Environment Setup

For Linux and OS X Intel

  • Execute the following commands in terminal
  1. 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
  2. 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
  3. Run Jupyter Notebook
    jupyter notebook

For OS X Apple Silicon

  • 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.
  1. Install Homebrew:
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. Install Xcode build tools (if you don't have it yet):
    xcode-select --install
  3. Download and install Miniforge from the following URL:
    chmod +x Miniforge3-MacOSX-arm64.sh
    ./Miniforge3-MacOSX-arm64.sh
    source ~/.bashrc # source ~/.zshrc if you are using zsh
  4. 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
  5. Install TensorFlow and other libraries:
    conda install -c apple tensorflow-deps
    pip install -r requirements_arm.txt
    conda install jupyter
  6. Run Jupyter Notebook
    jupyter notebook

For Windows

  1. Install Anaconda 3

  2. Go to Application -> Anaconda3 -> Anaconda Prompt

  3. 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
  4. Create your conda environment

     conda create -n tf python=3.9
     conda activate tf
  5. Install TensorFlow and other libraries:

    pip install -r requirements.txt
  6. Run Jupyter Notebook

    jupyter notebook

cs4243-lab-materials's People

Contributors

ljhgabe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.