How to Use AI to Virtually Change Clothes in Photos

Ronald Aug
3 min readMar 22, 2024

Tired of shopping trips that take forever and fitting rooms that make you sweat?

There’s a new way to get fashion advice without even leaving your house! Thanks to cool new AI tools these days, you can now have your own virtual stylist in your pocket and it’s free.

Imagine this: you can get outfit ideas that are perfect for you, all from your couch. Pretty awesome, right?

Let’s check out a tool called “Replace Anything” by a smart team at Institute for Intelligent Computing, Alibaba Group. While this AI model is designed to replace anything in a photo, it turns out to be the perfect tool for virtually trying on new outfits in pictures you already have. This means you can experiment with new looks without ever having to put on a single new piece of clothing!

Here’s how this magic trick works in just 4 simple steps:

  1. Head over to the “Replace Anything” hugging face space: You can find it easily by searching online.
  2. Upload your photo: Click on “image create” and select the picture you want to edit.

Here, I use a photo of Jennifer Lawrence from the Hunger Games movie.

3. Let the AI do the groundwork: “Replace Anything” uses segmentation technology to cleverly separate your clothes, skin, and background in the photo. Think of it like a super precise virtual pair of scissors!

4. Channel your inner stylist: Now comes the fun part! Write a text prompt describing the new outfit you envision. My prompt is “Jennifer Lawrence wearing batman suit” .
Maybe you want a different colored jacket, a more summery dress, or even a pair of trendy sunglasses. The possibilities are endless!

Boom! See the result?

It’s super accurate and realistic.

Alternatives to “Replace Anything”

“Replace Anything” is a great option, but it’s not your only choice! Here are a couple of alternatives to explore and see which one best suits your needs:

  • Fashion AI: Similar to “Replace Anything,” this app lets you virtually edit clothes in your photos. However, keep in mind that users have reported Fashion AI’s accuracy can be lower and processing times can be slower.
  • Outfit Anyone: This platform lets you experiment with different outfits, but it’s a closed-source program, meaning the inner workings are a mystery. Additionally, it relies on a specific set of clothing data, which might limit the variety of options available compared to tools that use a broader range of data.

These AI tools are just the beginning. As technology advances, even more mind-blowing tools are on the horizon, ready to revolutionize how we shop, dress, and express ourselves through fashion. Get ready to ditch the fitting room for good!

Thanks for reading! I hope this article sparked your curiosity about the exciting world of AI fashion.

--

--

Ronald Aug

I'm a coffee-loving, music-obsessed programmer, founder of August Host. I live in Taunggyi, Myanmar with my lovely wife and our kid, Mo Mo.