From 25a4c6675c2ec18a1f52521a1d19a0988195aff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=B1=9F=E6=B1=9F?= Date: Mon, 23 Jun 2025 09:35:35 +0800 Subject: [PATCH 1/3] fix: CRLF to LF --- .../built-in/cv/MGN_for_Pytorch/module.patch | 78 +++++++++---------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/ACL_PyTorch/built-in/cv/MGN_for_Pytorch/module.patch b/ACL_PyTorch/built-in/cv/MGN_for_Pytorch/module.patch index df089ee4aa..c520ec4a8e 100644 --- a/ACL_PyTorch/built-in/cv/MGN_for_Pytorch/module.patch +++ b/ACL_PyTorch/built-in/cv/MGN_for_Pytorch/module.patch @@ -1,39 +1,39 @@ -diff --git a/opt.py b/opt.py -index e9f70b5..16f4b11 100644 ---- a/opt.py -+++ b/opt.py -@@ -18,9 +18,17 @@ parser.add_argument('--freeze', - default=False, - help='freeze backbone or not ') - --parser.add_argument('--weight', -- default='weights/model.pt', -- help='load weights ') -+parser.add_argument('--model_path', -+ default='./model', -+ help='model weights path') -+ -+parser.add_argument('--model_weight_file', -+ default='model.pt', -+ help='model weights file name') -+ -+parser.add_argument("--onnx_file", -+ default="model_mkt1501_bs1.onnx", -+ help='onnx file name') - - parser.add_argument('--epoch', - default=500, -@@ -46,4 +54,13 @@ parser.add_argument("--batchtest", - default=8, - help='the batch size for test') - -+parser.add_argument("--batchonnx", -+ type=int, -+ default=1, -+ help='the batch size for convert onnx') -+ -+parser.add_argument("--result", -+ default="./result", -+ help='inference result path') -+ - opt = parser.parse_args() +diff --git a/opt.py b/opt.py +index e9f70b5..16f4b11 100644 +--- a/opt.py ++++ b/opt.py +@@ -18,9 +18,17 @@ parser.add_argument('--freeze', + default=False, + help='freeze backbone or not ') + +-parser.add_argument('--weight', +- default='weights/model.pt', +- help='load weights ') ++parser.add_argument('--model_path', ++ default='./model', ++ help='model weights path') ++ ++parser.add_argument('--model_weight_file', ++ default='model.pt', ++ help='model weights file name') ++ ++parser.add_argument("--onnx_file", ++ default="model_mkt1501_bs1.onnx", ++ help='onnx file name') + + parser.add_argument('--epoch', + default=500, +@@ -46,4 +54,13 @@ parser.add_argument("--batchtest", + default=8, + help='the batch size for test') + ++parser.add_argument("--batchonnx", ++ type=int, ++ default=1, ++ help='the batch size for convert onnx') ++ ++parser.add_argument("--result", ++ default="./result", ++ help='inference result path') ++ + opt = parser.parse_args() -- Gitee From 49f36297fe690f62c78479948c2ebe2b951ea2f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=B1=9F=E6=B1=9F?= Date: Mon, 23 Jun 2025 10:14:39 +0800 Subject: [PATCH 2/3] fix: LF to CRLF --- .../built-in/cv/MGN_for_Pytorch/module.patch | 78 +++++++++---------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/ACL_PyTorch/built-in/cv/MGN_for_Pytorch/module.patch b/ACL_PyTorch/built-in/cv/MGN_for_Pytorch/module.patch index c520ec4a8e..df089ee4aa 100644 --- a/ACL_PyTorch/built-in/cv/MGN_for_Pytorch/module.patch +++ b/ACL_PyTorch/built-in/cv/MGN_for_Pytorch/module.patch @@ -1,39 +1,39 @@ -diff --git a/opt.py b/opt.py -index e9f70b5..16f4b11 100644 ---- a/opt.py -+++ b/opt.py -@@ -18,9 +18,17 @@ parser.add_argument('--freeze', - default=False, - help='freeze backbone or not ') - --parser.add_argument('--weight', -- default='weights/model.pt', -- help='load weights ') -+parser.add_argument('--model_path', -+ default='./model', -+ help='model weights path') -+ -+parser.add_argument('--model_weight_file', -+ default='model.pt', -+ help='model weights file name') -+ -+parser.add_argument("--onnx_file", -+ default="model_mkt1501_bs1.onnx", -+ help='onnx file name') - - parser.add_argument('--epoch', - default=500, -@@ -46,4 +54,13 @@ parser.add_argument("--batchtest", - default=8, - help='the batch size for test') - -+parser.add_argument("--batchonnx", -+ type=int, -+ default=1, -+ help='the batch size for convert onnx') -+ -+parser.add_argument("--result", -+ default="./result", -+ help='inference result path') -+ - opt = parser.parse_args() +diff --git a/opt.py b/opt.py +index e9f70b5..16f4b11 100644 +--- a/opt.py ++++ b/opt.py +@@ -18,9 +18,17 @@ parser.add_argument('--freeze', + default=False, + help='freeze backbone or not ') + +-parser.add_argument('--weight', +- default='weights/model.pt', +- help='load weights ') ++parser.add_argument('--model_path', ++ default='./model', ++ help='model weights path') ++ ++parser.add_argument('--model_weight_file', ++ default='model.pt', ++ help='model weights file name') ++ ++parser.add_argument("--onnx_file", ++ default="model_mkt1501_bs1.onnx", ++ help='onnx file name') + + parser.add_argument('--epoch', + default=500, +@@ -46,4 +54,13 @@ parser.add_argument("--batchtest", + default=8, + help='the batch size for test') + ++parser.add_argument("--batchonnx", ++ type=int, ++ default=1, ++ help='the batch size for convert onnx') ++ ++parser.add_argument("--result", ++ default="./result", ++ help='inference result path') ++ + opt = parser.parse_args() -- Gitee From 06720bc78306391b0b8cafa08f65f8e45f0aede5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=B1=9F=E6=B1=9F?= Date: Mon, 23 Jun 2025 10:19:54 +0800 Subject: [PATCH 3/3] CRLF to LF --- .../built-in/cv/MGN_for_Pytorch/module.patch | 78 +++++++++---------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/ACL_PyTorch/built-in/cv/MGN_for_Pytorch/module.patch b/ACL_PyTorch/built-in/cv/MGN_for_Pytorch/module.patch index df089ee4aa..c520ec4a8e 100644 --- a/ACL_PyTorch/built-in/cv/MGN_for_Pytorch/module.patch +++ b/ACL_PyTorch/built-in/cv/MGN_for_Pytorch/module.patch @@ -1,39 +1,39 @@ -diff --git a/opt.py b/opt.py -index e9f70b5..16f4b11 100644 ---- a/opt.py -+++ b/opt.py -@@ -18,9 +18,17 @@ parser.add_argument('--freeze', - default=False, - help='freeze backbone or not ') - --parser.add_argument('--weight', -- default='weights/model.pt', -- help='load weights ') -+parser.add_argument('--model_path', -+ default='./model', -+ help='model weights path') -+ -+parser.add_argument('--model_weight_file', -+ default='model.pt', -+ help='model weights file name') -+ -+parser.add_argument("--onnx_file", -+ default="model_mkt1501_bs1.onnx", -+ help='onnx file name') - - parser.add_argument('--epoch', - default=500, -@@ -46,4 +54,13 @@ parser.add_argument("--batchtest", - default=8, - help='the batch size for test') - -+parser.add_argument("--batchonnx", -+ type=int, -+ default=1, -+ help='the batch size for convert onnx') -+ -+parser.add_argument("--result", -+ default="./result", -+ help='inference result path') -+ - opt = parser.parse_args() +diff --git a/opt.py b/opt.py +index e9f70b5..16f4b11 100644 +--- a/opt.py ++++ b/opt.py +@@ -18,9 +18,17 @@ parser.add_argument('--freeze', + default=False, + help='freeze backbone or not ') + +-parser.add_argument('--weight', +- default='weights/model.pt', +- help='load weights ') ++parser.add_argument('--model_path', ++ default='./model', ++ help='model weights path') ++ ++parser.add_argument('--model_weight_file', ++ default='model.pt', ++ help='model weights file name') ++ ++parser.add_argument("--onnx_file", ++ default="model_mkt1501_bs1.onnx", ++ help='onnx file name') + + parser.add_argument('--epoch', + default=500, +@@ -46,4 +54,13 @@ parser.add_argument("--batchtest", + default=8, + help='the batch size for test') + ++parser.add_argument("--batchonnx", ++ type=int, ++ default=1, ++ help='the batch size for convert onnx') ++ ++parser.add_argument("--result", ++ default="./result", ++ help='inference result path') ++ + opt = parser.parse_args() -- Gitee