Skip to content

Commit d1eda62

Browse files
committed
official stable release
1 parent fcb97fe commit d1eda62

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

ivtmetrics/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# -*- coding: utf-8 -*-
33

44
__library__ = "ivtmetrics"
5-
__version__ = "0.0.9"
5+
__version__ = "0.1.0"
66
__author__ = 'Chinedu Nwoye'
77
__supervisor__ = 'Nicolas Padoy'
88
__credits__ = 'CAMMA, ICube Lab, University of Strasbourg, France'

ivtmetrics/recognition.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ def compute_AP(self, component="ivt", ignore_null=False):
110110
targets = self.extract(self.targets, component)
111111
predicts = self.extract(self.predictions, component)
112112
else:
113-
sys.exit(f"Function filtering {component} not yet supported!")
113+
sys.exit("Function filtering {} not yet supported!".format(component))
114114
with warnings.catch_warnings():
115-
warnings.filterwarnings(action='ignore', message='[info] triplet classes not represented in this test sample will be reported as nan values.')
115+
warnings.filterwarnings(action='ignore') #, message='[info] triplet classes not represented in this test sample will be reported as nan values.')
116116
classwise = average_precision_score(targets, predicts, average=None)
117117
if (ignore_null and component=="ivt"): classwise = classwise[:-6]
118118
mean = np.nanmean(classwise)
@@ -143,9 +143,9 @@ def compute_global_AP(self, component="ivt", ignore_null=False):
143143
targets = self.extract(targets, component)
144144
predicts = self.extract(predicts, component)
145145
else:
146-
sys.exit(f"Function filtering {component} not yet supported!")
146+
sys.exit("Function filtering {} not yet supported!".format(component))
147147
with warnings.catch_warnings():
148-
warnings.filterwarnings(action='ignore', message='[info] triplet classes not represented in this test sample will be reported as nan values.')
148+
warnings.filterwarnings(action='ignore') #, message='[info] triplet classes not represented in this test sample will be reported as nan values.')
149149
classwise = average_precision_score(targets, predicts, average=None)
150150
if (ignore_null and component=="ivt"): classwise = classwise[:-6]
151151
mean = np.nanmean(classwise)
@@ -178,7 +178,7 @@ def compute_video_AP(self, component="ivt", ignore_null=False):
178178
targets = self.extract(targets, component)
179179
predicts = self.extract(predicts, component)
180180
else:
181-
sys.exit(f"Function filtering {component} not yet supported!")
181+
sys.exit("Function filtering {} not yet supported!".format(component))
182182
classwise = average_precision_score(targets, predicts, average=None)
183183
video_log.append( classwise.reshape([1,-1]) )
184184
video_log = np.concatenate(video_log, axis=0)
@@ -214,7 +214,7 @@ def topK(self, k=5, component="ivt"):
214214
targets = self.extract(targets, component)
215215
predicts = self.extract(predicts, component)
216216
else:
217-
sys.exit(f"Function filtering {component} not supported yet!")
217+
sys.exit("Function filtering {} not supported yet!".format(component))
218218
correct = 0.0
219219
total = 0
220220
for gt, pd in zip(targets, predicts):
@@ -248,7 +248,7 @@ def topClass(self, k=10, component="ivt"):
248248
targets = self.extract(targets, component)
249249
predicts = self.extract(predicts, component)
250250
else:
251-
sys.exit(f"Function filtering {component} not supported yet!")
251+
sys.exit("Function filtering {} not supported yet!".format(component))
252252
classwise = average_precision_score(targets, predicts, average=None)
253253
pd_idx = (-classwise).argsort()[:k]
254254
output = {x:classwise[x] for x in pd_idx}

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
66

77
setup(
88
name='ivtmetrics',
9-
version='0.0.9',
9+
version='0.1.0',
1010
packages=['ivtmetrics'],
1111
author='Chinedu Nwoye',
1212
author_email='nwoye.chinedu@gmail.com',
1313
description='A Python evaluation metrics package for action triplet recognition',
14-
keywords = ['triplet', 'average precision', 'AP'],
14+
keywords = ['triplet', 'average precision', 'AP', 'mAP'],
1515
long_description = long_description,
1616
long_description_content_type ='text/x-rst',
1717
url='https://github.com/CAMMA-public/ivtmetrics',
18-
download_url = 'https://github.com/CAMMA-public/ivtmetrics/archive/refs/tags/v0.0.9.tar.gz', # I explain this later on
18+
download_url = 'https://github.com/CAMMA-public/ivtmetrics/archive/refs/tags/v0.1.0.tar.gz',
1919
include_package_data=True,
2020
license='BSD 2-clause', # Chose a license from here: https://help.github.com/articles/licensing-a-repository
2121
install_requires=['scikit-learn',
22-
'numpy',
22+
'numpy>=1.21',
2323
],
2424

2525
classifiers=[

0 commit comments

Comments
 (0)