Skip to content

Commit

Permalink
Revert "Update yolo.py (#67)" (#68)
Browse files Browse the repository at this point in the history
This reverts commit e7c0799.
  • Loading branch information
fpaissan authored Dec 5, 2023
1 parent e7c0799 commit 798c8dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions micromind/utils/yolo.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from collections import defaultdict
from pathlib import Path

import cv2
import numpy as np
import torch
import torchvision
Expand Down Expand Up @@ -578,8 +579,6 @@ 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 798c8dd

Please sign in to comment.