Skip to content

Commit

Permalink
Update yolo.py (#67)
Browse files Browse the repository at this point in the history
* Update yolo.py

* fix linters
  • Loading branch information
fpaissan authored Dec 5, 2023
1 parent 9a27a37 commit e7c0799
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion micromind/utils/yolo.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from collections import defaultdict
from pathlib import Path

import cv2
import numpy as np
import torch
import torchvision
Expand Down Expand Up @@ -579,6 +578,8 @@ def draw_bounding_boxes_and_save(
-------
None
"""
import cv2 # here to avoid extra dependecy

color_dict = {
label: tuple(
(((i + 1) * 50) % 256, ((i + 1) * 100) % 256, ((i + 1) * 150) % 256)
Expand Down

0 comments on commit e7c0799

Please sign in to comment.