verify_tool_test.py 382 B

123456789
  1. """
  2. 支持所有待测模型,测试模型水印提取功能,对提供的指定模型文件进行水印检测
  3. """
  4. from watermark_verify import verify_tool
  5. if __name__ == '__main__':
  6. model_filename = "/home/ai/checkpoints/pytorch-alexnet-blackbox/om/model_99.om"
  7. verify_result = verify_tool.label_verification(model_filename)
  8. print(f"verify_result: {verify_result}")