Inspiration
A first interview often means buying clothes you have never worn, for an occasion you have never been to, and the invitation only says "business formal". Try-on tools usually handle one thing at a time: a jacket, or a lipstick. An interviewer sees all of it at once, so I wanted to judge it the same way.
What it does
You upload a photo, choose the dress code from your invitation, pick up to two garments, and choose the makeup levels to compare. Dress Rehearsal then shows every garment and makeup combination on your photo in one table. Moving the pointer over any look zooms every look to the same spot, so a collar or a lip colour can be compared side by side. You pick one, and it becomes a look card you can save.
The value for a shopper is a decision they can make before paying: not "does this suit look nice" but "which of these two, and with how much makeup, looks right on me for this interview".
How I built it
- AI Clothes (
cloth-v3) puts the garment on the user's photo. - Makeup VTO (
makeup-vto) takes thecloth-v3result as its source, so clothes and makeup appear in one image. - Text to Image (
text-to-image/youcam) generated the demo garments and a fictional demo person. - The backend uses the Python standard library only. It handles the upload, task and polling flow, and caches each finished combination so a repeat view does not spend units twice.
Challenges I ran into
- Seen at full body, the difference between makeup levels almost disappeared. The first working version showed correct results that nobody could compare, so I added a zoom that moves every look to the same spot at once.
makeup-vtoreturned HTTP 400 on my first lip colour request becauseshapeis required forlip_color. Reading the documentation and addingshape.namefixed it.- Six combinations took about two minutes to generate. Every finished look is cached and appears in the table as soon as it is ready, so waiting is visible and a repeat view costs nothing.
Accomplishments that I'm proud of
- A full run on the live APIs: one photo, two garments and three makeup levels produced six looks in one table, each with the garment and the makeup in a single image.
- The chain works with no image handling on my side: the
cloth-v3result URL goes straight intomakeup-vtoas its source. - The app has no dependencies beyond Python, so anyone with an API key can run it from the README.
What I learned
- Getting the API call right was not the same as helping someone decide. The call worked before the comparison did.
- The order matters: clothes first, then makeup on that result, because the second step needs the first step's output as its source.
What's next for Dress Rehearsal
- Connect a real store catalog in place of the placeholder products.
- Add a headshot for the resume from the chosen look, using the YouCam headshot API.
Notes for judges
The person and garments in the demo are generated, and the prices are placeholders. The demo video has on-screen captions and no audio; the wait during generation is sped up and labelled.
Built With
- css
- html
- javascript
- python
- youcam-api