sciveo 0.1.28__tar.gz → 0.1.29__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sciveo-0.1.28 → sciveo-0.1.29}/PKG-INFO +1 -1
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/image/album_in_image.py +1 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/video/video_album.py +1 -0
- sciveo-0.1.29/sciveo/ml/evaluation/object_detection.py +163 -0
- sciveo-0.1.29/sciveo/version.py +2 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo.egg-info/PKG-INFO +1 -1
- sciveo-0.1.28/sciveo/ml/evaluation/object_detection.py +0 -33
- sciveo-0.1.28/sciveo/version.py +0 -2
- {sciveo-0.1.28 → sciveo-0.1.29}/README.md +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/api/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/api/base.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/api/upload.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/cli.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/common/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/common/configuration.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/common/model.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/common/optimizers.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/common/sampling.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/content/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/content/dataset.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/content/experiment.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/content/project.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/content/runner.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/ml/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/ml/base.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/ml/encoders/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/ml/encoders/base.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/ml/encoders/normalizer.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/ml/nlp/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/ml/nlp/search.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/ml/time_series/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/ml/time_series/dataset.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/ml/time_series/predictor.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/ml/time_series/trainer.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/ml/time_series/window_generator.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/base.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/job_daemon.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/layouts/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/layouts/base.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/pipeline.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/postprocessors/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/postprocessors/base.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/postprocessors/default.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/audio/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/audio/audio.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/audio/audio_extractor_process.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/aws.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/base.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/file/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/file/archive.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/image/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/image/album.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/image/depth_esimation.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/image/embeddings.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/image/filters.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/image/generators.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/image/histogram.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/image/mask.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/image/resize.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/image/segmentation.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/image/watermark.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/media_info.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/nlp/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/nlp/address.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/qr.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/sci/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/sci/base.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/sci/dataset.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/sci/time_series/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/sci/time_series/predictor.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/sci/time_series/trainer.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/tpu_base.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/video/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/video/generators.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/video/motion_detection.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/video/resize.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/video/video_frames.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/video/video_resample.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/queues.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/server.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/web/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/web/server.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/ml/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/ml/evaluation/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/ml/images/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/ml/images/object_detection.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/ml/images/tools.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/ml/images/transforms.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/ml/nlp/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/monitoring/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/monitoring/monitor.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/monitoring/start.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/network/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/network/camera.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/network/sniffer.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/network/tools.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/tools/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/tools/array.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/tools/aws/__init__.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/tools/aws/priority_queue.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/tools/aws/s3.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/tools/common.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/tools/compress.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/tools/configuration.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/tools/crypto.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/tools/daemon.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/tools/formating.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/tools/hardware.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/tools/http.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/tools/logger.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/tools/os.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/tools/random.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/tools/remote.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/tools/simple_counter.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/tools/synchronized.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo/tools/timers.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo.egg-info/SOURCES.txt +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo.egg-info/dependency_links.txt +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo.egg-info/entry_points.txt +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo.egg-info/requires.txt +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/sciveo.egg-info/top_level.txt +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/setup.cfg +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/setup.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/test/test_compress.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/test/test_configuration.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/test/test_crypto.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/test/test_monitoring.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/test/test_runner.py +0 -0
- {sciveo-0.1.28 → sciveo-0.1.29}/test/test_sampling.py +0 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Pavlin Georgiev, Softel Labs
|
|
3
|
+
#
|
|
4
|
+
# This is a proprietary file and may not be copied,
|
|
5
|
+
# distributed, or modified without express permission
|
|
6
|
+
# from the owner. For licensing inquiries, please
|
|
7
|
+
# contact pavlin@softel.bg.
|
|
8
|
+
#
|
|
9
|
+
# 2024
|
|
10
|
+
#
|
|
11
|
+
|
|
12
|
+
import time
|
|
13
|
+
import math
|
|
14
|
+
import numpy as np
|
|
15
|
+
|
|
16
|
+
from sciveo.tools.logger import *
|
|
17
|
+
from sciveo.ml.images.object_detection import *
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
Object Detection Evaluation
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
class EvalObjectDetection:
|
|
26
|
+
def __init__(self, predictions, labels, class_names):
|
|
27
|
+
self.predictions = predictions
|
|
28
|
+
self.labels = labels
|
|
29
|
+
self.class_names = class_names
|
|
30
|
+
|
|
31
|
+
# Convert from yolo predictions
|
|
32
|
+
def from_yolo(self):
|
|
33
|
+
self.converted_predictions = []
|
|
34
|
+
for predicted in predictions:
|
|
35
|
+
boxes = predicted.boxes
|
|
36
|
+
class_names = predicted.names
|
|
37
|
+
|
|
38
|
+
converted_prediction = {}
|
|
39
|
+
for i in range(len(boxes)):
|
|
40
|
+
class_id = int(boxes.cls[i].item())
|
|
41
|
+
label_class = class_names[class_id]
|
|
42
|
+
if label_class not in self.class_names:
|
|
43
|
+
continue
|
|
44
|
+
box = boxes.xyxyn[i].tolist()
|
|
45
|
+
confidence = boxes.conf[i].item()
|
|
46
|
+
box_confidence = box + [confidence]
|
|
47
|
+
|
|
48
|
+
converted_prediction.setdefault(label_class, [])
|
|
49
|
+
converted_prediction[label_class].append(box_confidence)
|
|
50
|
+
self.converted_predictions.append(converted_prediction)
|
|
51
|
+
|
|
52
|
+
# TODO: currently labels of type [ {"class 1": [ ['x1':x1,'y1':y1,'x2':x2,'y2':y2] ... ], "class 2": [ ['x1':x1,'y1':y1,'x2':x2,'y2':y2] ... ]} ... ]
|
|
53
|
+
self.converted_labels = []
|
|
54
|
+
for label in self.labels:
|
|
55
|
+
converted_label = {}
|
|
56
|
+
for class_name, class_boxes in label.items():
|
|
57
|
+
converted_label[class_name] = []
|
|
58
|
+
for box in class_boxes:
|
|
59
|
+
converted_label[class_name].append([box['x1'], box['y1'], box['x2'], box['y2']])
|
|
60
|
+
self.converted_labels.append(converted_label)
|
|
61
|
+
|
|
62
|
+
def compute_iou(self, box1, box2):
|
|
63
|
+
"""
|
|
64
|
+
box1, box2: [x1, y1, x2, y2] format.
|
|
65
|
+
Returns the IoU between the two boxes.
|
|
66
|
+
"""
|
|
67
|
+
x1_inter = max(box1[0], box2[0])
|
|
68
|
+
y1_inter = max(box1[1], box2[1])
|
|
69
|
+
x2_inter = min(box1[2], box2[2])
|
|
70
|
+
y2_inter = min(box1[3], box2[3])
|
|
71
|
+
|
|
72
|
+
inter_area = max(0, x2_inter - x1_inter) * max(0, y2_inter - y1_inter)
|
|
73
|
+
box1_area = (box1[2] - box1[0]) * (box1[3] - box1[1])
|
|
74
|
+
box2_area = (box2[2] - box2[0]) * (box2[3] - box2[1])
|
|
75
|
+
union_area = box1_area + box2_area - inter_area
|
|
76
|
+
|
|
77
|
+
if union_area == 0:
|
|
78
|
+
return 0.0
|
|
79
|
+
|
|
80
|
+
return inter_area / union_area
|
|
81
|
+
|
|
82
|
+
# Compute the Average Precision (AP)
|
|
83
|
+
def compute_ap(self, class_name, iou_threshold=0.0):
|
|
84
|
+
"""
|
|
85
|
+
Calculate the Average Precision based on IoU and confidence scores.
|
|
86
|
+
Returns the AP for the current class.
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
count_labels = 0
|
|
90
|
+
true_positives = []
|
|
91
|
+
false_positives = []
|
|
92
|
+
false_negatives = []
|
|
93
|
+
detected = []
|
|
94
|
+
|
|
95
|
+
for i, prediction in enumerate(self.converted_predictions):
|
|
96
|
+
current_predictions = prediction.get(class_name, [])
|
|
97
|
+
current_labels = self.converted_labels[i].get(class_name, [])
|
|
98
|
+
|
|
99
|
+
count_labels += len(current_labels)
|
|
100
|
+
TP = 0
|
|
101
|
+
|
|
102
|
+
for prediction_box in current_predictions:
|
|
103
|
+
max_iou = 0
|
|
104
|
+
gt_match = None
|
|
105
|
+
|
|
106
|
+
for label_box in current_labels:
|
|
107
|
+
iou = self.compute_iou(prediction_box[:4], label_box)
|
|
108
|
+
if iou > 0.5 and iou >= max_iou:
|
|
109
|
+
max_iou = iou
|
|
110
|
+
gt_match = label_box
|
|
111
|
+
|
|
112
|
+
if max_iou >= iou_threshold and gt_match not in detected:
|
|
113
|
+
true_positives.append(1)
|
|
114
|
+
false_positives.append(0)
|
|
115
|
+
detected.append(gt_match)
|
|
116
|
+
TP += 1
|
|
117
|
+
else:
|
|
118
|
+
true_positives.append(0)
|
|
119
|
+
false_positives.append(1)
|
|
120
|
+
|
|
121
|
+
FN = len(current_labels) - TP
|
|
122
|
+
false_negatives.append(FN)
|
|
123
|
+
|
|
124
|
+
# Convert to cumulative sums
|
|
125
|
+
tp_cumsum = np.cumsum(true_positives)
|
|
126
|
+
fp_cumsum = np.cumsum(false_positives)
|
|
127
|
+
|
|
128
|
+
# Compute recall and precision
|
|
129
|
+
recall = tp_cumsum / count_labels
|
|
130
|
+
precision = tp_cumsum / (tp_cumsum + fp_cumsum)
|
|
131
|
+
|
|
132
|
+
# Compute AP using the trapezoidal rule (integrating precision over recall)
|
|
133
|
+
ap = np.trapz(precision, recall)
|
|
134
|
+
return ap, np.sum(false_negatives) / count_labels
|
|
135
|
+
|
|
136
|
+
def threshold(self, class_name, max_false_negative):
|
|
137
|
+
list_ap = []
|
|
138
|
+
list_fn = []
|
|
139
|
+
list_thresholds = np.linspace(0.0, 1.0, 101).tolist()
|
|
140
|
+
for i, iou_threshold in enumerate(list_thresholds):
|
|
141
|
+
ap, FN = self.compute_ap(class_name, iou_threshold)
|
|
142
|
+
#debug("AP", ap, "FN", FN)
|
|
143
|
+
if FN > max_false_negative:
|
|
144
|
+
ap = 0.0
|
|
145
|
+
list_ap.append(ap)
|
|
146
|
+
list_fn.append(FN)
|
|
147
|
+
idx = list_ap.index(max(list_ap))
|
|
148
|
+
debug("Threshold", class_name, list_thresholds[idx], "AP", list_ap[idx], "FN", list_fn[idx])
|
|
149
|
+
return list_thresholds[idx], list_ap[idx], list_fn[idx]
|
|
150
|
+
|
|
151
|
+
def evaluate(self, iou_thresholds={"default": 0.0}):
|
|
152
|
+
"""
|
|
153
|
+
Calculate metrics like mAP based on IoU.
|
|
154
|
+
"""
|
|
155
|
+
aps = []
|
|
156
|
+
class_ap = {}
|
|
157
|
+
for class_name in self.class_names:
|
|
158
|
+
ap, false_negatives = self.compute_ap(class_name, iou_thresholds.get(class_name, iou_thresholds["default"]))
|
|
159
|
+
aps.append(ap)
|
|
160
|
+
class_ap[class_name] = ap
|
|
161
|
+
|
|
162
|
+
mAP = np.mean(aps)
|
|
163
|
+
return {'mAP': mAP, 'AP per class': class_ap}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# Pavlin Georgiev, Softel Labs
|
|
3
|
-
#
|
|
4
|
-
# This is a proprietary file and may not be copied,
|
|
5
|
-
# distributed, or modified without express permission
|
|
6
|
-
# from the owner. For licensing inquiries, please
|
|
7
|
-
# contact pavlin@softel.bg.
|
|
8
|
-
#
|
|
9
|
-
# 2024
|
|
10
|
-
#
|
|
11
|
-
|
|
12
|
-
import math
|
|
13
|
-
import numpy as np
|
|
14
|
-
|
|
15
|
-
from sciveo.ml.images.object_detection import *
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"""
|
|
19
|
-
|
|
20
|
-
Object Detection Evaluation
|
|
21
|
-
|
|
22
|
-
"""
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
class EvaluateObjectDetection:
|
|
26
|
-
def __init__(self, X, Y_true, Y_predicted):
|
|
27
|
-
self.X = X
|
|
28
|
-
self.Y_true = Y_true
|
|
29
|
-
self.Y_predicted = Y_predicted
|
|
30
|
-
|
|
31
|
-
def evaluate(self):
|
|
32
|
-
pass
|
|
33
|
-
|
sciveo-0.1.28/sciveo/version.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/audio/audio_extractor_process.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/sci/time_series/__init__.py
RENAMED
|
File without changes
|
{sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/sci/time_series/predictor.py
RENAMED
|
File without changes
|
{sciveo-0.1.28 → sciveo-0.1.29}/sciveo/media/pipelines/processors/sci/time_series/trainer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|