# YOLO model for detecting cats, foxes, and dogs in urban gardens

**URL:** <https://community.ultralytics.com/t/yolo-model-for-detecting-cats-foxes-and-dogs-in-urban-gardens/1452>\
**Category:** Discussion\
**Tags:** discussion, yolo\
**Created:** [September 10, 2025, 7:44pm UTC](https://community.ultralytics.com/t/yolo-model-for-detecting-cats-foxes-and-dogs-in-urban-gardens/1452 "2025-09-10T19:44:42Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![dj3000](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@dj3000](https://community.ultralytics.com/u/dj3000)\
**Post date:** [September 10, 2025, 7:44pm UTC](https://community.ultralytics.com/t/yolo-model-for-detecting-cats-foxes-and-dogs-in-urban-gardens/1452/1 "2025-09-10T19:44:42Z")

</div>

Hi All,

I am very new to Ultralytics and YOLO. I am aware there are many forks in the Ultralytics GitHub library. Has anyone worked on a model that can detect animals such as cats, foxes, and dogs in urban settings, for example, a garden? I believe there are multiple forks in the github, so I was wondering if someone has started such a model?

I am looking for a starting point, as the standard model does not always seem to detect every variation.

---

<div class="post-metadata">

**Author:** ![Toxite](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/toxite/32/123_2.png) [@Toxite](https://community.ultralytics.com/u/Toxite)\
**Post date:** [September 11, 2025, 4:55am UTC](https://community.ultralytics.com/t/yolo-model-for-detecting-cats-foxes-and-dogs-in-urban-gardens/1452/2 "2025-09-11T04:55:48Z")

</div>

You can try YOLOE with prompts:

[https://docs.ultralytics.com/models/yoloe/#\_\_tabbed\_2\_1](https://docs.ultralytics.com/models/yoloe/#__tabbed_2_1)

---

<div class="post-metadata">

**Author:** ![dj3000](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@dj3000](https://community.ultralytics.com/u/dj3000)\
**Post date:** [September 11, 2025, 8:32am UTC](https://community.ultralytics.com/t/yolo-model-for-detecting-cats-foxes-and-dogs-in-urban-gardens/1452/3 "2025-09-11T08:32:19Z")

</div>

But the prompts depend on the model first detecting the object?

---

<div class="post-metadata">

**Author:** ![Toxite](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/toxite/32/123_2.png) [@Toxite](https://community.ultralytics.com/u/Toxite)\
**Post date:** [September 11, 2025, 9:44am UTC](https://community.ultralytics.com/t/yolo-model-for-detecting-cats-foxes-and-dogs-in-urban-gardens/1452/4 "2025-09-11T09:44:24Z")

</div>

If you mean that it detects all objects first and then filters based on prompt, then no. It detects based on the prompt.

---

<div class="post-metadata">

**Author:** ![dj3000](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@dj3000](https://community.ultralytics.com/u/dj3000)\
**Post date:** [September 11, 2025, 9:57am UTC](https://community.ultralytics.com/t/yolo-model-for-detecting-cats-foxes-and-dogs-in-urban-gardens/1452/5 "2025-09-11T09:57:31Z")

</div>

But does the model need to have been trained on the original object first? For example, if I search for a fox but ‘fox’ wasn’t included in the model’s training data, then it won’t find it—even with prompts, right?

---

<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:** [September 11, 2025, 12:13pm UTC](https://community.ultralytics.com/t/yolo-model-for-detecting-cats-foxes-and-dogs-in-urban-gardens/1452/6 "2025-09-11T12:13:41Z")

</div>

The YOLOE model uses text prompts like the words “fox” and/or “[vulpes](https://en.wikipedia.org/wiki/Vulpes)” to allow the model to detect objects that have activations that are similar to the vectorization of these words. It’s a bit complex if you’re new to the ideas of machine learning and computer vision, but I would recommend checking out the docs page on the YOLOE model for more details.

> **[YOLOE (Real-Time Seeing Anything)](https://docs.ultralytics.com/models/yoloe/)**
>
> YOLOE is a real-time open-vocabulary detection and segmentation model that extends YOLO with text, image, or internal vocabulary prompts, enabling detection of any object class with state-of-the-art zero-shot performance.

You can also just try it out with some example images to see if it works as you expect. The `ultralytics` library should be fairly simple to use for testing your use case, and the documentation pages have a lot of walk thrus and info to help you out. It’s very common that when questions are asked like, “can YOLO do X” or “will this work for Y” that the answer will be, “you have to test it out” b/c it’s not common that someone else will have experience with your _exact_ use case or situation. If you get stuck or run into issues, feel free to ask here or any of our other communities.

---

<div class="post-metadata">

**Author:** ![dj3000](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@dj3000](https://community.ultralytics.com/u/dj3000)\
**Post date:** [September 11, 2025, 1:08pm UTC](https://community.ultralytics.com/t/yolo-model-for-detecting-cats-foxes-and-dogs-in-urban-gardens/1452/7 "2025-09-11T13:08:40Z")

</div>

@BurhanQ Thank you for your reply

I will read this document.

Can I try with a video stream from my Raspberry Pi?

So by typing a prompt, does this model sort of self-train itself, or would these prompts we type be somehow pre-trained in the model? For example, if we were to specify an object that has never been trained, how would it work?

---

<div class="post-metadata">

**Author:** ![Toxite](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/toxite/32/123_2.png) [@Toxite](https://community.ultralytics.com/u/Toxite)\
**Post date:** [September 11, 2025, 3:52pm UTC](https://community.ultralytics.com/t/yolo-model-for-detecting-cats-foxes-and-dogs-in-urban-gardens/1452/8 "2025-09-11T15:52:22Z")

</div>

YOLOE is an open-vocabulary model. It was designed and trained to detect objects based on prompts.

You will have to read about open-vocabulary models to understand how they work. There’s no “self-training”. You’re thinking about traditional closed set models which are trained on specific classes. Open-vocabulary models are designed to be able to detect classes they weren’t specifically trained on.

If you want to understand how they work, you will have to read the YOLOE paper.

---

<div class="post-metadata">

**Author:** ![dj3000](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@dj3000](https://community.ultralytics.com/u/dj3000)\
**Post date:** [September 11, 2025, 7:37pm UTC](https://community.ultralytics.com/t/yolo-model-for-detecting-cats-foxes-and-dogs-in-urban-gardens/1452/9 "2025-09-11T19:37:13Z")

</div>

@Toxite Thanks I i will read up on it, but there must be some limits on what can be detected with the prompts?

---

<div class="post-metadata">

**Author:** ![Toxite](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/toxite/32/123_2.png) [@Toxite](https://community.ultralytics.com/u/Toxite)\
**Post date:** [September 12, 2025, 12:22am UTC](https://community.ultralytics.com/t/yolo-model-for-detecting-cats-foxes-and-dogs-in-urban-gardens/1452/10 "2025-09-12T00:22:05Z")

</div>

There are obviously limits, especially for entirely different domains than what the pretraining was for. But it’s not as limited as closed set models.

---

<div class="post-metadata">

**Author:** ![dj3000](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@dj3000](https://community.ultralytics.com/u/dj3000)\
**Post date:** [September 14, 2025, 6:20pm UTC](https://community.ultralytics.com/t/yolo-model-for-detecting-cats-foxes-and-dogs-in-urban-gardens/1452/11 "2025-09-14T18:20:22Z")

</div>

@Toxite @BurhanQ When running YOLE on RP, do we natively run the .pt file or do we need to convert it to another format, which we then use?

Also, I have the following camera connected to my RP

[Waveshare IMX290-83 IR-Cut Camera Compatible with Raspberry Pi Board and Module Series Using a IMX290 Starlight Camera Sensor with 2MP onboard IR-CUT Switch the Modes Between Daytime and Nighttime: Amazon.co.uk: Computers & Accessories](https://www.amazon.co.uk/dp/B0B42FQ56Q?ref_=ppx_hzsearch_conn_dt_b_fed_asin_title_2)

In my other project, i refer to the camera using `input="libcamera"`, that compatible with the Ultralytics Python libraries?

---

<div class="post-metadata">

**Author:** ![Toxite](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/toxite/32/123_2.png) [@Toxite](https://community.ultralytics.com/u/Toxite)\
**Post date:** [September 14, 2025, 6:33pm UTC](https://community.ultralytics.com/t/yolo-model-for-detecting-cats-foxes-and-dogs-in-urban-gardens/1452/12 "2025-09-14T18:33:47Z")

</div>

You can both run `.pt` or convert it to another format.

From the search online, you can’t directly fetch frames from that camera using OpenCV.

You need to manually get the frames from that and run `model.predict()`on it to make inference.

> **[Predict](https://docs.ultralytics.com/modes/predict/#__tabbed_2_6)**
>
> Harness the power of Ultralytics YOLO11 for real-time, high-speed inference on various data sources. Learn about predict mode, key features, and practical applications.

---

<div class="post-metadata">

**Author:** ![Toxite](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/toxite/32/123_2.png) [@Toxite](https://community.ultralytics.com/u/Toxite)\
**Post date:** [September 14, 2025, 6:39pm UTC](https://community.ultralytics.com/t/yolo-model-for-detecting-cats-foxes-and-dogs-in-urban-gardens/1452/13 "2025-09-14T18:39:15Z")

</div>

I think you should attempt running the model first and then ask questions when you are having issues, instead of asking questions that could have been answered if you had just attempted it. Also a lot of these general questions can be answered through a simple Google research or by reading Ultralytics Docs.
