---
title: cv_SAL-VTON_virtual-try-on
canonical_url: "https://www.modelscope.cn/models/iic/cv_SAL-VTON_virtual-try-on"
md_url: "https://www.modelscope.cn/models/iic/cv_SAL-VTON_virtual-try-on.md"
repository: iic/cv_SAL-VTON_virtual-try-on
chinese_name: "基于语义关联关键点的虚拟试衣"
last_updated: 2023-08-06
model_type:
  - SAL-VTON
library_name:
  - pytorch
frameworks:
  - pytorch
domain:
  - cv
downloads: 4888
stars: 45
tags:
  - Alibaba
  - CVPR2023
---

# cv_SAL-VTON_virtual-try-on

> cv_SAL-VTON_virtual-try-on - iic 在 ModelScope 开源的模型。基于语义关联关键点的虚拟试衣算法 CVPR 2023 Linking Garment With Person via Semantically Associated Landmarks for Virtual Try-On

- **Repository**: iic/cv_SAL-VTON_virtual-try-on
- **Tags**: Alibaba, CVPR2023
- **Downloads**: 4888
- **Stars**: 45
- **Last updated**: 2023-08-06

Source: https://www.modelscope.cn/models/iic/cv_SAL-VTON_virtual-try-on

---

# 基于语义关联关键点的虚拟试衣算法
CVPR 2023  Linking Garment With Person via Semantically Associated Landmarks for Virtual Try-On


<div>
<img src=teaser.jpg>
</div>

## 使用方式和范围

### 如何使用

在ModelScope框架上，提供人像图片、服饰平铺图、服饰分割图，得到虚拟试衣结果

#### 代码范例
```python
from modelscope.outputs import OutputKeys
from modelscope.pipelines import pipeline
from modelscope.utils.constant import Tasks

sal_virtual_try_on = pipeline(Tasks.image_try_on, model='damo/cv_SAL-VTON_virtual-try-on')
result_status = sal_virtual_try_on({'person_input_path': 'data/test/images/image_try_on_person.jpg',
                                    'garment_input_path': 'data/test/images/image_try_on_garment.jpg',
                                    'mask_input_path': 'data/test/images/image_try_on_mask.jpg'})
result = result_status[OutputKeys.OUTPUT_IMG]

```

person_input_path 为人像图片

garment_input_path 为服饰平铺图

mask_input_path 为服饰分割图



<div>
<img src=framework.jpg>
</div>

```bash
 git clone https://www.modelscope.cn/damo/cv_SAL-VTON_virtual-try-on.git
```
