mirror of
https://github.com/azaion/detections.git
synced 2026-04-22 10:36:32 +00:00
be4cab4fcb
- Added `/detect/video` endpoint for true streaming video detection, allowing inference to start as upload bytes arrive. - Introduced `run_detect_video_stream` method in the inference module to handle video processing from a file-like object. - Updated media hashing to include a new function for computing hashes directly from files with minimal I/O. - Enhanced documentation to reflect changes in video processing and API behavior. Made-with: Cursor
37 lines
813 B
Bash
Executable File
37 lines
813 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
|
|
|
|
if [ -f "$PROJECT_ROOT/.env" ]; then
|
|
set -a
|
|
source "$PROJECT_ROOT/.env"
|
|
set +a
|
|
fi
|
|
|
|
REGISTRY="${REGISTRY:?REGISTRY is required}"
|
|
IMAGE_TAG="${IMAGE_TAG:?IMAGE_TAG is required}"
|
|
|
|
usage() {
|
|
echo "Usage: $0 [--help]"
|
|
echo "Pull Docker images for Azaion.Detections from the registry."
|
|
exit 0
|
|
}
|
|
|
|
for arg in "$@"; do
|
|
case "$arg" in
|
|
--help) usage ;;
|
|
esac
|
|
done
|
|
|
|
IMAGE="${REGISTRY}/azaion/detections-cpu:${IMAGE_TAG}"
|
|
|
|
echo "Pulling $IMAGE ..."
|
|
docker pull "$IMAGE"
|
|
|
|
echo "Verifying image digest..."
|
|
docker inspect --format='{{index .RepoDigests 0}}' "$IMAGE" 2>/dev/null || echo "Warning: digest not available for local images"
|
|
|
|
echo "Pull complete."
|