changed readNetFromONNX to readNet

pull/24245/head
Alexander Lyulkov 1 year ago
parent ceeb01dce5
commit 910db5c9b7
  1. 2
      samples/dnn/fast_neural_style.py

@ -13,7 +13,7 @@ parser.add_argument('--height', default=-1, type=int, help='Resize input to spec
parser.add_argument('--median_filter', default=0, type=int, help='Kernel size of postprocessing blurring.') parser.add_argument('--median_filter', default=0, type=int, help='Kernel size of postprocessing blurring.')
args = parser.parse_args() args = parser.parse_args()
net = cv.dnn.readNetFromONNX(cv.samples.findFile(args.model)) net = cv.dnn.readNet(cv.samples.findFile(args.model))
net.setPreferableBackend(cv.dnn.DNN_BACKEND_OPENCV) net.setPreferableBackend(cv.dnn.DNN_BACKEND_OPENCV)
if args.input: if args.input:

Loading…
Cancel
Save