Git Product home page Git Product logo

labelstudio-yolov8-detection-backend's Introduction

Yolov8 Detection Label Studio Active Learning

Setup

cd LabelStudio-Yolov8-Detection-Backend
  • Install libraries
pip install -r requirements.txt
  • Set environment variables
export LABEL_STUDIO_ML_BACKEND_V2=True
  • Set path in yolov8.py, use absolute path
# labelstudio annotation: "image": "/data/upload/20/image1.png" or "image": "/data/local-files/?d=LABEL_STUDIO_LOCAL_FILES_DOCUMENT_ROOT/image1.png"
LABELSTUDIO_PATH = '/data/upload/20' 
DATASET_ROOT_DIR = '/home/user/apps/label-studio/media/upload/20' # folder where your images is store
STORAGE_DIR = '/home/user/LabelStudio-Yolov8-Detection-Backend/data' # folder to save training artifacts
MODEL_NAME = 'yolov8n_custom' # name your model
MODEL_INIT = '/home/user/LabelStudio-Yolov8-Detection-Backend/model/yolov8n.pt' # model init
MODEL_LATEST = f'/home/user/LabelStudio-Yolov8-Detection-Backend/runs/detect/{MODEL_NAME}/weights/best.pt' # latest model updated after each training
DETECTION_YAML = '/home/user/LabelStudio-Yolov8-Detection-Backend/data/detection.yaml' # your yaml for training yolov8
  • Setup yolov8 dataset yaml in data/detection.yaml
train: /home/user/LabelStudio-Yolov8-Detection-Backend/data/images
val: /home/user/LabelStudio-Yolov8-Detection-Backend/data/images

nc: 2
names: ['table', 'signature']

Create - launch - connect ML backend server

  • Run in terminal
label-studio-ml init yolov8_backend --script yolov8.py --force

label-studio-ml start yolov8_backend
  • Connect Label Studio with ML backend

ML backend

labelstudio-yolov8-detection-backend's People

Contributors

kieefuanh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.