🌟 English Version:
For a long time, everyone has been very enthusiastic about researching how to change clothes for people in a photo... When my Bilibili first talked about related experiments 🧪, the views doubled several times. However, the methods mentioned in the previous videos were still too random.
Although ComfyUI had a decent workflow a few months ago that could achieve better results, it still required a lot of manual parameter adjustments and complex environment setups. This time, let's simply talk about how to change clothes using IDM-VTON—everyone can go directly to the HuggingFace demo page to play 👉 IDM-VTON
First, upload a source file, which is the photo waiting for a clothing change. For example, a photo I recently took at the visionOS conference 👇
Click the Upload button here to upload the picture:
Then click the paint tool here to draw a mask on the clothing part. Pay attention to the edge details, as they greatly affect the final result, so it's best to be patient. To adjust the brush width, just click the color button on the right side of the palette.
Next, simply upload a clothing image with a clean background, ideally a frontal view. If the background is complex, it's recommended to remove it first.
Then click Try-on, and witness the magic moment!
🌟 Chinese Version:
一直以来,大家都非常热衷于研究如何给一张照片中的人物换上新衣服...当初我的 Bilibili 账号讲到相关的实验时 🧪 播放量也翻上了几倍。然而,之前视频中提到的方法随机性还是太大了些。
虽然 ComfyUI 几个月之前就有不错的 Workflow 可以达到更好的效果,可惜仍然少不了很多手动的参数调整以及复杂的环境搭建。这期我们就简单聊聊如何用 IDM-VTON 更换服饰~大家可以去 HuggingFace 这个 demo 网页直接开玩 👉 IDM-VTON
首先,在这里上传一张源文件,即等待被更换服装的照片。例如我最近在 visionOS 大会拍的一张照片 👇
点击这里的 Upload 按钮上传图片:
随后点击这里的画笔工具,给服装部分绘制蒙版。请注意边缘细节,这部分非常影响最终的结果,所以最好多一点耐心。要想调整画笔宽度,点击调色板右边的颜色按钮就可以了。
接着直接上传一张背景干净的服装即可,尽可能是正视图。如果背景复杂,建议先抠好背景。
接下来点击 Try-on,见证奇迹的时刻!