Skip to content

Commit f5d66a6

Browse files
committed
docs: replace em dashes with the repo's ASCII convention
Signed-off-by: Onuralp SEZER <thunderbirdtr@gmail.com>
1 parent 53a8f29 commit f5d66a6

16 files changed

Lines changed: 35 additions & 35 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -175,28 +175,28 @@ path where it is faster.
175175

176176
## 🚀 SAHI v0.12.0 Release Notes
177177

178-
One of the largest SAHI releases to date **95 commits** since `0.11.34`
179-
(rolling in the `0.11.35`/`0.11.36` hotfixes) featuring a re-architected
178+
One of the largest SAHI releases to date -- **95 commits** since `0.11.34`
179+
(rolling in the `0.11.35`/`0.11.36` hotfixes) -- featuring a re-architected
180180
postprocessing engine, true batch inference, a torch-free core, new
181181
open-vocabulary and segmentation models, and a full documentation overhaul.
182182

183183
### 🚀 Key Updates
184184

185185
#### ⚡ Batch inference, torch-free core & accelerated postprocessing backends
186186

187-
- **Batch inference** slices are processed in batches end-to-end for major
187+
- **Batch inference** -- slices are processed in batches end-to-end for major
188188
GPU throughput gains ([#1336](https://github.com/obss/sahi/pull/1336)).
189-
- **Torch-free core** the core slicing/postprocessing path no longer
189+
- **Torch-free core** -- the core slicing/postprocessing path no longer
190190
hard-depends on PyTorch; install only what your backend needs
191191
([#1336](https://github.com/obss/sahi/pull/1336)).
192-
- **Pluggable postprocessing backends** NMS/NMM run on a selectable backend:
192+
- **Pluggable postprocessing backends** -- NMS/NMM run on a selectable backend:
193193
**NumPy** (zero heavy deps), **Numba** (JIT-accelerated CPU), or
194194
**TorchVision** (GPU), auto-selected for your environment
195195
([#1336](https://github.com/obss/sahi/pull/1336)).
196196

197197
#### 🧠 New model support
198198

199-
- **GroundingDINO (HuggingFace)** zero-shot, text-prompted open-vocabulary
199+
- **GroundingDINO (HuggingFace)** -- zero-shot, text-prompted open-vocabulary
200200
detection through SAHI's sliced pipeline, with a dedicated demo notebook
201201
([#1361](https://github.com/obss/sahi/pull/1361)).
202202
- **Universal segmentation from HuggingFace**
@@ -235,7 +235,7 @@ open-vocabulary and segmentation models, and a full documentation overhaul.
235235

236236
### ✨ Performance & Improvements
237237

238-
- **Significantly faster post-processing** NMS, NMM, and GREEDYNMM now use a
238+
- **Significantly faster post-processing** -- NMS, NMM, and GREEDYNMM now use a
239239
shapely `STRtree` spatial index, dramatically speeding up merging on images
240240
with many slices/detections ([#1248](https://github.com/obss/sahi/pull/1248)).
241241
- Faster `read_image_as_pil` for quicker slicing throughput

demo/inference_for_roboflow.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"source": [
2727
"# SAHI + Roboflow\n",
2828
"\n",
29-
"This notebook demonstrates how to run object detection using Roboflow's [RF-DETR](https://github.com/roboflow/rfdetr) models in combination with [SAHI (Slicing Aided Hyper Inference)](https://github.com/obss/sahi) for improved detection performanceparticularly on small objects. \n",
29+
"This notebook demonstrates how to run object detection using Roboflow's [RF-DETR](https://github.com/roboflow/rfdetr) models in combination with [SAHI (Slicing Aided Hyper Inference)](https://github.com/obss/sahi) for improved detection performance, particularly on small objects. \n",
3030
"\n",
3131
"You can set the `model` parameter in one of **three ways**, depending on whether you're using a model from [Roboflow Universe](https://universe.roboflow.com/search?q=object%20detection) or a custom-trained RF-DETR model."
3232
]

docs/stylesheets/extra.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Light theme: deep blue header logo (#2B57E0) reads as a brighter highlight */
1+
/* Light theme: deep blue header -- logo (#2B57E0) reads as a brighter highlight */
22
[data-md-color-primary=custom] {
33
--md-primary-fg-color: #162d8a;
44
--md-primary-fg-color--light: #1e3fa8;

docs/tr/postprocess/backends.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ SAHI'nin postprocessing (NMS, NMM) işlemleri üç değiştirilebilir backend ü
2323

2424
SAHI varsayılan olarak çalışma anında (runtime) mevcut en iyi backend'i otomatik olarak seçer:
2525

26-
1. **torchvision** `torchvision` yüklüyse _ve_ bir GPU mevcutsa
26+
1. **torchvision**: `torchvision` yüklüyse _ve_ bir GPU mevcutsa
2727
(CUDA veya Apple Silicon üzerinde Apple MPS).
28-
2. **numba** `numba` paketi yüklüyse.
29-
3. **numpy** son çare (fallback) olarak her zaman mevcuttur.
28+
2. **numba**: `numba` paketi yüklüyse.
29+
3. **numpy**: son çare (fallback) olarak her zaman mevcuttur.
3030

3131
```python
3232
from sahi.postprocess.backends import get_postprocess_backend
@@ -100,11 +100,11 @@ predictions = np.array([
100100
[300, 300, 400, 400, 0.90, 1],
101101
])
102102

103-
# Global NMS — all categories compete together
103+
# Global NMS, tüm kategoriler birlikte yarışır
104104
keep = nms(predictions, match_metric="IOU", match_threshold=0.5)
105105
print(predictions[keep])
106106

107-
# Per-category NMS — class 0 and class 1 are treated independently
107+
# Kategori bazında NMS, sınıf 0 ve sınıf 1 bağımsız değerlendirilir
108108
keep = batched_nms(predictions, match_metric="IOU", match_threshold=0.5)
109109
print(predictions[keep])
110110
```
@@ -142,19 +142,19 @@ Yüksek seviyeli sınıflar, SAHI'nin `ObjectPrediction` listeleriyle entegre ol
142142
```python
143143
from sahi.postprocess.combine import NMSPostprocess, NMMPostprocess, GreedyNMMPostprocess
144144

145-
# NMS — keep the best box, discard the rest
145+
# NMS, en iyi kutuyu tutar, geri kalanını atar
146146
postprocessor = NMSPostprocess(
147147
match_threshold=0.5,
148148
match_metric="IOU",
149-
class_agnostic=True, # False → per-category
149+
class_agnostic=True, # False → kategori bazında
150150
)
151151
filtered = postprocessor(object_prediction_list)
152152

153-
# Greedy NMM — merge overlapping boxes (fast)
153+
# Greedy NMM, örtüşen kutuları birleştirir (hızlı)
154154
postprocessor = GreedyNMMPostprocess(match_threshold=0.5)
155155
merged = postprocessor(object_prediction_list)
156156

157-
# Full NMM — transitive merging
157+
# Full NMM, geçişli birleştirme
158158
postprocessor = NMMPostprocess(match_threshold=0.5)
159159
merged = postprocessor(object_prediction_list)
160160
```

docs/tr/stylesheets/extra.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Light theme: deep blue header logo (#2B57E0) reads as a brighter highlight */
1+
/* Light theme: deep blue header -- logo (#2B57E0) reads as a brighter highlight */
22
[data-md-color-primary=custom] {
33
--md-primary-fg-color: #162d8a;
44
--md-primary-fg-color--light: #1e3fa8;

docs/zh/stylesheets/extra.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Light theme: deep blue header logo (#2B57E0) reads as a brighter highlight */
1+
/* Light theme: deep blue header -- logo (#2B57E0) reads as a brighter highlight */
22
[data-md-color-primary=custom] {
33
--md-primary-fg-color: #162d8a;
44
--md-primary-fg-color--light: #1e3fa8;

sahi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
except importlib_metadata.PackageNotFoundError:
2323
__version__ = "development"
2424

25-
# Lazy imports heavy modules (cv2, shapely, requests, tqdm) are only
25+
# Lazy imports -- heavy modules (cv2, shapely, requests, tqdm) are only
2626
# loaded when the user actually accesses one of these names.
2727
_LAZY_IMPORTS = {
2828
"BoundingBox": "sahi.annotation",

sahi/models/huggingface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def get_valid_predictions(self, logits: Any, pred_boxes: Any) -> tuple:
241241
import torch
242242

243243
if self._uses_sigmoid_cls:
244-
# RT-DETR family: per-class sigmoid, logits shape (Q, num_classes) no background class
244+
# RT-DETR family: per-class sigmoid, logits shape (Q, num_classes) -- no background class
245245
probs = logits.sigmoid()
246246
scores, cat_ids = probs.max(-1)
247247
valid_mask = scores >= self.confidence_threshold

sahi/models/huggingface_segmentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from sahi.utils.compatibility import fix_full_shape_list, fix_shift_amount_list
1818
from sahi.utils.cv import get_coco_segmentation_from_bool_mask
1919

20-
# {model_class_name: processor_class_name} strings to avoid eager transformers import
20+
# {model_class_name: processor_class_name} -- strings to avoid eager transformers import
2121
_SUPPORTED_MODELS: dict[str, str] = {
2222
"Mask2FormerForUniversalSegmentation": "Mask2FormerImageProcessor",
2323
"MaskFormerForInstanceSegmentation": "MaskFormerImageProcessor",

sahi/models/ultralytics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def perform_batch_inference(self, images: list[np.ndarray]) -> None:
153153
if self.image_size is not None:
154154
kwargs = {"imgsz": self.image_size, **kwargs}
155155

156-
# YOLO expects BGR convert each image and pass the list for native batch inference
156+
# YOLO expects BGR -- convert each image and pass the list for native batch inference
157157
images_bgr = [img[:, :, ::-1] for img in images]
158158
prediction_result = self.model(images_bgr, **kwargs)
159159

0 commit comments

Comments
 (0)