Skip to content

Commit 339abaf

Browse files
committed
batch processing v1.2.7
1 parent 97c13a4 commit 339abaf

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ Class implementing cropping and passing crops through a neural network for detec
121121
| resize_initial_size | bool | False | Whether to resize the results to the original input image size (ps: slow operation). |
122122
| memory_optimize | bool | True | Memory optimization option for segmentation (less accurate results when enabled). |
123123
| inference_extra_args | dict | None | Dictionary with extra ultralytics [inference parameters](https://docs.ultralytics.com/modes/predict/#inference-arguments) (possible keys: half, device, max_det, augment, agnostic_nms and retina_masks) |
124+
| batch_inference | bool | False | Batch inference of image crops through a neural network instead of sequential passes of crops (ps: faster inference, higher gpu memory use). |
124125

125126

126127
**CombineDetections**

patched_yolo_infer/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This library facilitates various visualizations of inference results from ultral
99
You can install the library via pip:
1010

1111
```bash
12-
pip install patched_yolo_infer
12+
pip install patched-yolo-infer
1313
```
1414

1515
Note: If CUDA support is available, it's recommended to pre-install PyTorch with CUDA support before installing the library. Otherwise, the CPU version will be installed by default.
@@ -99,6 +99,7 @@ Class implementing cropping and passing crops through a neural network for detec
9999
- **resize_initial_size** (*bool*): Whether to resize the results to the original image size (ps: slow operation).
100100
- **memory_optimize** (*bool*): Memory optimization option for segmentation (less accurate results when enabled).
101101
- **inference_extra_args** (*dict*): Dictionary with extra ultralytics [inference parameters](https://docs.ultralytics.com/modes/predict/#inference-arguments) (possible keys: half, device, max_det, augment, agnostic_nms and retina_masks)
102+
- **batch_inference** (*bool*): Batch inference of image crops through a neural network instead of sequential passes of crops (ps: faster inference, higher gpu memory use)
102103

103104
**CombineDetections**
104105
Class implementing combining masks/boxes from multiple crops + NMS (Non-Maximum Suppression).\

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
numpy<2.0
12
torch
2-
numpy
33
opencv-python
44
matplotlib
55
ultralytics

setup.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
long_description = "\n" + fh.read()
99

1010

11-
VERSION = '1.2.6'
12-
DESCRIPTION = '''YOLO-Patch-Based-Inference for detection/segmentation of small objects in images.'''
11+
VERSION = '1.2.7'
12+
DESCRIPTION = '''Patch-Based-Inference for detection/segmentation of small objects in images.'''
1313

1414
setup(
1515
name="patched_yolo_infer",
@@ -23,7 +23,7 @@
2323
packages=find_packages(),
2424
python_requires=">=3.8",
2525
install_requires=[
26-
'numpy',
26+
'numpy<2.0',
2727
'opencv-python',
2828
'matplotlib',
2929
'torch',
@@ -33,8 +33,10 @@
3333
"python",
3434
"yolov8",
3535
"yolov9",
36+
"yolov10",
3637
"rtdetr",
37-
"sam",
38+
"fastsam",
39+
"sahi",
3840
"object detection",
3941
"instance segmentation",
4042
"patch-based inference",

0 commit comments

Comments
 (0)