mirror of
https://github.com/modelscope/modelscope.git
synced 2025-12-16 16:27:45 +01:00
update readmecn
This commit is contained in:
@@ -41,7 +41,7 @@ ModelScope开源了数百个(当前600+)模型,涵盖自然语言处理、计
|
||||
|
||||
<p align="center">
|
||||
<br>
|
||||
<img src="https://modelscope.oss-cn-beijing.aliyuncs.com/resource/inference.gif" width="1024"/>
|
||||
<img src="data/resource/inference.gif" width="1024"/>
|
||||
<br>
|
||||
<p>
|
||||
|
||||
@@ -129,7 +129,7 @@ ModelScope开源了数百个(当前600+)模型,涵盖自然语言处理、计
|
||||
|
||||
给定一张图片,你可以使用如下代码进行人像抠图.
|
||||
|
||||

|
||||

|
||||
|
||||
```python
|
||||
>>> import cv2
|
||||
@@ -140,7 +140,7 @@ ModelScope开源了数百个(当前600+)模型,涵盖自然语言处理、计
|
||||
>>> cv2.imwrite('result.png', result['output_img'])
|
||||
```
|
||||
输出图像如下
|
||||

|
||||

|
||||
|
||||
对于微调和评估模型, 你需要通过十多行代码构建dataset和trainer,调用`trainer.train()`和`trainer.evaluate()`即可。
|
||||
|
||||
|
||||
BIN
data/resource/inference.gif
Normal file
BIN
data/resource/inference.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.8 MiB |
3
data/resource/portrait_input.png
Normal file
3
data/resource/portrait_input.png
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:af83a94899a6d23339c3ecc5c4c58c57c835af57b531a2f4c50461184f820141
|
||||
size 603621
|
||||
3
data/resource/portrait_output.png
Normal file
3
data/resource/portrait_output.png
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:28f6d784547c295711f1a8b7c83cf7e8d19b6361de56e9a69667fc9c9b8a429a
|
||||
size 661491
|
||||
Reference in New Issue
Block a user