The pack object
A pack is a collection of prompts. A pack also contains the configuration for fine-tuning such as using LoRA/FaceID/Checkpoint, base model and preset.
info
The headshot-starter open-source project now supports packs.
Advantages
- Test new prompts, ideas and themes on a bulk of models quickly to assure consistent high-quality results.
- Move fast from the creative process of creating prompts to the deployment of new themes in production.
- Avoid mismatch between hard-coded JSONs and the actual prompts.
- Decouple the creative process from your code and avoid mirroring inference API details in your codebase.
- Run user tests in production for new prompts and quickly iterate.
- Aggregate likes for prompts to improve the quality of the generated images and tighten the feedback loop.
- Sort packs by aggregated likes to present the best packs to the user.
Example user flow
GET /packs
Display a list of packs to the user. See docs- User selects a pack, a class name (man/woman) and training images
- User selects image to upload. Images are inspected using the Image Inspect API to warn against bad quality images and detect characteristics of the training images for templating with
characteristics
. - Call
POST /p/:id/tunes
with title, (training) images, class name andcharacteristics
- to create a new fine-tune model using a pack. See docs GET /tunes/:id/prompts
to get a list of prompts and their statusPOST /prompts/:id/likes
to send feedback to the API. See docs- Sort prompts by likes
- Present packs sorted by aggregated likes
Tips
- Packs should include multiple classes, like
man
andwoman
orcat
anddog
. Astria will use the relevant filters when a new tune is created according to the tune class - Pack cover image is taken from the last prompt added to the pack. If you'd like to change the pack cover image, you can do so by removing the last prompt from the pack and adding it again. The pack cover image will be updated to the last prompt added to the pack.
Getting started
- Click your email in the header to access my packs, and create your first pack.
- Assign prompts to the pack from the prompts tab.
- Once a pack is assigned a new tag shows next to the prompt indicating that it is assigned to the pack.