sciveo 0.1.35__tar.gz → 0.1.36__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.35 → sciveo-0.1.36}/PKG-INFO +1 -1
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/image/embeddings.py +1 -1
- sciveo-0.1.36/sciveo/ml/video/description.py +41 -0
- sciveo-0.1.36/sciveo/tools/aws/__init__.py +0 -0
- sciveo-0.1.36/sciveo/version.py +2 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo.egg-info/PKG-INFO +1 -1
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo.egg-info/SOURCES.txt +2 -0
- sciveo-0.1.35/sciveo/version.py +0 -2
- {sciveo-0.1.35 → sciveo-0.1.36}/README.md +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/api/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/api/base.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/api/upload.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/cli.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/common/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/common/configuration.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/common/model.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/common/optimizers.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/common/sampling.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/content/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/content/dataset.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/content/experiment.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/content/project.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/content/runner.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/ml/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/ml/base.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/ml/encoders/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/ml/encoders/base.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/ml/encoders/normalizer.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/ml/nlp/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/ml/nlp/search.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/ml/time_series/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/ml/time_series/dataset.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/ml/time_series/predictor.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/ml/time_series/trainer.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/ml/time_series/window_generator.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/base.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/job_daemon.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/layouts/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/layouts/base.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/pipeline.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/postprocessors/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/postprocessors/base.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/postprocessors/default.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/audio/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/audio/audio.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/audio/audio_extractor_process.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/aws.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/base.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/file/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/file/archive.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/image/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/image/album.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/image/album_in_image.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/image/depth_esimation.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/image/filters.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/image/generators.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/image/histogram.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/image/mask.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/image/object_detection.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/image/resize.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/image/segmentation.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/image/watermark.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/media_info.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/nlp/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/nlp/address.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/qr.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/sci/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/sci/base.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/sci/dataset.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/sci/time_series/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/sci/time_series/predictor.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/sci/time_series/trainer.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/tpu_base.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/video/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/video/generators.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/video/motion_detection.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/video/resize.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/video/video_album.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/video/video_frames.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/video/video_resample.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/queues.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/server.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/web/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/web/server.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/ml/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/ml/base.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/ml/evaluation/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/ml/evaluation/object_detection.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/ml/images/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/ml/images/base.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/ml/images/description.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/ml/images/embeddings.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/ml/images/object_detection.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/ml/images/tools.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/ml/images/transforms.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/ml/nlp/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/ml/nlp/embeddings.py +0 -0
- {sciveo-0.1.35/sciveo/monitoring → sciveo-0.1.36/sciveo/ml/video}/__init__.py +0 -0
- {sciveo-0.1.35/sciveo/network → sciveo-0.1.36/sciveo/monitoring}/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/monitoring/monitor.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/monitoring/start.py +0 -0
- {sciveo-0.1.35/sciveo/tools → sciveo-0.1.36/sciveo/network}/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/network/camera.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/network/sniffer.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/network/tools.py +0 -0
- {sciveo-0.1.35/sciveo/tools/aws → sciveo-0.1.36/sciveo/tools}/__init__.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/tools/array.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/tools/aws/priority_queue.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/tools/aws/s3.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/tools/common.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/tools/compress.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/tools/configuration.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/tools/crypto.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/tools/daemon.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/tools/formating.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/tools/hardware.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/tools/http.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/tools/logger.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/tools/os.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/tools/random.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/tools/remote.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/tools/simple_counter.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/tools/synchronized.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo/tools/timers.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo.egg-info/dependency_links.txt +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo.egg-info/entry_points.txt +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo.egg-info/requires.txt +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/sciveo.egg-info/top_level.txt +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/setup.cfg +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/setup.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/test/test_compress.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/test/test_configuration.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/test/test_crypto.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/test/test_monitoring.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/test/test_runner.py +0 -0
- {sciveo-0.1.35 → sciveo-0.1.36}/test/test_sampling.py +0 -0
|
@@ -21,7 +21,7 @@ from sciveo.tools.logger import *
|
|
|
21
21
|
from sciveo.tools.common import *
|
|
22
22
|
from sciveo.media.pipelines.processors.tpu_base import *
|
|
23
23
|
from sciveo.media.pipelines.base import ApiContent
|
|
24
|
-
from sciveo.
|
|
24
|
+
from sciveo.ml.images.embeddings import ImageEmbedding
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
class ImageEmbeddingProcessor(TPUBaseProcessor):
|
|
@@ -0,0 +1,41 @@
|
|
|
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 os
|
|
13
|
+
import cv2
|
|
14
|
+
import gc
|
|
15
|
+
from PIL import Image
|
|
16
|
+
|
|
17
|
+
import torch
|
|
18
|
+
from transformers import AutoProcessor, AutoModelForCausalLM
|
|
19
|
+
|
|
20
|
+
from sciveo.tools.common import *
|
|
21
|
+
from sciveo.ml.images.description import ImageToText
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class VideoToText(ImageToText):
|
|
25
|
+
def __init__(self, model_id, max_length=64, cache_dir=None, device=None) -> None:
|
|
26
|
+
super().__init__(model_id, max_length, cache_dir, device)
|
|
27
|
+
|
|
28
|
+
def read_video_frame(self, video_path):
|
|
29
|
+
cap = cv2.VideoCapture(video_path)
|
|
30
|
+
total_frames = int(cap.get(cv2.CAP_PROP_FRAME_COUNT))
|
|
31
|
+
cap.set(cv2.CAP_PROP_POS_FRAMES, total_frames // 2)
|
|
32
|
+
ret, frame = cap.read()
|
|
33
|
+
cap.release()
|
|
34
|
+
return frame
|
|
35
|
+
|
|
36
|
+
def predict(self, X):
|
|
37
|
+
frames = []
|
|
38
|
+
for x in X:
|
|
39
|
+
frames.append(self.read_video_frame(x))
|
|
40
|
+
predictions = super().predict(frames)
|
|
41
|
+
return predictions
|
|
File without changes
|
|
@@ -100,6 +100,8 @@ sciveo/ml/images/tools.py
|
|
|
100
100
|
sciveo/ml/images/transforms.py
|
|
101
101
|
sciveo/ml/nlp/__init__.py
|
|
102
102
|
sciveo/ml/nlp/embeddings.py
|
|
103
|
+
sciveo/ml/video/__init__.py
|
|
104
|
+
sciveo/ml/video/description.py
|
|
103
105
|
sciveo/monitoring/__init__.py
|
|
104
106
|
sciveo/monitoring/monitor.py
|
|
105
107
|
sciveo/monitoring/start.py
|
sciveo-0.1.35/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.35 → sciveo-0.1.36}/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
|
|
File without changes
|
{sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/sci/time_series/__init__.py
RENAMED
|
File without changes
|
{sciveo-0.1.35 → sciveo-0.1.36}/sciveo/media/pipelines/processors/sci/time_series/predictor.py
RENAMED
|
File without changes
|
{sciveo-0.1.35 → sciveo-0.1.36}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|