Skip to content

Commit

Permalink
Refactor code for speed and clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Jan 15, 2025
1 parent 438fcd0 commit 766d380
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions detect.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license

import argparse
import time
from sys import platform
Expand Down
3 changes: 2 additions & 1 deletion models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license

from collections import defaultdict

import torch.nn as nn

from utils.utils import *


Expand Down
2 changes: 2 additions & 0 deletions utils/datasets.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license

import glob
import math
import os
Expand Down
2 changes: 2 additions & 0 deletions utils/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license

import random

import cv2
Expand Down

0 comments on commit 766d380

Please sign in to comment.