Skip to content

Commit eae3270

Browse files
committed
new default value
1 parent 95f18ff commit eae3270

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ element_crops = MakeCropsDetectThem(
9191
overlap_y=50,
9292
conf=0.5,
9393
iou=0.7,
94-
resize_initial_size=True,
9594
)
9695
result = CombineDetections(element_crops, nms_threshold=0.25)
9796

@@ -124,7 +123,7 @@ Class implementing cropping and passing crops through a neural network for detec
124123
| overlap_x | float | 25 | Percentage of overlap along the x-axis. |
125124
| overlap_y | float | 25 | Percentage of overlap along the y-axis. |
126125
| show_crops | bool | False | Whether to visualize the cropping. |
127-
| resize_initial_size | bool | False | Whether to resize the results to the original input image size (ps: slow operation). |
126+
| resize_initial_size | bool | True | Whether to resize the results to the original input image size (ps: slow operation). |
128127
| memory_optimize | bool | True | Memory optimization option for segmentation (less accurate results when enabled). |
129128
| 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) |
130129
| 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). |

patched_yolo_infer/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ element_crops = MakeCropsDetectThem(
6767
overlap_y=50,
6868
conf=0.5,
6969
iou=0.7,
70-
resize_initial_size=True,
7170
)
7271
result = CombineDetections(element_crops, nms_threshold=0.25)
7372

patched_yolo_infer/nodes/MakeCropsDetectThem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def __init__(
7171
overlap_x=25,
7272
overlap_y=25,
7373
show_crops=False,
74-
resize_initial_size=False,
74+
resize_initial_size=True,
7575
model=None,
7676
memory_optimize=True,
7777
inference_extra_args=None,

0 commit comments

Comments
 (0)