Skip to end of metadata
Go to start of metadata
Installing the Necessary Programs
Windows Subsystem for Linux (WSL)
Accessing Windows PowerShell
Using the search bar located on the bottom of the screen, search for “PowerShell”
Open the Windows PowerShell application by either double clicking the application name or by clicking Open
Installing Windows Subsystem for Linux (WSL)
In the PowerShell terminal, type
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
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
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:
The `msstore` source requires that you view the following agreements before using.
Terms of Transaction: https://aka.ms/microsoft-store-terms-of-transaction
The source requires the current machine's 2-letter geographic region to be sent to the backend service to function properly (ex. "US").
Do you agree to all the source agreements terms?
[Y] Yes [N] No:
Type Y
to continue
Google Chrome will install to your machine.
Click on the Download Chrome
button
Save the file to your computer
Open the file and follow the prompts
Docker Desktop
notes from google docs
Install Docker Desktop
Use winget again
winget install Docker.DockerDesktop
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
notes from google docs
Install Terminal (Optional)
Install Windows Terminal (nice interface, very customizable, can run PowerShell, WSL, and Ubuntu all at the same time because its a shell emulator)
Windows Terminal is installed by default in Windows 11
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
command Get-ComputerInfo -Property “os*”
Or command
Get-ComputerInfo -Property “osname”
Installing CVAT
notes from google docs
Windows
Run the Linux distribution that was installed (Ubuntu) by searching Ubuntu in the start menu and running it
Or search for Terminal in the start menu and right click on it and Select Ubuntu in the dropdown
In the window that opens type the following to clone the CVAT source code from the github repository
git clone https://github.com/cvat-ai/cvat
Change to the cvat directory you just made
Run docker containers
Create a superuser
sudo docker exec -it cvat_server bash -ic 'python3 ~/manage.py createsuperuser'
Input the administrator password when prompted
Create a username (default is django)
Input your email when prompted
Create a password for your user
Re-input the password
Opening CVAT
Installing the Segment Anything Model (SAM)
Running CVAT and SAM
notes from google docs
Starting up CVAT with SAM
Open docker
Open ubuntu
Open Chrome
Go to localhost:8080
Login
You have now opened CVAT
If SAM is installed
If SAM is not installed
Shutting Everything Down
Stopping CVAT
Stopping Docker
notes from google docs
To stop Docker containers
In ubuntu type
or
docker compose -f docker-compose.yml -f components/serverless/docker-compose.serverless.yml down
0 Comments