Dev.to WebDev πŸ›  Dev πŸ‘ 0 πŸ“– 5 min read

PoseWear makes AI try-on easier by giving every reference image a job

The most useful idea in PoseWear is simple: separate the person, the outfit, and the pose before asking an image model to combine them. That turns a vague request into something a developer can inspect, debug, and compar

PoseWear makes AI try-on easier by giving every reference image a job

The most useful idea in PoseWear is simple: separate the person, the outfit, and the pose before asking an image model to combine them. That turns a vague request into something a developer can inspect, debug, and compare across providers. The open-source project is worth exploring even if you never deploy a fashion application: it is a compact example of a browser interface translating user intent into several incompatible multimodal APIs.

I reviewed the PoseWear repository at commit 0c97ab4, including build.py, src/studio.js, the proxy function, and the browser tests. I also examined three existing showcase groups and an archived, five-model production smoke test from the separate Posewear web application. The images below distinguish those two sources. This is a source review with existing outputs, rather than a newly run benchmark.

Start with the contract

A fashion request usually contains several independent requirements. The face should remain recognisable. The coat should come from the clothing reference. The body should follow a sketch. The background should follow a written direction. If all of those are left implicit, a plausible image can still be the wrong answer.

In the open-source implementation, compose() names the image ranges and gives them roles. The actual generation array is assembled as person images, garment images, pose images, and expression images. The prompt uses that same order. With one image in each of the first three categories, a simplified contract is:

Image 1: preserve this adult person's appearance.
Image 2: reproduce this outfit, including layers and accessories.
Image 3: use this body pose and camera angle.
Use the pose sketch as guidance; do not draw its guide marks.

This is an explanation of the contract, not a drop-in replacement for the repository's complete prompt. compose() also handles missing portraits, multiple clothing pieces, expressions, and output styles. The important invariant is that the prose and attachment order agree. See the actual prompt and request implementation.

The separate posewear.net application now normalises the first three references as pose, outfit, person. That is a different contract. Copying a prompt between the two without changing its numbering can change which image supplies identity. This small detail is more actionable than adding another paragraph of descriptive adjectives.

Three examples that expose different failure modes

1. A standing outfit: start with a readable baseline

Standing pose, beige coat outfit, portrait, and an ImageGen showcase result

The first group, sc-001, contains a front-facing sketch with both hands behind the head, a beige coat over a black turtleneck and pleated skirt, tights and tall boots, and a long-haired portrait. The showcase result keeps the raised elbows, the long coat, and the layered black outfit. The face is rendered as a smiling adult with a similar hairstyle.

This is a useful baseline because the full body and most garment boundaries are visible. Check the coat length, skirt pleats, boots, and shoulder bag separately. A generally convincing image can still omit a belt or change the bag. β€œLooks realistic” is too broad an acceptance test.

2. A low-angle reclining pose: test geometry

Reclining pose, grey hoodie outfit, portrait, and an ImageGen showcase result

In sc-003, the references describe a person lying back, one knee raised, seen from a low camera position. The outfit includes a grey hoodie, jeans, black shoes, and a bag. The result places a shoe sole close to the camera and makes the raised knee prominent. Those visible relationships explain the intended perspective better than the word β€œdynamic.”

The clothing reference also contains a cap that is absent from the result. That is an observable omission, not evidence that the whole task failed. It demonstrates why accessory fidelity deserves its own review. Inspect limb overlap and the relationship between the foreground shoe and the torso as well as the face.

3. A seated anime image: test which properties survive a style change

Side-sitting pose, blue outfit, portrait, and an ImageGen anime showcase result

Group sc-006 combines a side-sitting sketch with one arm raised, a pale blue top and cardigan, white trousers, sandals, a bag, and a short-haired portrait. The result is a drawn character on a pastel background, with the raised arm and folded legs still legible.

Here, photographic skin texture is intentionally replaced by illustration. A fair review asks whether hairstyle, clothing colours, pose, and accessory placement remain understandable. It should not demand pixel-level facial identity across photography and anime. These three showcase outputs were recorded as built-in ImageGen illustrations on 24 November 2026; they are not labelled outputs from the five models in the next section. Their local provenance record preserves that distinction.

The adapter is where β€œcompatible” gets interesting

The upstream workbench does not run an image model in the browser. It prepares images and calls a provider. Uploaded portraits are resized and converted through canvas; library references have their own preparation path. The visible result depends on both this preparation and the remote model.

The provider branches are materially different:

  • OpenAI-style edits use multipart FormData with image attachments.
  • Gemini-style requests put text and base64 image parts into generateContent.
  • Seedream uses a JSON image-generation request with reference data URLs.
  • Custom endpoints can select different protocols and image field names.

There is another detail worth reading: some compatibility fallbacks can eventually produce a text-only request. The UI returns a warning when reference images were not accepted. That warning belongs in a comparison record. A successful HTTP response does not prove that the provider used the person and outfit images.

What five existing model outputs actually show

Five archived model outputs for the same standing outfit

The archived Posewear application test used the standing group, one adult, a neutral studio background, and the same prompt and three attachments for all five calls. It used the older person–outfit–pose order. Each model produced one result. These are the configured endpoint labels in that application, not a claim about every product carrying a similar name.

Configured model Original output Visible observation in this sample
GPT Image 2.6 832 Γ— 1248 A relatively tight full-body composition with the coat and boots prominent
Seedream 5.5 836 Γ— 1254 Broad, readable coat panels and soft, fairly even studio light
Kling Image 4.0 1664 Γ— 2496 A larger delivered raster, with restrained contrast in the displayed reduction
MiniMax H3 832 Γ— 1248 A stronger floor shadow to the right and deeper tonal contrast
MAI Image 2.7 912 Γ— 1152 More space around the subject; the delivered image is not 2:3

All five retain the broad raised-arm pose and beige-over-black styling. That is the defensible shared result. The source files and comparison manifest support the dimensions and input conditions. They do not establish a universal winner, identity score, average latency, or success rate. The comparison board uses equal display boxes without stretching; inspect the individual AVIF files for closer reading.

The reusable engineering lesson

Make reference roles explicit, keep image order deterministic, and record what was actually sent. Then preserve enough metadata to explain a surprising result. The upstream project stores generated history in IndexedDB and configuration in localStorage; history export includes prompts and parameters. Its mocked browser tests exercise request behaviour and errors, but their fixture images should never be presented as model-quality evidence. The repository guide documents those boundaries.

I recommend this open-source project as a readable integration example and a practical reference library. For a quick way to try the three-reference workflow, visit Posewear; the hosted application has its own accounts, model configuration, and pricing. If you prefer bringing your own API key and inspecting the browser code, start with the upstream repository. Thanks to atuizz, the project contributors, and the original reference-library creators for making the workflow understandable and reusable.

πŸ“° Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.