From 99f9189451061d02d796542e42765a16c168cea7 Mon Sep 17 00:00:00 2001 From: Hugues Tennier Date: Mon, 20 Oct 2025 10:12:01 -0400 Subject: [PATCH] Update paths --- .github/workflows/docs.yml | 2 +- label_studio_ml/examples/bert_classifier/README.md | 2 +- label_studio_ml/examples/easyocr/README.md | 2 +- label_studio_ml/examples/flair/README.md | 2 +- label_studio_ml/examples/gliner/README.md | 2 +- label_studio_ml/examples/grounding_dino/README.md | 2 +- label_studio_ml/examples/grounding_sam/README.md | 2 +- label_studio_ml/examples/huggingface_llm/README.md | 2 +- label_studio_ml/examples/huggingface_ner/README.md | 2 +- .../examples/interactive_substring_matching/README.md | 2 +- label_studio_ml/examples/langchain_search_agent/README.md | 2 +- label_studio_ml/examples/llm_interactive/README.md | 2 +- label_studio_ml/examples/mmdetection-3/README.md | 4 ++-- label_studio_ml/examples/nemo_asr/README.md | 2 +- label_studio_ml/examples/segment_anything_2_image/README.md | 2 +- label_studio_ml/examples/segment_anything_2_video/README.md | 2 +- label_studio_ml/examples/segment_anything_model/README.md | 2 +- label_studio_ml/examples/sklearn_text_classifier/README.md | 2 +- label_studio_ml/examples/spacy/README.md | 2 +- label_studio_ml/examples/tesseract/README.md | 2 +- label_studio_ml/examples/watsonx_llm/README.md | 2 +- label_studio_ml/examples/yolo/README.md | 2 +- label_studio_ml/examples/yolo/README_TIMELINE_LABELS.md | 2 +- label_studio_ml/model.py | 2 +- 24 files changed, 25 insertions(+), 25 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 11bce2c8..8385bff6 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -70,7 +70,7 @@ jobs: - name: Git Commit working-directory: "${{ env.DOCS_REPO_PATH }}" run: | - git add 'docs/source/tutorials' || true + git add 'docs/source/guide/ml_tutorials' || true git add 'docs/source/guide/ml_tutorials.html' || true git status -s git commit -m '${{ env.COMMIT_MESSAGE }}' -m 'Workflow run: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}' || true diff --git a/label_studio_ml/examples/bert_classifier/README.md b/label_studio_ml/examples/bert_classifier/README.md index 3b87bfc7..b8184bd9 100644 --- a/label_studio_ml/examples/bert_classifier/README.md +++ b/label_studio_ml/examples/bert_classifier/README.md @@ -13,7 +13,7 @@ categories: - Text Classification - BERT - Hugging Face -image: "/tutorials/bert.png" +image: "/guide/ml_tutorials/bert.png" --- --> diff --git a/label_studio_ml/examples/easyocr/README.md b/label_studio_ml/examples/easyocr/README.md index cc7c0256..06ac64d1 100644 --- a/label_studio_ml/examples/easyocr/README.md +++ b/label_studio_ml/examples/easyocr/README.md @@ -12,7 +12,7 @@ categories: - Computer Vision - Optical Character Recognition - EasyOCR -image: "/tutorials/easyocr.png" +image: "/guide/ml_tutorials/easyocr.png" --- --> diff --git a/label_studio_ml/examples/flair/README.md b/label_studio_ml/examples/flair/README.md index 322f0452..e9a9e7ab 100644 --- a/label_studio_ml/examples/flair/README.md +++ b/label_studio_ml/examples/flair/README.md @@ -12,7 +12,7 @@ categories: - Natural Language Processing - Named Entity Recognition - Flair -image: "/tutorials/flair.png" +image: "/guide/ml_tutorials/flair.png" --- --> diff --git a/label_studio_ml/examples/gliner/README.md b/label_studio_ml/examples/gliner/README.md index a203527c..854234d4 100644 --- a/label_studio_ml/examples/gliner/README.md +++ b/label_studio_ml/examples/gliner/README.md @@ -14,7 +14,7 @@ categories: - GLiNER - BERT - Hugging Face -image: "/tutorials/gliner.png" +image: "/guide/ml_tutorials/gliner.png" --- --> diff --git a/label_studio_ml/examples/grounding_dino/README.md b/label_studio_ml/examples/grounding_dino/README.md index dcdbdef2..36b74c66 100644 --- a/label_studio_ml/examples/grounding_dino/README.md +++ b/label_studio_ml/examples/grounding_dino/README.md @@ -13,7 +13,7 @@ categories: - Image Annotation - Object Detection - Grounding DINO -image: "/tutorials/grounding-dino.png" +image: "/guide/ml_tutorials/grounding-dino.png" --- --> diff --git a/label_studio_ml/examples/grounding_sam/README.md b/label_studio_ml/examples/grounding_sam/README.md index 2794472b..93086916 100644 --- a/label_studio_ml/examples/grounding_sam/README.md +++ b/label_studio_ml/examples/grounding_sam/README.md @@ -15,7 +15,7 @@ categories: - Zero-shot Image Segmentation - Grounding DINO - Segment Anything Model -image: "/tutorials/grounding-sam.png" +image: "/guide/ml_tutorials/grounding-sam.png" --- --> diff --git a/label_studio_ml/examples/huggingface_llm/README.md b/label_studio_ml/examples/huggingface_llm/README.md index 371816e4..36e9b139 100644 --- a/label_studio_ml/examples/huggingface_llm/README.md +++ b/label_studio_ml/examples/huggingface_llm/README.md @@ -13,7 +13,7 @@ categories: - Large Language Model - Text Generation - Hugging Face -image: "/tutorials/hf-llm.png" +image: "/guide/ml_tutorials/hf-llm.png" --- --> diff --git a/label_studio_ml/examples/huggingface_ner/README.md b/label_studio_ml/examples/huggingface_ner/README.md index efbf0ecc..513dd30a 100644 --- a/label_studio_ml/examples/huggingface_ner/README.md +++ b/label_studio_ml/examples/huggingface_ner/README.md @@ -12,7 +12,7 @@ categories: - Natural Language Processing - Named Entity Recognition - Hugging Face -image: "/tutorials/hf-ner.png" +image: "/guide/ml_tutorials/hf-ner.png" --- --> diff --git a/label_studio_ml/examples/interactive_substring_matching/README.md b/label_studio_ml/examples/interactive_substring_matching/README.md index 7037688c..bc0a47bd 100644 --- a/label_studio_ml/examples/interactive_substring_matching/README.md +++ b/label_studio_ml/examples/interactive_substring_matching/README.md @@ -12,7 +12,7 @@ categories: - Natural Language Processing - Named Entity Recognition - Interactive matching -image: "/tutorials/interactive-substring-matching.png" +image: "/guide/ml_tutorials/interactive-substring-matching.png" --- --> diff --git a/label_studio_ml/examples/langchain_search_agent/README.md b/label_studio_ml/examples/langchain_search_agent/README.md index 2a2c84d0..f7c86407 100644 --- a/label_studio_ml/examples/langchain_search_agent/README.md +++ b/label_studio_ml/examples/langchain_search_agent/README.md @@ -14,7 +14,7 @@ categories: - Google - OpenAI - Langchain -image: "/tutorials/langchain.png" +image: "/guide/ml_tutorials/langchain.png" --- --> diff --git a/label_studio_ml/examples/llm_interactive/README.md b/label_studio_ml/examples/llm_interactive/README.md index 5152514b..5017a873 100644 --- a/label_studio_ml/examples/llm_interactive/README.md +++ b/label_studio_ml/examples/llm_interactive/README.md @@ -15,7 +15,7 @@ categories: - Azure - Ollama - ChatGPT -image: "/tutorials/llm-interactive.png" +image: "/guide/ml_tutorials/llm-interactive.png" --- --> diff --git a/label_studio_ml/examples/mmdetection-3/README.md b/label_studio_ml/examples/mmdetection-3/README.md index 02daf19a..e8b21b41 100644 --- a/label_studio_ml/examples/mmdetection-3/README.md +++ b/label_studio_ml/examples/mmdetection-3/README.md @@ -14,7 +14,7 @@ categories: - Image Annotation - OpenMMLab - MMDetection -image: "/tutorials/openmmlab.png" +image: "/guide/ml_tutorials/openmmlab.png" --- --> @@ -45,7 +45,7 @@ docker-compose up -d See the tutorial in the documentation for building your own image and advanced usage: -https://github.com/HumanSignal/label-studio/blob/master/docs/source/tutorials/object-detector.md +https://github.com/HumanSignal/label-studio/blob/master/docs/source/guide/ml_tutorials/object-detector.md ## Labeling config diff --git a/label_studio_ml/examples/nemo_asr/README.md b/label_studio_ml/examples/nemo_asr/README.md index 2bc16ec6..82fd31b3 100644 --- a/label_studio_ml/examples/nemo_asr/README.md +++ b/label_studio_ml/examples/nemo_asr/README.md @@ -13,7 +13,7 @@ categories: - Automatic Speech Recognition - NeMo - NVidia -image: "/tutorials/nvidia.png" +image: "/guide/ml_tutorials/nvidia.png" --- --> diff --git a/label_studio_ml/examples/segment_anything_2_image/README.md b/label_studio_ml/examples/segment_anything_2_image/README.md index f5b3b343..e87a5cea 100644 --- a/label_studio_ml/examples/segment_anything_2_image/README.md +++ b/label_studio_ml/examples/segment_anything_2_image/README.md @@ -12,7 +12,7 @@ categories: - Image Annotation - Object Detection - Segment Anything Model -image: "/tutorials/sam2-images.png" +image: "/guide/ml_tutorials/sam2-images.png" --- --> diff --git a/label_studio_ml/examples/segment_anything_2_video/README.md b/label_studio_ml/examples/segment_anything_2_video/README.md index d4134e8c..9260fbc5 100644 --- a/label_studio_ml/examples/segment_anything_2_video/README.md +++ b/label_studio_ml/examples/segment_anything_2_video/README.md @@ -12,7 +12,7 @@ categories: - Video Annotation - Object Detection - Segment Anything Model -image: "/tutorials/sam2-video.png" +image: "/guide/ml_tutorials/sam2-video.png" --- --> diff --git a/label_studio_ml/examples/segment_anything_model/README.md b/label_studio_ml/examples/segment_anything_model/README.md index e1057b8a..0c4bae79 100644 --- a/label_studio_ml/examples/segment_anything_model/README.md +++ b/label_studio_ml/examples/segment_anything_model/README.md @@ -15,7 +15,7 @@ categories: - Segment Anything Model - Facebook - ONNX -image: "/tutorials/segment-anything.png" +image: "/guide/ml_tutorials/segment-anything.png" --- --> diff --git a/label_studio_ml/examples/sklearn_text_classifier/README.md b/label_studio_ml/examples/sklearn_text_classifier/README.md index a3354362..f04c7d8e 100644 --- a/label_studio_ml/examples/sklearn_text_classifier/README.md +++ b/label_studio_ml/examples/sklearn_text_classifier/README.md @@ -12,7 +12,7 @@ categories: - Natural Language Processing - Text Classification - Scikit-learn -image: "/tutorials/scikit-learn.png" +image: "/guide/ml_tutorials/scikit-learn.png" --- --> diff --git a/label_studio_ml/examples/spacy/README.md b/label_studio_ml/examples/spacy/README.md index d785a2ab..31b1851e 100644 --- a/label_studio_ml/examples/spacy/README.md +++ b/label_studio_ml/examples/spacy/README.md @@ -12,7 +12,7 @@ categories: - Natural Language Processing - Named Entity Recognition - SpaCy -image: "/tutorials/spacy.png" +image: "/guide/ml_tutorials/spacy.png" --- --> diff --git a/label_studio_ml/examples/tesseract/README.md b/label_studio_ml/examples/tesseract/README.md index 7885720b..7299a2b0 100644 --- a/label_studio_ml/examples/tesseract/README.md +++ b/label_studio_ml/examples/tesseract/README.md @@ -12,7 +12,7 @@ categories: - Computer Vision - Optical Character Recognition - Tesseract -image: "/tutorials/tesseract.png" +image: "/guide/ml_tutorials/tesseract.png" --- --> diff --git a/label_studio_ml/examples/watsonx_llm/README.md b/label_studio_ml/examples/watsonx_llm/README.md index de3a6eba..a1328743 100644 --- a/label_studio_ml/examples/watsonx_llm/README.md +++ b/label_studio_ml/examples/watsonx_llm/README.md @@ -11,7 +11,7 @@ categories: - Generative AI - Large Language Model - WatsonX -image: "/tutorials/watsonx.png" +image: "/guide/ml_tutorials/watsonx.png" --- --> diff --git a/label_studio_ml/examples/yolo/README.md b/label_studio_ml/examples/yolo/README.md index 1e9a9d26..7587f0bb 100644 --- a/label_studio_ml/examples/yolo/README.md +++ b/label_studio_ml/examples/yolo/README.md @@ -13,7 +13,7 @@ categories: - Object Detection - Image Segmentation - YOLO -image: "/tutorials/yolo.png" +image: "/guide/ml_tutorials/yolo.png" --- --> diff --git a/label_studio_ml/examples/yolo/README_TIMELINE_LABELS.md b/label_studio_ml/examples/yolo/README_TIMELINE_LABELS.md index ec75a33c..1a42fd2a 100644 --- a/label_studio_ml/examples/yolo/README_TIMELINE_LABELS.md +++ b/label_studio_ml/examples/yolo/README_TIMELINE_LABELS.md @@ -13,7 +13,7 @@ categories: - Video Classification - Temporal Labeling - LSTM -image: "/tutorials/yolo-video-classification.png" +image: "/guide/ml_tutorials/yolo-video-classification.png" --- --> diff --git a/label_studio_ml/model.py b/label_studio_ml/model.py index ba01d9d1..2bc234bc 100644 --- a/label_studio_ml/model.py +++ b/label_studio_ml/model.py @@ -424,7 +424,7 @@ def get_all_classes_inherited_LabelStudioMLBase(script_file): except ModuleNotFoundError as e: print(Fore.RED + 'Can\'t import module "' + module_name + f'", reason: {e}.\n' 'If you are looking for examples, you can find a dummy model.py here:\n' + - Fore.LIGHTYELLOW_EX + 'https://labelstud.io/tutorials/dummy_model.html') + Fore.LIGHTYELLOW_EX + 'https://labelstud.io/guide/ml_tutorials/dummy_model.html') module = None exit(-1)