setup label studio w/ easy ocr

Yeseul Han·2024년 8월 28일
0

1. 깃 클론

클라이언트 도커 실행:8080

2. 도커 실행

백엔드 도커 실행:9090

3. 먼저 easyocr 빌드

4. docker-compose 파일 수정

version: "3.8"

services:
  easyocr:
    container_name: easyocr
    image: heartexlabs/label-studio-ml-backend:easyocr-master
    build:
      context: .
      args:
        TEST_ENV: ${TEST_ENV}
    environment:
      # specify these parameters if you want to use basic auth for the model server
      - BASIC_AUTH_USER=
      - BASIC_AUTH_PASS=
      # set the log level for the model server
      - LOG_LEVEL=DEBUG
      # any other parameters that you want to pass to the model server
      - LANG_LIST=ko,en
      # specify the number of workers and threads for the model serverw
      - WORKERS=1
      - THREADS=8
      # specify the model directory (likely you don't need to change this)
      - MODEL_DIR=/data/models

      # Specify the Label Studio URL and API key to access
      # uploaded, local storage and cloud storage files.
      # Do not use 'localhost' as it does not work within Docker containers.
      # Use prefix 'http://' or 'https://' for the URL always.
      # Determine the actual IP using 'ifconfig' (Linux/Mac) or 'ipconfig' (Windows).
      - LABEL_STUDIO_URL=http://host.docker.internal:8080
      - LABEL_STUDIO_API_KEY='!!!!put your api key here!!!!!'
    ports:
      - "9090:9090"
    volumes:
      - "./data/server:/data"
      - "./data/.file-cache:/data/models/.file-cache"

5. docker compose up

profile
코딩 잘하고 싶다

0개의 댓글