# Model.eval() usage in YOLO11 prediction

**URL:** <https://community.ultralytics.com/t/model-eval-usage-in-yolo11-prediction/1618>\
**Category:** Support\
**Tags:** question, troubleshooting, code, support\
**Created:** [November 5, 2025, 9:19am UTC](https://community.ultralytics.com/t/model-eval-usage-in-yolo11-prediction/1618 "2025-11-05T09:19:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiranraj](https://avatars.discourse-cdn.com/v4/letter/k/ba8739/32.png) [@kiranraj](https://community.ultralytics.com/u/kiranraj)\
**Post date:** [November 5, 2025, 9:19am UTC](https://community.ultralytics.com/t/model-eval-usage-in-yolo11-prediction/1618/1 "2025-11-05T09:19:44Z")

</div>

Hi Team,

I was using my custom yolo11 model for prediction. In the exploration of improvement in the prediction pipeline, I gave this: ‘model.eval()’ to keep my model in evaluation mode. but i got an error saying that ‘eval() is not an attribute of model object’. So can’t i use the model.eval() after model’s path initialization? kindly waiting for reply

---

<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:** [November 5, 2025, 9:49am UTC](https://community.ultralytics.com/t/model-eval-usage-in-yolo11-prediction/1618/2 "2025-11-05T09:49:07Z")

</div>

You don’t need to use `model.eval()` with Ultralytics. Ultralytics handles that. Just follow the documentation. If the documentation hasn’t mentioned `model.eval()` to run prediction, then it’s because it’s not required.

> **[Predict](https://docs.ultralytics.com/modes/predict/)**
>
> 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.
