Skip to content

Commit

Permalink
Merge pull request #1198 from mikel-brostrom/cmc_abc
Browse files Browse the repository at this point in the history
cmc inherits abc
  • Loading branch information
mikel-brostrom authored Nov 22, 2023
2 parents 0733f9a + 8c077ce commit e4b02a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions boxmot/motion/cmc/cmc_interface.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Mikel Broström 🔥 Yolo Tracking 🧾 AGPL-3.0 license

import numpy as np
from abc import ABC, abstractmethod


class CMCInterface:
class CMCInterface(ABC):

@abstractmethod
def apply(self, im):
raise NotImplementedError('Subclasses must implement this method.')
pass

def generate_mask(self, img, dets, scale):
h, w = img.shape
Expand Down

0 comments on commit e4b02a1

Please sign in to comment.