Skip to content

Instantly share code, notes, and snippets.

@mbotsu
Created November 29, 2022 00:45
Show Gist options
  • Save mbotsu/3de024c36582f21306e23473e9975841 to your computer and use it in GitHub Desktop.
Save mbotsu/3de024c36582f21306e23473e9975841 to your computer and use it in GitHub Desktop.
ViTPose to Coreml
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

評価環境

  • Intel Mac
  • M1 Mac Lima 環境

lima setup

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

Lima Install

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++

ViTPose Setup

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment