×

注意!页面内容来自https://docs.alpacaml.com/classic/fill,本站不储存任何内容,为了更好的阅读体验进行在线解析,若有广告出现,请及时反馈。若您觉得侵犯了您的利益,请通知我们进行删除,然后访问 原网页

Hero Image Fill allows you to seamlessly extend or alter existing images with your prompts. Fill’s use cases can be roughly broken down in two categories: We will look at how to use Fill for both scenarios.

Inpainting - Modifying an existing image

In this example we will use Fill to add new elements to an existing image. It can also be used to remove or alter existing elements.
Fill is controlled by two inputs: The selectionwhich you will define using Photoshop’s rectangular Marquee tool (ctrl/⌘ + M)indicates the region of the image you wish to modify. The prompt allows you to guide the generation in a specific directionyou can also decide to not provide any prompt and let Alpaca decide what to generate based on the rest of the image.

Extending an image

It is possible to extend an image by repeating the process describe above in all directionsbut that would be pretty cumbersome. For this purposeAlpaca has a second mode to make this process much faster.
Firstextend your document’s canvas to the new desired size (keep in mind Alpaca cannot fill zones more than 2048x2048 in dimension).
Make sure your document’s background is transparentas only transparent pixels will be filled by Alpaca in this mode!
NextUnder Fill Settingschange the Region to fill settings to Transparency.
Nowwhenever you make a selection for fillonly the areas which are transparent will be modifiedkeeping your image unchanged. You can now select the entire document and click on Generate.

Parameters


Prompt

The Prompt boxlocated in the main section of the Alpaca paneltakes in a text prompt describing the subject matter, compositionand characteristics of your desired image. You can also describe what you do not want to see in the output by clickling on Exclude. You can learn more about writing prompts by checking our our Prompt Guide.

Images

Allows you to specify how many images you want Alpaca to generate from 1 to 5. The higher the number of imagesthe more credits the generation will costand the slowest it will be.

Seed

The seed acts as a unique identifierguiding the creation process of each generation. If you retain the same seed with identical settingsthe output will always be the same. Retain the seedwhile changing other parameters (e.g. altering the prompt) and you’ll derive a distinct yet related creation. For an element of unpredictabilityset the seed to 0 and Alpaca will choose a random seed for each imagecreating more variations

Steps

Higher number of steps will lead to better qualitybut also cost more credits and make the generation slower.

Region to fill

Controls which part of your selection will be changed in the generation.
  • Entire Selection: Default mode — your entire selection will be modified to match the surrounding pixels and your prompt. Best for inpainting.
  • Transparency: Only the parts of your selection that are transparent will be modified. This is best for extending an image (Zooming out or Outpainting)

Prompt Strength

The Prompt Strength slider controls the influence of the prompt — higher values of this parameter force the model to be more attentive to the prompt. We can consider this to be a “rigid” vs “relaxed” interpretation of the prompt. 7 is a good balance.