From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 39FC14E307 for ; Mon, 10 Mar 2025 19:54:15 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 01C1F68DFD3; Mon, 10 Mar 2025 21:54:13 +0200 (EET) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BFB9068BD36 for ; Mon, 10 Mar 2025 21:54:06 +0200 (EET) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4393dc02b78so27757545e9.3 for ; Mon, 10 Mar 2025 12:54:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741636446; x=1742241246; darn=ffmpeg.org; h=thread-index:content-language:content-transfer-encoding :mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=Bbt5HFUYpzNT8lhzXd5To6nYZEa3SE7G6NUNK5jz6ZA=; b=nYX4vRCEeGP7lHVnYzKQgZq9cvMWqoONkqmlBD9gB0jI5iJdV9OkXSetCqURYdyikL cEV6E4SAGKqj4nb33IDd3rSgEeSiLPeRH74VfNEmZuyukAetHEQBw541Q+7ozIQrT/TG jbsdueGJYcZF6mQdmfwDFpEZtA/KyQJHaIbdPQb+5h65mQTlPR1JxmaH4rzV+uOAp5iX PVM0ggG4ew4fKUi7aKqxBUozZyGOPevVKfsSXsWBBj5sPOdt1y/BMrwhWpQUThL3vhch XwIiDKwymKH5GD8jihYGtoqnQTWqXP7UD3ivkKJ1z5QPLFEygWzzthRnTWXDMGxcdTk4 W+Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741636446; x=1742241246; h=thread-index:content-language:content-transfer-encoding :mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Bbt5HFUYpzNT8lhzXd5To6nYZEa3SE7G6NUNK5jz6ZA=; b=EXc600maq0AmNOjcPuewALbbaXIB6qN82/aHKN/op98EcX33sADx1v+9RW+KSC6ske g/TdVjK9k+iv/X8bZjjSj8Vdo0QsK5Oi5qtp4Vro/i8Ar/ZhkKSYYxB8You3sU/xmFC4 2e9TP2izV8C2nbcZ/b++/EAXylfcwVRIA7ZKgs1V4hMDP3n+QlpUPlSZyRtN9W4OZAz/ r6JSMidLdRDCpoezrfz8QpR0VlOyJmLDW2d4bI1VCmESdXsq/JH4un4fPehUGUZwssaF T5XwIz+Mp5NwBa4OyW0AOBt8Ts1LK1/FFhfz3TRWopAb0+BOaGSQeILo/KGXdYwwpt+p udkQ== X-Gm-Message-State: AOJu0Yx1ZZ1N8IKzTTzmIt/ZDoFXNiRijbC7JNLAhBPEEleo35aGCG/2 YjQBhBd4JOyPB5dC7IXzWzRCHrRe1Q1W3OZRW9qHRLeqKtwYWiJ9ayrZLg== X-Gm-Gg: ASbGncsqI4G8b1ot+RkalKd/mcCGMZ70fC1wOrfzw90knuoD2B+9Rilm7Cg2UWd1sW8 W08sMZx8O7CvoirENcQdPL+NfYhcpWK/kduajTmY4+8Eu2V6jurOerQaNHe0m6Ezp7nJH5E30cy K6rQr5/AmC/8TKmJx28nobXI03RMiRRW63tbnPL+xfI/DcwjWfc2MTzNY4e93F/3vFs7DP9zVSR ctCMitHM60IgIF6IT4fl/ciQIGl+JCB6wwDTSKqL9i5iut24RWt4FLT7dFaLG3E56X9oF1iJtPD TakjqqQ9GoHNfa7oDxxjmN8Dd9lQTSh9o+OeR4ZpTuM70g4XkBl2qrMqBIprFB6vhYPngNlOFCc gIJ1toPhgZtgIPVSV X-Google-Smtp-Source: AGHT+IEi8QKQ6eB0yVoljdn4kMOCgVKDy6zu0FHRBixm2iuu/J8nsfFG9PAuqRxrian4TMQzt7e3nA== X-Received: by 2002:a05:600c:1549:b0:43c:fd2b:823a with SMTP id 5b1f17b1804b1-43d01c1e0b2mr10211635e9.24.1741636445733; Mon, 10 Mar 2025 12:54:05 -0700 (PDT) Received: from MK2 (80-108-16-220.cable.dynamic.surfer.at. [80.108.16.220]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43cfa97399esm39228925e9.14.2025.03.10.12.54.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Mar 2025 12:54:05 -0700 (PDT) From: To: Date: Mon, 10 Mar 2025 20:54:05 +0100 Message-ID: <003d01db91f6$2e0ce160$8a26a420$@gmail.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Content-Language: en-at Thread-Index: AduR9ixCkFSXLqnBTrOyYMfXNuEC0A== Subject: [FFmpeg-devel] [PATCH v2 FFmpeg 9/20] libavfilter/dnn_interface.h: new model loading function load_model_with_tokenizer X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Signed-off-by: MaximilianKaindl --- libavfilter/dnn_interface.h | 40 ++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/libavfilter/dnn_interface.h b/libavfilter/dnn_interface.h index f284665768..914bd76240 100644 --- a/libavfilter/dnn_interface.h +++ b/libavfilter/dnn_interface.h @@ -1,22 +1,22 @@ /* - * Copyright (c) 2018 Sergey Lavrushkin - * - * This file is part of FFmpeg. - * - * FFmpeg is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * FFmpeg is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with FFmpeg; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ +* Copyright (c) 2018 Sergey Lavrushkin +* +* This file is part of FFmpeg. +* +* FFmpeg is free software; you can redistribute it and/or +* modify it under the terms of the GNU Lesser General Public +* License as published by the Free Software Foundation; either +* version 2.1 of the License, or (at your option) any later version. +* +* FFmpeg is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public +* License along with FFmpeg; if not, write to the Free Software +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +*/ /** * @file @@ -200,6 +200,10 @@ struct DNNModule { DNNBackendType type; // Loads model and parameters from given file. Returns NULL if it is not possible. DNNModel *(*load_model)(DnnContext *ctx, DNNFunctionType func_type, AVFilterContext *filter_ctx); + + // Loads model, tokenizer and parameters from given files. Returns NULL if it is not possible. + DNNModel *(*load_model_with_tokenizer)(DnnContext *ctx, DNNFunctionType func_type, const char** labels, int label_count, int* softmax_units, int softmax_units_count, const char* tokenizer_path, AVFilterContext *filter_ctx); + // Executes model with specified input and output. Returns the error code otherwise. int (*execute_model)(const DNNModel *model, DNNExecBaseParams *exec_params); // Retrieve inference result. -- 2.34.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".