代码拉取完成,页面将自动刷新
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')
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。