1 Star 2 Fork 0

吴起乐/ManTra-Net-pytorch

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
test.py 486 Bytes
一键复制 编辑 原始数据 按行查看 历史
吴起乐 提交于 2年前 . add test.py
from MantraNet.mantranet import pre_trained_model, check_forgery
device = "cuda:0" # to change if you have a GPU with at least 12Go RAM (it will save you a lot of time !)
MantraNetmodel = pre_trained_model(
weight_path="MantraNet/MantraNetv4.pt", device=device
)
MantraNetmodel.eval()
fig = check_forgery(MantraNetmodel, img_path=r'F:\wql-Graduate\fuxian\IMD-main\images\example4.jpg', device=device)
fig.savefig(r'F:\wql-Graduate\fuxian\IMD-main\images_out\example4_result.jpg')
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wu_qile/ManTra-net-pytorch.git
git@gitee.com:wu_qile/ManTra-net-pytorch.git
wu_qile
ManTra-net-pytorch
ManTra-Net-pytorch
master

搜索帮助