# Using SAHI in my project

**URL:** <https://community.ultralytics.com/t/using-sahi-in-my-project/861>\
**Category:** YOLO\
**Tags:** yolo, code\
**Created:** [March 17, 2025, 12:55pm UTC](https://community.ultralytics.com/t/using-sahi-in-my-project/861 "2025-03-17T12:55:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anan](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@anan](https://community.ultralytics.com/u/anan)\
**Post date:** [March 17, 2025, 12:55pm UTC](https://community.ultralytics.com/t/using-sahi-in-my-project/861/1 "2025-03-17T12:55:28Z")

</div>

Hello, Im trying to use SAHI with my project which is parking managment the view of my camera is not 90, so my model cant detect mos tof the cars, so i tried using sahi alone as a detection it worked, but i dont know how to use it in my project, can anyone guide me? thank you

---

<div class="post-metadata">

**Author:** ![BurhanQ](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/burhanq/32/7_2.png) [@BurhanQ](https://community.ultralytics.com/u/BurhanQ)\
**Post date:** [March 17, 2025, 12:58pm UTC](https://community.ultralytics.com/t/using-sahi-in-my-project/861/2 "2025-03-17T12:58:23Z")

</div>

It’s tough to “help” without knowing what you need help with _specifically_. If you haven’t already, you should check out this guide [SAHI Tiled Inference - Ultralytics YOLO Docs](https://docs.ultralytics.com/guides/sahi-tiled-inference/) which should help a lot. Otherwise, you’ll need to provide more detail about your project and what you need help with for anyone to actually help out.

---

<div class="post-metadata">

**Author:** ![anan](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@anan](https://community.ultralytics.com/u/anan)\
**Post date:** [March 17, 2025, 1:16pm UTC](https://community.ultralytics.com/t/using-sahi-in-my-project/861/3 "2025-03-17T13:16:20Z")

</div>

thank you for replying, i did read it but i didnt know how to output it while it includes the detection of parked cars in my code, im using (usb camera)

---

<div class="post-metadata">

**Author:** ![BurhanQ](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/burhanq/32/7_2.png) [@BurhanQ](https://community.ultralytics.com/u/BurhanQ)\
**Post date:** [March 17, 2025, 2:04pm UTC](https://community.ultralytics.com/t/using-sahi-in-my-project/861/4 "2025-03-17T14:04:43Z")

</div>

The issue you’re looking for help with is unclear. The statement

> how to output it while it includes the detection of parked cars in my code

is very vague. Are you saying that you don’t understand what part of your code needs to be updated to include SAHI? If that’s the case, then it’s just a matter of updating the part where your model is loaded and where you make predictions with the model.

> **[SAHI Tiled Inference](https://docs.ultralytics.com/guides/sahi-tiled-inference/#sliced-inference-with-yolo11)**
>
> Learn how to implement YOLO11 with SAHI for sliced inference. Optimize memory usage and enhance detection accuracy for large-scale applications.

If you have something like:

```python
from ultralytics import YOLO

model = YOLO("yolo11n.pt")

results = model.predict(0) # assuming webcam is "0"

```

You would update it to something _like_ this (might be different for your project):

1. Use the `AutoDetectionModel` to load your model

2. Use the SAHI for predictions
