# Upscaling

* *The upscale option in the paint tab doesn't work.*&#x20;

Generating large images can take a lot of time, and at a point you will most likely run out of memory.

<figure><img src="/files/CqLw0nCKHhP7DrwfSCs9" alt=""><figcaption></figcaption></figure>

Because most models are trained on images that are 512x512 (sometimes 768x768) the AI has a hard time dealing with large images and long aspect ratios.

<figure><img src="/files/zMazt7ajnljPW3w3kHZ1" alt="" width="320"><figcaption><p>Caused by a resolution that's too large</p></figcaption></figure>

To get around this you can generate an image at a smaller resolution and use an AI assisted upscaler to make it bigger.\
Going too large will cause details to be lost with regular upscalers. But these can be easily added back in with inpainting. ([Inpaint](/tutorials/resources/extra-features-tutorials/the-paint-tab/inpaint.md))

The other option is to use Highres Fix, which will generate a smaller image then automatically upscale and add details back in.\
This is much more resource intense than regular upscalers, but can offer cleaner results.

{% content-ref url="/pages/GX29kok4QY09ssQdsLEg" %}
[Standard Upscalers](/tutorials/resources/extra-features-tutorials/upscaling/standard-upscalers.md)
{% endcontent-ref %}

{% content-ref url="/pages/XHOvDmUXf4fRAbWc6KUQ" %}
[Highres Fix](/tutorials/resources/extra-features-tutorials/upscaling/highres-fix.md)
{% endcontent-ref %}


---

# 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://artroomai.gitbook.io/tutorials/resources/extra-features-tutorials/upscaling.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.
