Commit 03bc98c
committed
Refactor semaphore implementation and introduce new traits for image segmentation and processing
- Removed the existing semaphore implementation in `src/semaphore.rs`.
- Added a new file `src/traits.rs` defining various traits for image segmentation models, batch processing, image processing pipelines, worker pools, message queues, batching, and configuration management.
- Implemented a new worker pool in `src/worker.rs` with CPU parallel processing capabilities, including preprocessing and postprocessing workers.
- Created integration tests for batch processing and distributed processing pipelines in `tests/batch_processing_test.rs` and `tests/distributed_integration_test.rs`.
- Added unit tests for configuration validation, supported image formats, path handling, and image processor functionality in `tests/integration_test.rs`.1 parent 7d2c038 commit 03bc98c
25 files changed
Lines changed: 4396 additions & 1547 deletions
File tree
- .github/workflows
- src
- imageops_ai
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
33 | 49 | | |
34 | 50 | | |
35 | 51 | | |
| |||
45 | 61 | | |
46 | 62 | | |
47 | 63 | | |
48 | | - | |
49 | 64 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 65 | + | |
53 | 66 | | |
54 | 67 | | |
55 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | 1 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
0 commit comments