deepfacelab中文网

 找回密码
 立即注册(仅限QQ邮箱)
12
返回列表 发新帖
楼主: sinksky

有办法替换Visomaster、rope自带的XSeg模型吗?

[复制链接]

14

主题

3401

帖子

1万

积分

高级丹圣

Rank: 13Rank: 13Rank: 13Rank: 13

积分
18323

真我风采勋章万事如意节日勋章

发表于 17 小时前 | 显示全部楼层
本帖最后由 wtxx8888 于 2025-7-3 00:29 编辑
sinksky 发表于 2025-7-2 21:46
那大佬简单告知一下如何修改代码也行

只能告诉你,想法可以实现。
代码,不想花钱就请自学python(本人就是不满DFL,现自学的python,然后改)。。。或付费请人。
回复 支持 反对

使用道具 举报

6

主题

257

帖子

2002

积分

初级丹圣

Rank: 8Rank: 8

积分
2002

万事如意节日勋章

发表于 16 小时前 | 显示全部楼层
On my discord server I have a patch for DeepAscension that allows you to do xseg to onnx in rope format
回复 支持 反对

使用道具 举报

0

主题

90

帖子

1253

积分

初级丹圣

Rank: 8Rank: 8

积分
1253

万事如意节日勋章

发表于 9 小时前 | 显示全部楼层
回复 支持 反对

使用道具 举报

9

主题

56

帖子

1483

积分

初级丹圣

Rank: 8Rank: 8

积分
1483
 楼主| 发表于 6 小时前 | 显示全部楼层
本帖最后由 sinksky 于 2025-7-3 11:43 编辑


# usage
## generate you own onnx file
1. put DeepFaceLab XSegNet weights to weights folder, such as `weights/XSeg_256.npy`.
3. Then run `python test_seg.py` to generate tensorflow SavedModel format checkpoint file to `saved_model` directory.
5. convert model to onnx file, `python -m tf2onnx.convert --saved-model ./saved_model/ --output xseg.onnx  --tag serve`.
6. (optinal) install onnxsim `pip install onnxsim` and run `onnxsim ./xseg.onnx ./xseg_sim.onnx`.
7. `python onx2torch.py`

第三步卡住了,已经将XSeg_256.npy放入weights文件夹,但不知道怎么运行py,搜索了下用cmd执行python test_seg.py,除了弹个记事本出来,没看到生成文件
回复 支持 反对

使用道具 举报

QQ|Archiver|手机版|deepfacelab中文网 |网站地图

GMT+8, 2025-7-3 17:44 , Processed in 0.126268 second(s), 29 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表