# Perform machine learning inference

{% hint style="info" %}
This page was generated from content adapted from the [AWS Developer Guide](https://github.com/awsdocs/aws-iot-greengrass-v2-developer-guide.git)
{% endhint %}

## Use Lookout for Vision

* **Note**\
  AWS IoT Greengrass doesn't currently support this feature on Windows core devices.

## Customize your machine learning components

* **Note**\
  This step creates the component in the AWS IoT Greengrass service in the AWS Cloud. You can use the Greengrass CLI to develop, test, and deploy your component locally before you upload it to the cloud. For more information, see [Develop AWS IoT Greengrass components](https://github.com/kevinslin/aws-reference-notes/blob/main/services/aws_iot_greengrass/develop-greengrass-components.md).
* **Note**You must store your artifacts in S3 buckets that are in the same AWS account and AWS Region as the components. To enable AWS IoT Greengrass to access these artifacts, the [Greengrass device role](https://github.com/kevinslin/aws-reference-notes/blob/main/services/aws_iot_greengrass/device-service-role.md) must allow the `s3:GetObject` action. For more information about the device role, see [Authorize core devices to interact with AWS services](https://github.com/kevinslin/aws-reference-notes/blob/main/services/aws_iot_greengrass/device-service-role.md).
* **Note**You must store your artifacts in S3 buckets that are in the same AWS account and AWS Region as the components. To enable AWS IoT Greengrass to access these artifacts, the [Greengrass device role](https://github.com/kevinslin/aws-reference-notes/blob/main/services/aws_iot_greengrass/device-service-role.md) must allow the `s3:GetObject` action. For more information about the device role, see [Authorize core devices to interact with AWS services](https://github.com/kevinslin/aws-reference-notes/blob/main/services/aws_iot_greengrass/device-service-role.md).
* **Note**\
  This step creates the component in the AWS IoT Greengrass service in the AWS Cloud. You can use the Greengrass CLI to develop, test, and deploy your component locally before you upload it to the cloud. For more information, see [Develop AWS IoT Greengrass components](https://github.com/kevinslin/aws-reference-notes/blob/main/services/aws_iot_greengrass/develop-greengrass-components.md).

## Troubleshooting

* **Note**\
  For the DLR component v1.3.x, you set the `MLRootPath` parameter in the configuration of the inference component, and the default value is `$HOME/greengrass_ml`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://awsnotes.dendron.so/internet-of-things-iot/aws-iot-greengrass/topics/perform-machine-learning-inference.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
