|
|
@@ -41,6 +41,8 @@ def parse_args():
|
|
|
type=str, help='Trained state_dict file path to open')
|
|
|
parser.add_argument('--fuse_conv_bn', action='store_true', default=False,
|
|
|
help='fuse Conv & BN')
|
|
|
+ parser.add_argument('--rep_conv', action='store_true', default=False,
|
|
|
+ help='fuse Rep VGG block')
|
|
|
|
|
|
# Data setting
|
|
|
parser.add_argument('--root', default='D:/python_work/dataset/COCO/',
|
|
|
@@ -127,7 +129,7 @@ if __name__ == '__main__':
|
|
|
model = build_model(args, cfg, is_val=False)
|
|
|
|
|
|
# Load trained weight
|
|
|
- model = load_weight(model, args.weight, args.fuse_conv_bn)
|
|
|
+ model = load_weight(model, args.weight, args.fuse_conv_bn, args.rep_conv)
|
|
|
model.to(device).eval()
|
|
|
|
|
|
# Compute FLOPs and Params
|