모델을 서빙하는 서버
- ADT 모델의 예측 요청을 보내는 API
- OMR 모델의 예측 요청을 보내는 API
-
clone ADT & OMR repository (현재 레포를 클론받은 위치랑 똑같은 곳에서)
-
clone ADT repository
git clone https://github.com/DoongDoongMaster/automatic-drum-transcription
-
clone OMR repository
git clone https://github.com/DoongDoongMaster/optical-music-recognition
-
‼️ 주의 : 아래와 같이 폴더 구조를 맞춰야 합니다.... ├── model-server ├── automatic-drum-transcription ├── optical-music-recognition
-
-
install docker engine
# Add Docker's official GPG key: sudo apt-get update sudo apt-get install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc # Add the repository to Apt sources: echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
-
install docker compose
sudo apt-get update sudo apt-get install docker-compose-plugin
-
서버 실행 명령어
docker compose up --build
-
로컬 호스트에서 docs 확인
localhost:5000/docs