/
Serverless Setup for CVAT

Serverless Setup for CVAT

Note: These are instructions on how to set up a serverless (aka offline) setup for CVAT. We usually stick with the web-based app app.cvat.ai which does not require any of these steps.


Installing the Necessary Programs

Windows Subsystem for Linux (WSL)

 

Accessing Windows PowerShell

  1. Using the search bar located on the bottom of the screen, search for “PowerShell”

  2. Open the Windows PowerShell application by either double clicking the application name or by clicking Open

Search for “PowerShell”
Open Windows PowerShell

Installing Windows Subsystem for Linux (WSL)

  1. In the PowerShell terminal, type

    wsl --install

    and then hit the Enter key

  • The --install command performs the following actions:

    • Enables the optional WSL and Virtual Machine Platform components

    • Downloads and installs the latest Linux kernel

    • Sets WSL 2 as the default

    • Downloads and installs the Ubuntu Linux distribution

After the installation is complete you will need to Reboot your machine.

Google Chrome

Install Google Chrome

There are multiple methods of installing Google Chrome to your machine but in this guide we will only cover two: installing using winget and installing from a link

Installing using winget

  1. In Windows PowerShell type the following into the terminal

    winget install google.chrome

    and then press Enter

To see details about the program before you install, run the command winget show google.chrome first

  • The terminal may then prompt you with the following:

    Type Yto continue

  1. Google Chrome will install to your machine.

Installing from a link

Open the following link in a web browser of your choosing.

https://www.google.com/chrome/

  1. Click on the Download Chrome button

  2. Save the file to your computer

  3. Open the file and follow the prompts

Docker Desktop

  • Install Docker Desktop

    • Use winget again

        • You may need to agree to the source agreements again first, just type Y

    • Or install using this link: https://docs.docker.com/desktop/setup/install/windows-install/  

    • Once installed, open Docker Desktop and click on the cog wheel to access settings

    • Click on Resources in the sidebar

    • Click on WSL Integration on the sidebar

    • Ensure that the box next to “Enable integration with my default WSL distro” is checked

    • Click the toggle for “Enable integration with additional distros:” to turn it on as well for good measure

    • Click “Apply and Restart”

    • Note: for some unknown reason quitting docker desktop does not actually end the program and tasks, you have to end the tasks in task manager to fully shut it down or you need to quit docker from the hidden icons in the taskbar

    •  

 

 

Git

 

Windows Terminal

Install Terminal (Optional)

Note: for silent install use msiexec, see more at https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/msiexec t

Note to obtain computer specifications

  • In PowerShell on Windows 

    • Will tell you all the specifications of your operating system

  • Or command

    • Will only tell you the name of the operating system (i.e. Microsoft Windows 11 Pro)

 

 


Installing CVAT

 


Opening CVAT

 


Installing the Segment Anything Model (SAM)

 


Running CVAT and SAM

If SAM is installed

 

 

If SAM is not installed

 


Shutting Everything Down

Stopping CVAT

 

Stopping Docker

 

Related content

CVAT Basics
More like this
Data Labeling with CVAT
Data Labeling with CVAT
More like this
Windows/Mac Laptop as your host
Windows/Mac Laptop as your host
More like this
NCSU on premises journey
NCSU on premises journey
More like this
Deployment
More like this