### Install Dependencies from Source Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/segment_anything_2_image/README.md Clone the repository, install the ML backend, and then install specific requirements for the segment anything example. Ensure you are in the correct directory before installing. ```bash git clone https://github.com/HumanSignal/label-studio-ml-backend.git cd label-studio-ml-backend pip install -e . cd label_studio_ml/examples/segment_anything_2_image pip install -r requirements.txt ``` -------------------------------- ### Install Dependencies for SAM2 Video Example Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/segment_anything_2_video/README.md Clone the repository and install necessary Python packages for the SAM2 video example. This includes the main library and specific requirements for the example. ```bash git clone https://github.com/HumanSignal/label-studio-ml-backend.git cd label-studio-ml-backend pip install -e . cd label_studio_ml/examples/segment_anything_2_video pip install -r requirements.txt ``` -------------------------------- ### Start ML Backend from Source Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/nemo_asr/README.md Run the Label Studio ML backend from source after installing dependencies, specifying the example configuration to use. ```bash label-studio-ml start ./nemo_asr ``` -------------------------------- ### Start ML Backend from Source Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/default_configs/README.md After setting up the environment and installing dependencies, start the ML backend using this command, specifying the directory containing your models. ```bash label-studio-ml start ./dir_with_your_model ``` -------------------------------- ### Install Dependencies and Run ML Backend Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/huggingface_ner/README.md Steps to set up a Python virtual environment, install dependencies, and start the ML backend from source without Docker. ```bash python -m venv ml-backend source ml-backend/bin/activate pip install -r requirements.txt ``` ```bash label-studio-ml start ./huggingface_ner ``` -------------------------------- ### Start EasyOCR ML Backend Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/easyocr/README.md Run this command to start the EasyOCR ML backend after installing dependencies. ```bash label-studio-ml start ./easyocr ``` -------------------------------- ### Start ML Backend from Source Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/segment_anything_2_image/README.md After cloning the SAM2 repository and installing dependencies, start the ML backend. This command must be run from the `~/sam2` directory due to specific path requirements. ```bash cd ~/sam2 label-studio-ml start ../label-studio-ml-backend/label_studio_ml/examples/segment_anything_2_image ``` -------------------------------- ### Start ML Backend with Docker Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/default_configs/README.md Use this command to start the ML backend using a prebuilt Docker image. Ensure Docker is installed and running. ```bash docker-compose up ``` -------------------------------- ### Clone and Install SAM2 Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/segment_anything_video_interactive/README.md Clone the Segment Anything 2 repository next to the example and install its dependencies. ```bash cd label_studio_ml/examples/segment_anything_video_interactive git clone https://github.com/facebookresearch/segment-anything-2.git (cd segment-anything-2 && pip install -e . && cd checkpoints && ./download_ckpts.sh) ``` -------------------------------- ### Install Label Studio and Clone Repository Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/yolo/README.md Install Label Studio using pip and clone the ML backend repository to access the YOLO example. ```bash pip install label-studio label-studio ``` ```bash git clone https://github.com/HumanSignal/label-studio-ml-backend.git cd label-studio-ml-backend/examples/yolo ``` -------------------------------- ### Install Dependencies and Run ML Backend Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/gliner/README.md This sequence of commands installs the ML backend dependencies in a virtual environment and then starts the server. This is an advanced option for running without Docker. ```bash python -m venv ml-backend source ml-backend/bin/activate pip install -r requirements.txt label-studio-ml start ./dir_with_your_model ``` -------------------------------- ### Start ML Backend for SAM2 Video Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/segment_anything_2_video/README.md Run the ML backend from source, pointing it to the segment_anything_2_video example directory. Ensure environment variables for Label Studio URL and API key are set. ```bash cd ../ label-studio-ml start ./segment_anything_2_video ``` -------------------------------- ### Start PP-OCR Server (label-studio-ml) Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/ppocr/README.md Starts the PP-OCR server using the label-studio-ml command-line tool. ```bash label-studio-ml start ./ppocr ``` -------------------------------- ### Set Up Virtual Environment and Install Dependencies Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/default_configs/README.md Run the ML backend without Docker by cloning the repository, creating a virtual environment, and installing dependencies using pip. ```bash python -m venv ml-backend source ml-backend/bin/activate pip install -r requirements.txt ``` -------------------------------- ### Install Dependencies and Run ML Backend Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/interactive_substring_matching/README.md Install ML backend dependencies using pip within a virtual environment and then start the server. This is an advanced option for running without Docker. ```bash python -m venv ml-backend source ml-backend/bin/activate pip install -r requirements.txt label-studio-ml start ./interactive_substring_matching ``` -------------------------------- ### Start Local Dev Server Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/segment_anything_video_interactive/README.md Start the development server locally, setting environment variables for the device and Label Studio connection. ```bash cd label_studio_ml/examples/segment_anything_video_interactive export DEVICE=mps # on Apple Silicon, or keep cuda on NVIDIA export LABEL_STUDIO_URL=http://host.docker.internal:8080 export LABEL_STUDIO_API_KEY= python _wsgi.py -p 9090 ``` -------------------------------- ### Install Dependencies and Run ML Backend without Docker Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/huggingface_llm/README.md Install the necessary Python dependencies and start the ML backend from source if you are not using Docker. ```bash python -m venv ml-backend source ml-backend/bin/activate pip install -r requirements.txt ``` ```bash label-studio-ml start ./huggingface_llm ``` -------------------------------- ### Install Label Studio with Docker Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/tesseract/README.md Launches Label Studio using Docker. Ensure git and Docker Compose are installed beforehand. ```bash docker run -it \ -p 8080:8080 \ -v `pwd`/mydata:/label-studio/data \ heartexlabs/label-studio:latest ``` -------------------------------- ### Install Label Studio ML Backend Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/README.md Clone the repository and install the label-studio-ml package in editable mode. ```bash git clone https://github.com/HumanSignal/label-studio-ml-backend.git cd label-studio-ml-backend/ pip install -e . ``` -------------------------------- ### Quick Docker Setup for MMDetection Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/mmdetection-3/README.md Use this command to quickly start the MMDetection model backend with Docker Compose. ```bash docker-compose up -d ``` -------------------------------- ### Start ML Backend Server with Docker Compose Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/README.md Use this command to clone the repository and start serving the ML backend. Replace `{MODEL_NAME}` with the desired model. ```bash git clone https://github.com/HumanSignal/label-studio-ml-backend.git cd label-studio-ml-backend/label_studio_ml/examples/{MODEL_NAME} docker-compose up ``` -------------------------------- ### Start ML Backend with label-studio-ml CLI Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/mmdetection-3/README.md Run this command to start the ML backend using the 'label-studio-ml' command-line interface, specifying the root directory and the model configuration. ```bash label-studio-ml start --root-dir .. mmdetection-3 ``` -------------------------------- ### Install Project Requirements Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/ppocr/README.md Installs the specific dependencies for the project. ```bash pip install -r requirements.txt ``` -------------------------------- ### Start ML Backend Without Docker Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/README.md Run the ML backend directly using the label-studio-ml start command for debugging or development. ```bash label-studio-ml start my_ml_backend ``` -------------------------------- ### Install Backend Requirements Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/segment_anything_video_interactive/README.md Install the necessary Python packages for the Label Studio ML backend from the repository root. ```bash pip install -e . pip install -r label_studio_ml/examples/segment_anything_video_interactive/requirements.txt ``` -------------------------------- ### Start PP-OCR Server (WSGI) Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/ppocr/README.md Starts the PP-OCR server using the WSGI interface. ```bash python _wsgi.py ``` -------------------------------- ### Start ML Backend on a Custom Port Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/README.md Specify a custom port for the ML backend using the -p parameter with the start command. ```bash label-studio-ml start my_ml_backend -p 9091 ``` -------------------------------- ### Install Base Requirements Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/ppocr/README.md Installs the base dependencies required for the project. ```bash pip install -r requirements-base.txt ``` -------------------------------- ### Clone Label Studio ML Backend Repository Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/mmdetection-3/README.md Clone the repository to access the example MMDetection setup and other ML backend functionalities. ```bash git clone https://github.com/heartexlabs/label-studio-ml-backend cd label-studio-ml-backend/label_studio_ml/examples/mmdetection-3 ``` -------------------------------- ### Install PaddleOCR Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/ppocr/README.md Installs the PaddleOCR library after PaddlePaddle has been installed. ```bash python -m pip install paddleocr ``` -------------------------------- ### Install Test Requirements Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/ppocr/README.md Installs the dependencies required for running unit tests. ```bash pip install -r requirements-test.txt ``` -------------------------------- ### Install Dependencies and Set Environment Variables Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/docling/README.md Installs necessary Python packages and sets environment variables for running the Docling service locally. Adjust LABEL_STUDIO_URL if Label Studio is not running in Docker. ```bash pip install -r requirements-base.txt -r requirements.txt export DOCLING_SERVICE_URL=https://api.aws-c1.dcls.saas.ibm.com/your-instance/v1 export DOCLING_SERVE_API_KEY=your-api-key export LABEL_STUDIO_URL=http://host.docker.internal:8080 export LABEL_STUDIO_API_KEY=your-label-studio-token python _wsgi.py -p 9090 ``` -------------------------------- ### Build and Run ML Backend Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/timeseries_segmenter/README.md Use this command to build the Docker image and start the ML backend service. ```bash docker-compose up --build ``` -------------------------------- ### Start ML Backend with MobileSAM Checkpoint Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/segment_anything_model/README.md Start the ML backend, specifying the path to the MobileSAM checkpoint file using an environment variable. This command is used for manual backend startup with a specific model. ```bash MOBILESAM_CHECKPOINT=path/to/mobile_sam.pt label-studio-ml start segment_anything_model/ ``` -------------------------------- ### Labeling Interface Example Source: https://github.com/humansignal/label-studio-ml-backend/blob/master/label_studio_ml/examples/langchain_search_agent/README.md An example Label Studio labeling interface configuration that includes input fields for text, prompt, response, search snippets, and classification choices. ```xml