diff --git a/samples/dnn/fast_neural_style.py b/samples/dnn/fast_neural_style.py index 22b8217b3a..43b8b121d6 100644 --- a/samples/dnn/fast_neural_style.py +++ b/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.') 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) if args.input: