trainingsample 0.2.9__tar.gz → 0.2.10__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.
- {trainingsample-0.2.9 → trainingsample-0.2.10}/.github/workflows/publish.yml +4 -6
- {trainingsample-0.2.9 → trainingsample-0.2.10}/Cargo.lock +1 -1
- {trainingsample-0.2.9 → trainingsample-0.2.10}/Cargo.toml +1 -1
- {trainingsample-0.2.9 → trainingsample-0.2.10}/PKG-INFO +1 -1
- {trainingsample-0.2.9 → trainingsample-0.2.10}/pyproject.toml +1 -1
- {trainingsample-0.2.9 → trainingsample-0.2.10}/scripts/build-opencv-static.sh +5 -1
- {trainingsample-0.2.9 → trainingsample-0.2.10}/.cargo/config.toml +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/.envrc +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/.github/workflows/ci.yml +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/.gitignore +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/.pre-commit-config.yaml +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/.rustfmt.toml +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/BENCHMARKS.md +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/Dockerfile +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/LICENSE +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/README.md +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/clippy.toml +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/docs/API_COMPAT_CV2.md +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/docs/BUILDING_STATIC_OPENCV.md +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/rust-toolchain.toml +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/scripts/run_competitive_benchmarks.sh +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/setup-env.sh +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/src/core.rs +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/src/cropping.rs +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/src/cv_batch_ops.rs +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/src/cv_batch_ops_optimized.rs +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/src/cv_compat.rs +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/src/format_conversion_simd.rs +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/src/lib.rs +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/src/loading.rs +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/src/luminance.rs +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/src/luminance_simd.rs +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/src/opencv_ops.rs +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/src/python_bindings.rs +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/src/tests.rs +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/src/true_batch_ops.rs +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/tests/__init__.py +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/tests/comprehensive_tests.rs +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/tests/test_comprehensive.py +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/tests/test_performance_benchmarks.py +0 -0
- {trainingsample-0.2.9 → trainingsample-0.2.10}/tests/test_python_bindings.py +0 -0
|
@@ -41,7 +41,7 @@ jobs:
|
|
|
41
41
|
uses: actions/cache@v4
|
|
42
42
|
with:
|
|
43
43
|
path: third_party/opencv-static
|
|
44
|
-
key: opencv-static-4.12.0-codecs-no-itt-no-openjpeg-linux-${{ matrix.os }}-${{ runner.arch }}-${{ matrix.manylinux }}
|
|
44
|
+
key: opencv-static-4.12.0-codecs-jasper-no-itt-no-openjpeg-linux-${{ matrix.os }}-${{ runner.arch }}-${{ matrix.manylinux }}
|
|
45
45
|
|
|
46
46
|
- name: Install build dependencies
|
|
47
47
|
run: |
|
|
@@ -84,7 +84,6 @@ jobs:
|
|
|
84
84
|
echo "LLVM config at: $(which llvm-config-14 2>/dev/null || which llvm-config-18 2>/dev/null)"
|
|
85
85
|
|
|
86
86
|
- name: Build static OpenCV
|
|
87
|
-
if: steps.cache-opencv.outputs.cache-hit != 'true'
|
|
88
87
|
run: |
|
|
89
88
|
./scripts/build-opencv-static.sh
|
|
90
89
|
|
|
@@ -105,7 +104,7 @@ jobs:
|
|
|
105
104
|
# OpenCV static linking configuration
|
|
106
105
|
OPENCV_INCLUDE_PATHS: ${{ github.workspace }}/third_party/opencv-static/include/opencv4
|
|
107
106
|
OPENCV_LINK_PATHS: ${{ github.workspace }}/third_party/opencv-static/lib
|
|
108
|
-
OPENCV_LINK_LIBS: static=opencv_world,static=jpeg,static=png,static=tiff,static=webp,static=z,static=stdc++
|
|
107
|
+
OPENCV_LINK_LIBS: static=opencv_world,static=jpeg,static=png,static=tiff,static=webp,static=z,static=jasper,static=stdc++
|
|
109
108
|
OPENCV_DISABLE_PROBES: pkg_config,cmake,vcpkg,vcpkg_cmake
|
|
110
109
|
|
|
111
110
|
- name: Upload wheels
|
|
@@ -131,7 +130,7 @@ jobs:
|
|
|
131
130
|
uses: actions/cache@v4
|
|
132
131
|
with:
|
|
133
132
|
path: third_party/opencv-static
|
|
134
|
-
key: opencv-static-4.12.0-codecs-no-itt-no-openjpeg-macos-${{ runner.os }}-${{ runner.arch }}
|
|
133
|
+
key: opencv-static-4.12.0-codecs-jasper-no-itt-no-openjpeg-macos-${{ runner.os }}-${{ runner.arch }}
|
|
135
134
|
|
|
136
135
|
- name: Install build dependencies
|
|
137
136
|
run: |
|
|
@@ -143,7 +142,6 @@ jobs:
|
|
|
143
142
|
echo "DYLD_LIBRARY_PATH=/opt/homebrew/opt/llvm/lib:$DYLD_LIBRARY_PATH" >> $GITHUB_ENV
|
|
144
143
|
|
|
145
144
|
- name: Build static OpenCV
|
|
146
|
-
if: steps.cache-opencv.outputs.cache-hit != 'true'
|
|
147
145
|
run: |
|
|
148
146
|
./scripts/build-opencv-static.sh
|
|
149
147
|
|
|
@@ -159,7 +157,7 @@ jobs:
|
|
|
159
157
|
# OpenCV static linking configuration
|
|
160
158
|
OPENCV_INCLUDE_PATHS: ${{ github.workspace }}/third_party/opencv-static/include/opencv4
|
|
161
159
|
OPENCV_LINK_PATHS: ${{ github.workspace }}/third_party/opencv-static/lib
|
|
162
|
-
OPENCV_LINK_LIBS: static=opencv_world,static=jpeg,static=png,static=tiff,static=webp,static=z,framework=Accelerate,dylib=c++
|
|
160
|
+
OPENCV_LINK_LIBS: static=opencv_world,static=jpeg,static=png,static=tiff,static=webp,static=z,static=jasper,framework=Accelerate,dylib=c++
|
|
163
161
|
OPENCV_DISABLE_PROBES: pkg_config,cmake,vcpkg,vcpkg_cmake
|
|
164
162
|
- name: Upload wheels
|
|
165
163
|
uses: actions/upload-artifact@v4
|
|
@@ -14,7 +14,7 @@ description = "High-performance Rust reimplementation of GIL-blocking video/imag
|
|
|
14
14
|
license = {text = "MIT"}
|
|
15
15
|
name = "trainingsample"
|
|
16
16
|
requires-python = ">=3.11"
|
|
17
|
-
version = "0.2.
|
|
17
|
+
version = "0.2.10"
|
|
18
18
|
|
|
19
19
|
[project.optional-dependencies]
|
|
20
20
|
dev = ["pytest>=6.0", "pytest-benchmark", "maturin>=1.0,<2.0", "pre-commit"]
|
|
@@ -10,7 +10,7 @@ PROJECT_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
|
|
10
10
|
BUILD_DIR="${PROJECT_ROOT}/opencv-build-tmp"
|
|
11
11
|
INSTALL_DIR="${PROJECT_ROOT}/third_party/opencv-static"
|
|
12
12
|
SIGNATURE_FILE="${INSTALL_DIR}/build_signature.txt"
|
|
13
|
-
BUILD_SIGNATURE="opencv-${OPENCV_VERSION}-static-codecs-no-itt-no-openjpeg"
|
|
13
|
+
BUILD_SIGNATURE="opencv-${OPENCV_VERSION}-static-codecs-jasper-no-itt-no-openjpeg"
|
|
14
14
|
|
|
15
15
|
echo "Building static OpenCV ${OPENCV_VERSION}..."
|
|
16
16
|
echo "Install directory: ${INSTALL_DIR}"
|
|
@@ -52,11 +52,13 @@ cmake -S "opencv-${OPENCV_VERSION}" \
|
|
|
52
52
|
-DBUILD_TIFF=ON \
|
|
53
53
|
-DBUILD_WEBP=ON \
|
|
54
54
|
-DBUILD_ZLIB=ON \
|
|
55
|
+
-DBUILD_JASPER=ON \
|
|
55
56
|
-DWITH_JPEG=ON \
|
|
56
57
|
-DWITH_PNG=ON \
|
|
57
58
|
-DWITH_TIFF=ON \
|
|
58
59
|
-DWITH_WEBP=ON \
|
|
59
60
|
-DWITH_ZLIB=ON \
|
|
61
|
+
-DWITH_JASPER=ON \
|
|
60
62
|
-DBUILD_TESTS=OFF \
|
|
61
63
|
-DBUILD_PERF_TESTS=OFF \
|
|
62
64
|
-DBUILD_EXAMPLES=OFF \
|
|
@@ -94,6 +96,7 @@ declare -a CODEC_MAPPINGS=(
|
|
|
94
96
|
"liblibtiff.a:libtiff.a"
|
|
95
97
|
"liblibwebp.a:libwebp.a"
|
|
96
98
|
"libzlib.a:libz.a"
|
|
99
|
+
"liblibjasper.a:libjasper.a"
|
|
97
100
|
)
|
|
98
101
|
|
|
99
102
|
for mapping in "${CODEC_MAPPINGS[@]}"; do
|
|
@@ -133,6 +136,7 @@ REQUIRED_ARCHIVES=(
|
|
|
133
136
|
"libtiff.a"
|
|
134
137
|
"libwebp.a"
|
|
135
138
|
"libz.a"
|
|
139
|
+
"libjasper.a"
|
|
136
140
|
)
|
|
137
141
|
|
|
138
142
|
for archive in "${REQUIRED_ARCHIVES[@]}"; do
|
|
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
|