Skip to content

Commit

Permalink
Update detector to Nodelib 0.13.0
Browse files Browse the repository at this point in the history
Remove icecream import
  • Loading branch information
denniswittich committed Dec 6, 2024
1 parent f6d2226 commit 5cda389
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions detector/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ fi

# ========================== BUILD CONFIGURATION / IMAGE SELECTION =======================

SEMANTIC_VERSION=0.1.8
NODE_LIB_VERSION=0.11.1
SEMANTIC_VERSION=0.1.9
NODE_LIB_VERSION=0.13.0
build_args=" --build-arg NODE_LIB_VERSION=$NODE_LIB_VERSION"

if [ -f /etc/nv_tegra_release ] # Check if we are on a Jetson device
Expand Down
2 changes: 0 additions & 2 deletions detector/main.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# import logging
import os

import icecream
import uvicorn
from learning_loop_node import DetectorNode

from yolov5_detector import Yolov5Detector

icecream.install()
reload = os.getenv("UVICORN_RELOAD", "FALSE").lower() == "true"
print(f'Uvicorn reload is set to: {reload}')

Expand Down
5 changes: 3 additions & 2 deletions detector/yolov5_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@

import cv2
import numpy as np
from learning_loop_node.data_classes import (BoxDetection, CategoryType,
ImageMetadata, PointDetection)
from learning_loop_node.data_classes import (BoxDetection, ImageMetadata,
PointDetection)
from learning_loop_node.detector.detector_logic import DetectorLogic
from learning_loop_node.enums import CategoryType

import yolov5

Expand Down

0 comments on commit 5cda389

Please sign in to comment.