cat << 'EOF' > focal-amd64.yaml
arch: "x86_64"
images:
- location: "https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img"
arch: "x86_64"
cpus: 4
memory: 20GiB
mounts:
- location: "~"
writable: true
EOF
limactl validate focal-amd64.yaml
limactl start --tty=false focal-amd64.yaml
limactl shell focal-amd64
sudo apt install python3.8-venv
sudo apt install python3-pip
python3 -m venv env
source env/bin/activate
sudo apt install gcc cmake
sudo apt install libgl1-mesa-dev ninja-build g++
git clone https://github.com/open-mmlab/mmcv.git
cd mmcv
git checkout v1.3.9
MMCV_WITH_OPS=1 pip install -e .
cd ..
git clone https://github.com/ViTAE-Transformer/ViTPose.git
cd ViTPose
pip install -v -e .
pip install jupyter
pip install easydict