Spaces:
Runtime error
Runtime error
Commit
·
98e0372
1
Parent(s):
3449ad8
Update tracker.py
Browse files- lib/fish_eye/tracker.py +5 -8
lib/fish_eye/tracker.py
CHANGED
@@ -7,6 +7,7 @@ import numpy as np
|
|
7 |
from fish_length import Fish_Length
|
8 |
from sort import Sort
|
9 |
from associative import Associate
|
|
|
10 |
|
11 |
class Tracker:
|
12 |
def __init__(self, clip_info, algorithm=Sort, args={'max_age':1, 'min_hits':0, 'iou_threshold':0.05}, min_hits=3, reverse=False):
|
@@ -30,14 +31,10 @@ class Tracker:
|
|
30 |
conf = 0
|
31 |
min_score = 1000000
|
32 |
print("algorithm", self.algorithm, type(self.algorithm))
|
33 |
-
print(type(self.algorithm) ==
|
34 |
-
print(
|
35 |
-
print(
|
36 |
-
print(
|
37 |
-
print(self.algorithm is Sort)
|
38 |
-
print(self.algorithm is Associate)
|
39 |
-
print(type(self.algorithm) is Sort)
|
40 |
-
print(type(self.algorithm) is Associate)
|
41 |
if type(self.algorithm) == Sort:
|
42 |
print("SORT")
|
43 |
for det in dets:
|
|
|
7 |
from fish_length import Fish_Length
|
8 |
from sort import Sort
|
9 |
from associative import Associate
|
10 |
+
import lib
|
11 |
|
12 |
class Tracker:
|
13 |
def __init__(self, clip_info, algorithm=Sort, args={'max_age':1, 'min_hits':0, 'iou_threshold':0.05}, min_hits=3, reverse=False):
|
|
|
31 |
conf = 0
|
32 |
min_score = 1000000
|
33 |
print("algorithm", self.algorithm, type(self.algorithm))
|
34 |
+
print(type(self.algorithm) == lib.fish_eye.associative.Associate)
|
35 |
+
print(isinstance(self.algorithm, lib.fish_eye.associative.Associate))
|
36 |
+
print(self.algorithm is lib.fish_eye.associative.Associate)
|
37 |
+
print(type(self.algorithm) is lib.fish_eye.associative.Associate)
|
|
|
|
|
|
|
|
|
38 |
if type(self.algorithm) == Sort:
|
39 |
print("SORT")
|
40 |
for det in dets:
|