WO2023134275A1 - Model management method, model management service, client end, storage medium, and program - Google Patents

Model management method, model management service, client end, storage medium, and program Download PDF

Info

Publication number
WO2023134275A1
WO2023134275A1 PCT/CN2022/129066 CN2022129066W WO2023134275A1 WO 2023134275 A1 WO2023134275 A1 WO 2023134275A1 CN 2022129066 W CN2022129066 W CN 2022129066W WO 2023134275 A1 WO2023134275 A1 WO 2023134275A1
Authority
WO
WIPO (PCT)
Prior art keywords
model
service
target
target model
meta information
Prior art date
Application number
PCT/CN2022/129066
Other languages
French (fr)
Chinese (zh)
Inventor
罗春能
陈宇恒
Original Assignee
上海商汤智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海商汤智能科技有限公司 filed Critical 上海商汤智能科技有限公司
Publication of WO2023134275A1 publication Critical patent/WO2023134275A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/52Program synchronisation; Mutual exclusion, e.g. by means of semaphores

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Embodiments of the present invention provide a model management method, a model management service, a client end, a storage medium, and a program. The method comprises: if a model management service meets a preset synchronization condition, synchronizing a target model file and target model meta-information of a target model from an object storage service; and in response to a load request of a view resolution service, sending the target model file and the target model meta-information to the view resolution service.

Description

模型管理方法、模型管理服务、客户端、存储介质及程序Model management method, model management service, client, storage medium and program
相关申请的交叉引用Cross References to Related Applications
本公开实施例基于申请号为202210044896.8、申请日为2022年01月14日、申请名称为“模型管理方法、模型管理服务、客户端及存储介质”的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本公开作为参考。The embodiment of the present disclosure is based on the Chinese patent application with the application number 202210044896.8, the application date is January 14, 2022, and the application name is "model management method, model management service, client and storage medium", and requires the Chinese patent application The entire content of this Chinese patent application is hereby incorporated into this disclosure as a reference.
技术领域technical field
本申请实施例涉及机器学习领域,涉及但不限于一种模型管理方法、模型管理服务、客户端、存储介质及程序。The embodiment of the present application relates to the field of machine learning, involving but not limited to a model management method, model management service, client, storage medium and program.
背景技术Background technique
随着市场规模增大,视图分析接入规模也越来越大。这些模型在支持上千个视图解析服务的开放视觉平台上使用时,占用大量的磁盘空间,在反复传输过程中也占用大量带宽和磁盘空间,使得智能分析系统启动变慢,而且给存储系统和分布式系统整个网络系统带来极大压力。As the market scale increases, the access scale of view analysis is also increasing. When these models are used on an open vision platform that supports thousands of view analysis services, they occupy a large amount of disk space, and also occupy a large amount of bandwidth and disk space during repeated transmissions, which makes the startup of the intelligent analysis system slow down, and it is very difficult for the storage system and The distributed system brings great pressure to the entire network system.
发明内容Contents of the invention
本申请实施例提供一种模型管理方法。An embodiment of the present application provides a model management method.
本申请实施例的技术方案是这样实现的:The technical scheme of the embodiment of the application is realized in this way:
本申请实施例提供一种模型管理方法,应用于模型管理服务,所述方法包括:An embodiment of the present application provides a model management method, which is applied to model management services, and the method includes:
在所述模型管理服务满足预设同步条件的情况下,从对象存储服务中同步目标模型的目标模型文件和目标模型元信息;Synchronizing the target model file and target model meta information of the target model from the object storage service when the model management service satisfies a preset synchronization condition;
响应于视图解析服务的加载请求,将所述目标模型文件和所述目标模型元信息发送至所述视图解析服务。In response to the loading request of the view resolution service, the target model file and the target model meta information are sent to the view resolution service.
在一些实施例中,所述在所述模型管理服务满足预设同步条件的情况下,从对象存储服务中同步目标模型的目标模型文件和目标模型元信息之前,所述方法还包括:接收客户端发送的模型的上传请求;所述模型包括:模型文件和模型元信息;响应所述上传请求,将所述模型文件和所述模型元信息上传至所述对象存储服务。如此,通过响应客户端的多个上传请求,向对象存储服务上传多个模型的模型文件和模型元信息,使得对象存储服务中存储的多个模型文件和模型元信息。从而通过在对象存储服务中分离存储模型文件和模型元信息,能够加快模型的上传速度和传输速度。In some embodiments, when the model management service satisfies preset synchronization conditions, before synchronizing the target model file and target model meta information of the target model from the object storage service, the method further includes: receiving the client The upload request of the model sent by the terminal; the model includes: a model file and model meta information; in response to the upload request, upload the model file and the model meta information to the object storage service. In this way, by responding to multiple upload requests from the client, uploading model files and model meta information of multiple models to the object storage service, so that multiple model files and model meta information are stored in the object storage service. Therefore, by separately storing model files and model meta information in the object storage service, the upload speed and transmission speed of the model can be accelerated.
在一些实施例中,所述响应所述上传请求,将所述模型文件和所述模型元信息上传至所述对象存储服务,包括:响应所述上传请求,将所述模型文件和所述模型元信息按照不同的存储地址上传至所述对象存储服务。这样,将模型文件和模型元信息存储在对象存储服务的不同位置,能够实现模型文件和模型元信息的分开存储,节省传输带宽。In some embodiments, the uploading the model file and the model meta information to the object storage service in response to the upload request includes: responding to the upload request, uploading the model file and the model The meta information is uploaded to the object storage service according to different storage addresses. In this way, storing model files and model meta information in different locations of the object storage service can realize separate storage of model files and model meta information, saving transmission bandwidth.
在一些实施例中,所述响应所述上传请求,将所述模型文件和所述模型元信息按照不同的存储地址上传至所述对象存储服务,包括:基于所述模型元信息,确定所述对象存储服务中是否包括所述模型文件;响应于所述对象存储服务中不包括所述模型文件,将所述模型文件按照预设存储地址上传至所述对象存储服务;基于所述预设存储地址,对所述模型元信息进行更新;将更新后的模型元信息按照多级存储地址上传至所述对象存储服务。如此,通过将模型文件和模型元信息在对象存储服务中的分离存储,能够快速完成模型的上传,而且便于客户端基于该更新后的模型元信息定位模型文件。In some embodiments, the responding to the upload request, uploading the model file and the model meta information to the object storage service according to different storage addresses includes: based on the model meta information, determining the Whether the object storage service includes the model file; in response to the object storage service not including the model file, upload the model file to the object storage service according to the preset storage address; based on the preset storage address, to update the model meta information; upload the updated model meta information to the object storage service according to the multi-level storage address. In this way, by separately storing the model file and the model meta information in the object storage service, the upload of the model can be completed quickly, and it is convenient for the client to locate the model file based on the updated model meta information.
在一些实施例中,所述基于所述模型元信息,确定所述对象存储服务中是否包括所述模型文件,包括:确定所述模型元信息指向预设模型文件的引用路径;基于所述引用路径对所述模型文件进行校验,得到校验结果;基于所述校验结果,确定所述对象存储服务中是否包括所述模型文件。如此,通过模型元信息指向模型文件的引用路径,能够准确且便捷地确定对象存储服务中是否存在待上传的模型的模型文件。In some embodiments, the determining whether the model file is included in the object storage service based on the model meta information includes: determining a reference path where the model meta information points to a preset model file; based on the reference The path verifies the model file to obtain a verification result; based on the verification result, it is determined whether the object storage service includes the model file. In this way, through the reference path of the model file pointed to by the model meta information, it can be accurately and conveniently determined whether there is a model file of the model to be uploaded in the object storage service.
在一些实施例中,所述模型管理服务满足预设同步条件,至少包括以下之一:所述模型管理服务接收到所述对象存储服务发送的事件通知消息;其中,所述事件通知消息表征所述对象存储服务中的 模型变化事件;所述模型管理服务进行数据同步的历史时刻与当前时刻之间的时间间隔达到第一预设时长;所述模型管理服务在第二预设时长内未发起数据同步,且接收到客户端发送的模型同步指令;其中,所述第二预设时长大于所述第一预设时长。In some embodiments, the model management service satisfies preset synchronization conditions, including at least one of the following: the model management service receives an event notification message sent by the object storage service; wherein the event notification message represents the The model change event in the object storage service; the time interval between the historical moment and the current moment when the model management service performs data synchronization reaches the first preset duration; the model management service is not initiated within the second preset duration The data is synchronized, and a model synchronization instruction sent by the client is received; wherein, the second preset duration is longer than the first preset duration.
在一些实施例中,其中,所述在所述模型管理服务满足预设同步条件的情况下,从对象存储服务中同步目标模型的目标模型文件和目标模型元信息,包括:确定在所述预设同步条件下所述对象存储服务中的模型变化事件;获取所述对象存储服务中与所述模型变化事件匹配的第一模型列表;在所述第一模型列表中,确定所述目标模型文件和所述目标模型元信息;基于所述目标模型文件和所述目标模型元信息,同步所述模型管理服务中的第二模型列表;其中,模型列表包括多个模型文件,以及每一模型文件对应的至少一组模型元信息。如此,通过比较模型管理服务中的模型列表与对象存储服务中的模型列表,能够实现模型管理服务的精准同步。In some embodiments, in the case that the model management service satisfies the preset synchronization condition, synchronizing the target model file and the target model meta information of the target model from the object storage service includes: determining that in the preset Set a model change event in the object storage service under synchronization conditions; obtain a first model list matching the model change event in the object storage service; determine the target model file in the first model list and the target model meta information; based on the target model file and the target model meta information, synchronize the second model list in the model management service; wherein, the model list includes a plurality of model files, and each model file Corresponding to at least one set of model meta information. In this way, accurate synchronization of the model management service can be achieved by comparing the model list in the model management service with the model list in the object storage service.
在一些实施例中,在所述模型变化事件包括模型添加的情况下,在所述第一模型列表中,确定所述目标模型文件和所述目标模型元信息,包括:在所述第一模型列表中,确定与所述第二模型列表不同的所述目标模型文件和所述目标模型元信息;所述基于所述目标模型文件和所述目标模型元信息,同步所述模型管理服务中的第二模型列表,包括:从所述对象存储服务中下载所述目标模型文件和所述目标模型元信息;将所述目标模型文件和所述目标模型元信息添加至所述第二模型列表。如此,对象存储服务中上传目标模型文件之后,如果模型管理服务获取到上传消息,那么模型管理服务启动同步过程;从对象存储服务中将新上传的目标模型文件和所述目标模型元信息下载到本地,并添加到第二模型列表。从而多个模型管理服务之间能够共享模型文件和模型元信息,能够快速实现多个模型管理服务与对象存储服务的数据同步。In some embodiments, when the model change event includes model addition, determining the target model file and the target model meta information in the first model list includes: In the list, determine the target model file and the target model meta information different from the second model list; based on the target model file and the target model meta information, synchronize the model management service The second model list includes: downloading the target model file and the target model meta information from the object storage service; adding the target model file and the target model meta information to the second model list. In this way, after uploading the target model file in the object storage service, if the model management service obtains the upload message, then the model management service starts the synchronization process; downloads the newly uploaded target model file and the target model meta information from the object storage service to local, and added to the second model list. In this way, model files and model meta-information can be shared between multiple model management services, and data synchronization between multiple model management services and object storage services can be quickly realized.
在一些实施例中,在所述模型变化事件包括模型删除的情况下,所述在所述第一模型列表中,确定所述目标模型文件和所述目标模型元信息,包括:接收所述客户端发送的模型删除请求;其中,所述模型删除请求携带第三存储地址;基于所述第三存储地址,从所述第一模型列表中确定所述目标模型元信息;确定所述目标模型元信息在所述第一模型列表中指向的所述目标模型文件。如此,通过响应客户端的模型删除请求,能够通过删除接口删除目标模型文件和目标模型元信息在对象存储服务中的记录,这样,既能够准确删除对象存储服务的模型文件和元信息,还能够丰富模型管理系统能够实现的功能。In some embodiments, when the model change event includes model deletion, determining the target model file and the target model meta information in the first model list includes: receiving the client The model deletion request sent by the end; wherein, the model deletion request carries a third storage address; based on the third storage address, determine the target model element information from the first model list; determine the target model element The target model file pointed to by information in the first model list. In this way, by responding to the client's model deletion request, the records of the target model file and target model meta-information in the object storage service can be deleted through the deletion interface. In this way, the model file and meta-information of the object storage service can be deleted accurately, and the The functions that the model management system can realize.
在一些实施例中,所述基于所述目标模型文件和所述目标模型元信息,同步所述模型管理服务中的第二模型列表,包括:响应于所述模型删除请求,对所述对象存储服务中的所述目标模型元信息和所述目标模型文件进行删除,以使所述对象存储服务广播所述同步清理指令;接收所述对象存储服务在删除所述目标模型文件和所述目标模型元信息之后广播的所述同步清理指令;响应于所述同步清理指令,在述第二模型列表中删除所述目标模型文件和所述目标模型元信息。如此,对象存储服务中删除目标模型文件和目标元信息之后,向模型管理服务广播删除指令,从而多个模型管理服务能够同时删除该目标模型文件和目标模型元信息,能够快速实现多个模型管理服务与对象存储服务的数据同步。In some embodiments, the synchronizing the second model list in the model management service based on the target model file and the target model meta information includes: in response to the model deletion request, storing the Delete the target model meta-information and the target model file in the service, so that the object storage service broadcasts the synchronization cleaning instruction; receive the object storage service to delete the target model file and the target model The synchronization cleaning instruction broadcast after the meta information; in response to the synchronization cleaning instruction, deleting the target model file and the target model meta information in the second model list. In this way, after deleting the target model file and target meta-information in the object storage service, the deletion command is broadcast to the model management service, so that multiple model management services can delete the target model file and target model meta-information at the same time, and can quickly realize multiple model management The service synchronizes data with the object storage service.
在一些实施例中,所述响应于所述模型删除请求,对所述对象存储服务中的所述待删除模型元信息和所述待删除模型文件进行删除,包括:响应于所述模型删除请求,在所述对象存储服务中删除所述目标模型元信息;按照预设时长间隔,在所述对象存储服务中删除所述目标模型文件。如此,通过设定定时清理模型文件的间隔时长,模型管理服务可以每间隔一定时长清理一次要删除的模型文件;这样,能够减少频繁地执行删除操作,还能够定时对模型管理服务进行清理。In some embodiments, the responding to the model deletion request, and deleting the to-be-deleted model meta-information and the to-be-deleted model file in the object storage service includes: responding to the model deletion request , delete the target model meta information in the object storage service; delete the target model file in the object storage service according to a preset time interval. In this way, by setting the interval for regularly cleaning model files, the model management service can clean up the model files to be deleted at a certain interval; in this way, frequent deletion operations can be reduced, and the model management service can also be cleaned regularly.
在一些实施例中,所述方法还包括:响应于接收到所述客户端发送的模型元信息的检索请求,确定所述检索请求携带的多级存储地址的索引参数;基于所述多级存储地址的索引参数中的至少一级存储地址的索引参数,对所述对象存储服务中的模型元信息进行检索,得到匹配所述检索请求的待反馈模型元信息;将所述待反馈模型元信息反馈至所述客户端。如此,模型管理服务接收到检索请求后,通过多级存储地址的索引参数中的至少一级,实现对象存储服务中的模型元信息的模糊匹配检索,从而能够快速检索到匹配该检索请求的待反馈模型元信息,丰富模型管理系统的功能。In some embodiments, the method further includes: in response to receiving the retrieval request of the model meta information sent by the client, determining the index parameter of the multi-level storage address carried in the retrieval request; based on the multi-level storage At least one of the index parameters of the address stores the index parameters of the address, retrieves the model meta information in the object storage service, and obtains the model meta information to be fed back that matches the retrieval request; and stores the model meta information to be fed back feedback to the client. In this way, after the model management service receives the retrieval request, it realizes the fuzzy matching retrieval of the model meta information in the object storage service through at least one level of the index parameters of the multi-level storage address, so that it can quickly retrieve the pending information that matches the retrieval request. Feedback model meta information to enrich the functions of the model management system.
在一些实施例中,在所述对象存储服务中的模型变化事件包括模型添加的情况下,所述响应于视图解析服务的加载请求,将所述目标模型文件和所述目标模型元信息发送至所述视图解析服务,包括:接收所述视图解析服务在运行运行软件工具包的情况下发送的模型下载请求;其中,所述运行软件工具包包括所述模型管理服务的接口;响应于所述模型下载请求,通过所述接口将所述目标模型文件和所述目标模型元信息发送至所述视图解析服务。如此,在解析或者检索服务中集成该模型管理服务的客户端软件工具包,通过调用相关接口即可完成模型部署、分发和下载使用等。In some embodiments, when the model change event in the object storage service includes model addition, in response to the loading request of the view resolution service, the target model file and the target model meta information are sent to The view parsing service includes: receiving a model download request sent by the view parsing service when the running software toolkit is running; wherein, the running software toolkit includes the interface of the model management service; in response to the A model download request, sending the target model file and the target model meta information to the view parsing service through the interface. In this way, the client software toolkit of the model management service is integrated in the parsing or retrieval service, and the model deployment, distribution, download and use can be completed by calling the relevant interface.
本申请实施例提供一种模型管理方法,应用于客户端,所述方法包括:向模型管理服务发送目标模型的加载请求;所述目标模型包括:目标模型文件和目标模型元信息;接收所述模型管理服务基于所述加载请求发送的所述目标模型元信息在对象存储服务中的多级存储地址;基于所述多级存储地址,在所述对象存储服务中确定所述目标模型元信息和所述目标模型元信息对应的所述目标模型文件。如此,客户端能够从模型管理服务同步加载目标模型元信息和目标模型文件,从而能够快速实现客户端与模型管理服务之间的数据同步。An embodiment of the present application provides a model management method, which is applied to a client. The method includes: sending a loading request of a target model to a model management service; the target model includes: a target model file and target model meta information; receiving the The multi-level storage address in the object storage service of the target model meta-information sent by the model management service based on the loading request; based on the multi-level storage address, determine the target model meta-information and The target model file corresponding to the target model meta information. In this way, the client can synchronously load the meta information of the target model and the target model file from the model management service, so that data synchronization between the client and the model management service can be quickly realized.
在一些实施例中,所述基于所述多级存储地址,在所述对象存储服务中确定所述目标模型元信息和所述目标模型元信息对应的所述目标模型文件,包括:基于所述多级存储地址存储地址在所述对象存储服务中定位所述目标模型元信息;确定所述目标模型元信息携带的所述目标模型文件在所述对象存储服务中的存储地址;基于所述目标模型文件在所述对象存储服务中的存储地址,在所述对象存储服务中定位所述目标模型文件。如此,客户端按照确定出的目标模型文件在所述对象存储服务中的存储地址查询该目标模型元信息所对应的目标模型文件,使得客户端能够快速且准确地从对象存储服务查询目标模型元信息和目标模型文件。In some embodiments, the determining the target model meta-information and the target model file corresponding to the target model meta-information in the object storage service based on the multi-level storage address includes: based on the The multi-level storage address stores the address to locate the target model meta-information in the object storage service; determines the storage address of the target model file carried in the target model meta-information in the object storage service; based on the target The storage address of the model file in the object storage service, and the target model file is located in the object storage service. In this way, the client queries the target model file corresponding to the target model meta information according to the determined storage address of the target model file in the object storage service, so that the client can quickly and accurately query the target model meta from the object storage service Information and target model files.
在一些实施例中,所述客户端包括至少一个视图解析服务,所述基于所述多级存储地址,在所述对象存储服务中确定所述目标模型元信息和所述目标模型元信息对应的所述目标模型文件之后,所述方法还包括:缓存所述目标模型文件和所述目标模型元信息;将所述目标模型文件和所述目标模型元信息共享至所述至少一个视图解析服务。如此,通过在客户端缓存下载的目标模型文件和目标模型元信息,使得客户端的多个视图解析服务之间能够共享客户端缓存的目标模型文件和目标模型元信息In some embodiments, the client includes at least one view parsing service, and based on the multi-level storage address, the object storage service determines the target model meta-information and the target model meta-information corresponding After the target model file, the method further includes: caching the target model file and the target model meta information; sharing the target model file and the target model meta information to the at least one view resolution service. In this way, by caching the downloaded target model file and target model meta information on the client side, the target model file and target model meta information cached by the client can be shared between multiple view parsing services on the client side
本申请实施例提供一种模型管理服务,所述模型管理服务包括:An embodiment of the present application provides a model management service, the model management service includes:
第一同步模块,被配置为在所述模型管理服务满足预设同步条件的情况下,从对象存储服务中同步目标模型的目标模型文件和目标模型元信息;第一响应模块,被配置为响应于视图解析服务的加载请求,将所述目标模型文件和所述目标模型元信息发送至所述视图解析服务。The first synchronization module is configured to synchronize the target model file and target model meta information of the target model from the object storage service when the model management service meets the preset synchronization conditions; the first response module is configured to respond Sending the target model file and the target model meta information to the view resolution service in response to a loading request of the view resolution service.
本申请实施例提供一种客户端,所述客户端包括:处理器、存储有所述处理器可执行指令的存储器;其中,所述处理器被配置为:向模型管理服务发送目标模型的加载请求;所述目标模型包括:目标模型文件和目标模型元信息;接收所述模型管理服务基于所述加载请求发送的所述目标模型元信息在对象存储服务中的存储地址;基于所述存储地址,在所述对象存储服务中确定所述目标模型元信息和所述目标模型元信息对应的所述目标模型文件。An embodiment of the present application provides a client, the client includes: a processor, and a memory storing instructions executable by the processor; wherein the processor is configured to: send the load of the target model to the model management service request; the target model includes: target model file and target model meta information; receive the storage address in the object storage service of the target model meta information sent by the model management service based on the load request; based on the storage address , determining the target model meta-information and the target model file corresponding to the target model meta-information in the object storage service.
对应地,本申请实施例提供一种计算机存储介质,所述计算机存储介质上存储有计算机可执行指令,该计算机可执行指令被执行后,能够实现上述的模型管理方法。Correspondingly, an embodiment of the present application provides a computer storage medium, on which computer-executable instructions are stored. After the computer-executable instructions are executed, the above-mentioned model management method can be implemented.
本公开实施例还提供一种计算机程序,所述计算机程序包括计算机可读代码,在所述计算机可读代码在电子设备中运行的情况下,所述电子设备的处理器执行上述任一实施例所述的模型管理方法。An embodiment of the present disclosure also provides a computer program, where the computer program includes computer readable codes, and when the computer readable codes run in an electronic device, the processor of the electronic device executes any of the above embodiments The model management method described.
本申请实施例提供一种模型管理方法、模型管理服务、客户端、存储介质及程序,在模型管理服务满足预设同步条件的情况下,模型管理服务与对象存储服务进行数据同步,从对象存储服务中同步目标模型的目标模型文件和目标模型元信息。这样,将一个目标模型的目标模型文件和目标模型元信息以分离的方式存储在对象存储服务中,能够提高传输带宽,从而提高智能分析系统的启动速度。接收到视图解析服务的加载请求后,通过模型管理服务将目标模型文件和目标模型元信息同步到视图解析服务;如此,通过多级缓存分发的方式进行数据同步,能够满足更大规模更大压力的模型的需求。The embodiment of the present application provides a model management method, model management service, client, storage medium, and program. When the model management service meets the preset synchronization conditions, the model management service and the object storage service perform data synchronization, and the data from the object storage The target model file and target model meta information of the target model are synchronized in the service. In this way, storing the target model file and the target model meta-information of a target model separately in the object storage service can increase the transmission bandwidth, thereby improving the startup speed of the intelligent analysis system. After receiving the loading request from the view analysis service, the target model file and target model meta-information are synchronized to the view analysis service through the model management service; in this way, data synchronization through multi-level cache distribution can meet larger scale and greater pressure model requirements.
为使本公开的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments will be described in detail below together with the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本公开实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,此处的附图被并入说明书中并构成本说明书中的一部分,这些附图示出了符合本公开的实施例,并与说明书一起用于说明本公开的技术方案。应当理解,以下附图仅示出了本公开的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present disclosure more clearly, the following will briefly introduce the accompanying drawings used in the embodiments. The accompanying drawings here are incorporated into the specification and constitute a part of the specification. The drawings show the embodiments consistent with the present disclosure, and are used together with the description to explain the technical solution of the present disclosure. It should be understood that the following drawings only show some embodiments of the present disclosure, and therefore should not be regarded as limiting the scope. For those skilled in the art, they can also make From these drawings other related drawings are obtained.
图1为本申请实施例提供的模型管理方法的实现流程示意图;FIG. 1 is a schematic diagram of the implementation process of the model management method provided by the embodiment of the present application;
图2为本申请实施例提供的模型管理方法的另一实现流程示意图;FIG. 2 is a schematic flow diagram of another implementation of the model management method provided by the embodiment of the present application;
图3为本申请实施例提供的模型管理方法的另一实现流程示意图;FIG. 3 is a schematic flow diagram of another implementation of the model management method provided by the embodiment of the present application;
图4为本申请实施例提供的模型管理方法的实现流程示意图;FIG. 4 is a schematic diagram of the implementation flow of the model management method provided by the embodiment of the present application;
图5为本申请实施例提供的模型管理方法的实现架构图;FIG. 5 is an implementation architecture diagram of the model management method provided by the embodiment of the present application;
图6为本申请实施例提供的对象管理方法的实现流程交互示意图;FIG. 6 is an interactive schematic diagram of the implementation process of the object management method provided by the embodiment of the present application;
图7为本申请实施例模型管理服务的结构组成示意图;FIG. 7 is a schematic diagram of the structural composition of the model management service of the embodiment of the present application;
图8为本申请实施例客户端的组成结构示意图。FIG. 8 is a schematic diagram of the composition and structure of the client according to the embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对发明的具体技术方案做进一步详细描述。以下实施例用于说明本申请,但不用来限制本申请的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the specific technical solutions of the invention will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following examples are used to illustrate the present application, but not to limit the scope of the present application.
在以下的描述中,涉及到“一些实施例”,其描述了所有可能实施例的子集,但是可以理解,“一些实施例”可以是所有可能实施例的相同子集或不同子集,并且可以在不冲突的情况下相互结合。In the following description, references to "some embodiments" describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or a different subset of all possible embodiments, and Can be combined with each other without conflict.
在以下的描述中,所涉及的术语“第一\第二\第三”仅仅是是区别类似的对象,不代表针对对象的特定排序,可以理解地,“第一\第二\第三”在允许的情况下可以互换特定的顺序或先后次序,以使这里描述的本申请实施例能够以除了在这里图示或描述的以外的顺序实施。In the following description, the term "first\second\third" is only used to distinguish similar objects, and does not represent a specific ordering of objects. Understandably, "first\second\third" Where permitted, the specific order or sequencing may be interchanged such that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein.
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中所使用的术语只是为了描述本申请实施例的目的,不是旨在限制本申请。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application, and are not intended to limit the present application.
对本申请实施例进行进一步详细说明之前,对本申请实施例中涉及的名词和术语进行说明,本申请实施例中涉及的名词和术语适用于如下的解释。Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are described, and the nouns and terms involved in the embodiments of the present application are applicable to the following explanations.
1)人工智能(Artificial Intelligence,AI),是研究、开发用于模拟、延伸和扩展人的智能的理论、方法、技术及应用系统的一门新的技术科学。人工智能是计算机科学的一个分支,试图了解智能的实质,并生产出一种新的能以人类智能相似的方式做出反应的智能机器,该领域的研究包括机器人、语言识别、图像识别、自然语言处理和专家系统等。人工智能从诞生以来,理论和技术日益成熟,应用领域也不断扩大。人工智能可以对人的意识、思维的信息过程的模拟。1) Artificial Intelligence (AI) is a new technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence. Artificial intelligence is a branch of computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that responds in a manner similar to human intelligence. Research in this field includes robotics, language recognition, image recognition, natural language processing and expert systems, etc. Since the birth of artificial intelligence, the theory and technology have become increasingly mature, and the application fields have also continued to expand. Artificial intelligence can simulate the information process of human consciousness and thinking.
2)计算机视觉,是指用摄影机和电脑代替人眼对目标进行识别、跟踪和测量等机器视觉,并进一步做图形处理,使电脑处理成为更适合人眼观察或传送给仪器检测的图像。2) Computer vision refers to machine vision that uses cameras and computers instead of human eyes to identify, track and measure targets, and further performs graphics processing to make computer processing images that are more suitable for human eyes to observe or sent to instruments for detection.
3)对象存储,用来描述解决和处理离散单元的方法的通用术语。对象在一个层结构中不会再有层级结构,是以扩展元数据为特征的。3) Object storage, a generic term used to describe methods of addressing and processing discrete units. Objects will no longer have a hierarchical structure in a layer structure, which is characterized by extended metadata.
4)元信息,是关于信息的信息,元信息允许服务器提供所发送数据的信息;在一些实施例中,如超文本传输协议可以提高所发的对象语言和对象,也可以用元信息来实现有条件请求以及报告事务完成。收到数据的浏览器可以根据元信息确定服务器发来的是什么内容,预料有什么数据,确知是否接收完整的数据,以及过程中是否出错,这样客户就可以知道传输对象的类型。在本申请实施例中,模型元信息用于描述模型的详细信息,包括模型所适用的硬件信息、软件信息以及模型内的网络参数等。4) Meta information is information about information, and meta information allows the server to provide information about the data sent; in some embodiments, such as hypertext transfer protocol can improve the object language and objects sent, and can also be implemented with meta information Conditionally request and report transaction completion. The browser receiving the data can determine what content is sent by the server based on the meta-information, what data is expected, whether to receive complete data, and whether there is an error in the process, so that the client can know the type of the transmission object. In this embodiment of the present application, the model meta information is used to describe the detailed information of the model, including the hardware information, software information, and network parameters in the model to which the model is applicable.
下面说明本申请实施例提供的模型管理设备的示例性应用,本申请实施例提供的设备可以实施为具有数据处理功能的笔记本电脑,平板电脑,台式计算机,移动设备(例如,个人数字助理,专用消息设备,便携式游戏设备)等各种类型的用户终端,也可以实施为服务器。下面,将说明设备实施为 终端或服务器时示例性应用。The exemplary application of the model management device provided by the embodiment of the present application is described below. The device provided by the embodiment of the present application can be implemented as a notebook computer, a tablet computer, a desktop computer, a mobile device (for example, a personal digital assistant, a dedicated Various types of user terminals such as messaging devices, portable game devices, etc., can also be implemented as servers. Below, an exemplary application when the device is implemented as a terminal or a server will be described.
该方法可以应用于电子设备,该方法所实现的功能可以通过电子设备中的处理器调用程序代码来实现,当然程序代码可以保存在计算机存储介质中,可见,该电子设备至少包括处理器和存储介质。The method can be applied to electronic equipment, and the functions realized by the method can be realized by calling program codes by the processor in the electronic equipment. Of course, the program codes can be stored in computer storage media. It can be seen that the electronic equipment includes at least a processor and storage medium.
本申请实施例提供一种模型管理方法,该方法应用于模型管理服务,如图1所示,结合如图1所示步骤进行说明:The embodiment of this application provides a model management method, which is applied to model management services, as shown in Figure 1, and will be described in conjunction with the steps shown in Figure 1:
步骤S101,在所述模型管理服务满足预设同步条件的情况下,从对象存储服务中同步目标模型的目标模型文件和目标模型元信息。Step S101, if the model management service satisfies the preset synchronization condition, synchronize the target model file and the target model meta information of the target model from the object storage service.
在一些实施例中,预设同步条件用于表示模型管理服务与对象存储服务进行数据同步的条件;模型管理服务满足预设同步条件可以理解为模型管理服务满足与对象存储服务进行数据同步的条件;因此,在模型管理服务满足预设同步条件的情况下,模型管理服务启动同步机制,实现与对象存储服务的数据同步。模型管理服务用于对上传到模型管理系统的算法模型进行管理。对象存储服务用于接收客户端上传的模型的模型文件和模型元信息,并通过分开存储的方式,在存储桶中存储模型的模型文件和模型元信息。目标模型可以是任一算法模型,比如,实现目标识别的神经网络模型,或者进行语义分割的深度神经网络模型等。In some embodiments, the preset synchronization condition is used to indicate the condition for the model management service to perform data synchronization with the object storage service; the model management service meeting the preset synchronization condition can be understood as the model management service meeting the condition for data synchronization with the object storage service ; Therefore, when the model management service meets the preset synchronization conditions, the model management service starts the synchronization mechanism to realize data synchronization with the object storage service. The model management service is used to manage the algorithm models uploaded to the model management system. The object storage service is used to receive the model file and model meta information of the model uploaded by the client, and store the model file and model meta information of the model in the storage bucket by means of separate storage. The target model can be any algorithm model, for example, a neural network model for target recognition, or a deep neural network model for semantic segmentation.
在一些可能的实现方式中,将需要上传的模型设计为模型元信息和模型文件,其中,模型元信息描述模型的所有信息,比如,模型应用的硬件,加速卡,运行环境,模型名称等。模型元信息中还可以包括开发人员添加的硬件、软件或程序的描述信息等。模型文件为原始二进制模型文件,包括该模型的实现程序和实现工作流等;模型元信息和模型文件二者分开存储,且不同的模型元信息可以指向(或引用)同一个模型文件。在一个具体例子中,以目标模型为目标识别的神经网络模型为例,模型文件为该神经网络模型的实现程序以及算法工作流等二进制数据,模型元信息包括该神经网络模型适用的硬件参数,加速卡的相关参数、运行环境、存储路径、程序的描述信息以及该神经网络模型的名称等。In some possible implementations, the model to be uploaded is designed as model meta information and model files, wherein the model meta information describes all information of the model, such as the hardware used by the model, accelerator card, operating environment, model name, etc. The model meta-information may also include description information of hardware, software, or programs added by developers. The model file is the original binary model file, including the implementation program and implementation workflow of the model; the model meta-information and the model file are stored separately, and different model meta-information can point to (or reference) the same model file. In a specific example, taking the target model as an example of a neural network model for target recognition, the model file is the binary data such as the implementation program and algorithm workflow of the neural network model, and the model meta information includes the applicable hardware parameters of the neural network model, Relevant parameters of the accelerator card, operating environment, storage path, description information of the program, and the name of the neural network model, etc.
在一些可能的实现方式中,客户端发出模型上传请求后,将该模型的模型元信息和模型文件均上传至对象存储服务,并且在对象存储服务中分开存储模型元信息和模型文件;这样,将模型的模型元信息和模型文件进行分离,能够节省存储空间和传输带宽。In some possible implementations, after the client sends a model upload request, both the model meta-information and the model file of the model are uploaded to the object storage service, and the model meta-information and the model file are stored separately in the object storage service; thus, Separating model meta information and model files can save storage space and transmission bandwidth.
步骤S102,响应于视图解析服务的加载请求,将所述目标模型文件和所述目标模型元信息发送至所述视图解析服务。Step S102, in response to the loading request of the view resolution service, sending the target model file and the target model meta information to the view resolution service.
在一些实施例中,视图解析服务使用模型管理服务提供的软件工具包,下载模型目标模型文件和所述目标模型元信息。视图解析服务在计算机视觉的开放视觉平台上,对接入的模型中输入的数据(比如,图像或者视频数据等)进行分析,以实现该模型的功能。比如,以对交通图像中的发生交通事故识别为例,识别交通视频中或者图像中是否有交通事故;该过程可以分为两个部分,首先,将程序代码写到一个业务逻辑(即实现交通事故识别的业务逻辑),将交通视频或图像输入到该模型;然后,对输入的视频或图像进行解析解码,解码出来之后,分析每一帧;最后,将每一帧的车辆检测框,输入到算法模型相关的算法中,算法启动的时候就会调用该模型,加载网络参数、算子,以推理出来是否存在交通事故。In some embodiments, the view parsing service uses a software toolkit provided by the model management service to download a model target model file and the target model meta information. The view analysis service analyzes the input data (for example, image or video data, etc.) in the connected model on the open vision platform of computer vision, so as to realize the function of the model. For example, taking the identification of traffic accidents in traffic images as an example, identify whether there are traffic accidents in traffic videos or images; this process can be divided into two parts. Business logic of accident recognition), input traffic video or image into the model; then, analyze and decode the input video or image, analyze each frame after decoding; finally, input the vehicle detection frame of each frame into In the algorithm related to the algorithm model, the model will be called when the algorithm is started, and the network parameters and operators will be loaded to infer whether there is a traffic accident.
在一些可能的实现方式中,模型管理服务从对象存储服务同步目标模型文件和目标模型元信息之,以供视图解析服务根据引用路径从模型管理服务下载目标模型文件和目标模型元信息。模型管理服务提供软件工具包,视图解析服务集成该软件工具包,并能够调用该工具包中的函数。运行中的视图解析服务向模型管理服务发送模型下载请求,以通过该模型管理服务的本地磁盘读取目标模型文件和目标模型元信息,实现将目标模型文件和目标模型元信息同步至视图解析服务。In some possible implementation manners, the model management service synchronizes the target model file and target model meta information from the object storage service, so that the view parsing service downloads the target model file and target model meta information from the model management service according to the reference path. The model management service provides a software toolkit, and the view parsing service integrates the software toolkit and can call functions in the toolkit. The running view parsing service sends a model download request to the model management service to read the target model file and target model meta information through the local disk of the model management service, so as to synchronize the target model file and target model meta information to the view parsing service .
在本申请实施例中,在模型管理服务满足预设同步条件的情况下,与对象存储服务进行数据同步,从对象存储服务中同步目标模型的目标模型文件和目标模型元信息。这样,将一个目标模型的目标模型文件和目标模型元信息以分离的方式存储在对象存储服务中,能够节省存储空间和传输带宽,从而提高智能分析系统的启动速度。通过模型管理服务将目标模型文件和目标模型元信息同步到视图解析服务。这样,模型管理服务从对象存储服务中同步目标模型文件和目标模型元信息,并将目标模型文 件和目标模型元信息同步至视图解析服务,如此,通过多级缓存分发的方式进行数据同步,能够满足更大规模更大压力的模型的需求。In the embodiment of this application, when the model management service meets the preset synchronization conditions, data synchronization is performed with the object storage service, and the target model file and target model meta information of the target model are synchronized from the object storage service. In this way, storing the target model file and the target model meta-information of a target model separately in the object storage service can save storage space and transmission bandwidth, thereby improving the startup speed of the intelligent analysis system. Synchronize the target model file and target model meta information to the view parsing service through the model management service. In this way, the model management service synchronizes the target model file and target model meta information from the object storage service, and synchronizes the target model file and target model meta information to the view parsing service. In this way, data synchronization through multi-level cache distribution can Meet the needs of models with larger scale and higher pressure.
在一些实施例中,通过响应客户端的模型上传请求,将多个模型的模型文件和模型元信息上传到对象存储服务,即在上述步骤S101之前,还包括如图2所示的步骤S201和S202,结合图2所示的步骤进行以下说明:In some embodiments, by responding to the client's model upload request, the model files and model meta information of multiple models are uploaded to the object storage service, that is, before the above step S101, steps S201 and S202 as shown in FIG. 2 are also included. , in conjunction with the steps shown in Figure 2 for the following description:
步骤S201,接收客户端发送的模型的上传请求。Step S201, receiving a model upload request sent by a client.
在一些实施例中,模型包括:模型文件和模型元信息。在客户端将需要上传的模型分离为模型文件和模型元信息,进行上传。将该模型的模型文件和模型元信息携带于上传请求。模型管理服务接收客户端发送的上传请求,以响应该上传请求管理对象存储服务。In some embodiments, the model includes: a model file and model meta information. On the client side, the model to be uploaded is separated into a model file and model meta information, and uploaded. Carry the model file and model meta information of the model in the upload request. The model management service receives the upload request sent by the client, and manages the object storage service in response to the upload request.
步骤S202,响应所述上传请求,将所述模型文件和所述模型元信息上传至所述对象存储服务。Step S202, uploading the model file and the model meta information to the object storage service in response to the upload request.
在一些实施例中,模型管理服务响应于该上传请求,将上传请求上携带的模型文件和模型元信息上传至对象存储服务。对象存储服务接收到上传的模型文件和模型元信息之后,以不同存储路径存储模型文件和模型元信息。这样,通过响应客户端的多个上传请求,向对象存储服务上传多个模型的模型文件和模型元信息,使得对象存储服务中存储的多个模型文件和模型元信息。如此,通过在对象存储服务中分离存储模型文件和模型元信息,能够加快模型的上传速度和传输速度。In some embodiments, the model management service uploads the model file and model meta information carried in the upload request to the object storage service in response to the upload request. After the object storage service receives the uploaded model files and model meta information, it stores the model files and model meta information in different storage paths. In this way, by responding to multiple upload requests from the client, uploading model files and model meta information of multiple models to the object storage service, so that multiple model files and model meta information are stored in the object storage service. In this way, by separately storing model files and model meta-information in the object storage service, the uploading speed and transmission speed of the model can be accelerated.
在一些实施例中,按照不同的存储路径存储模型文件和模型元信息,即上述步骤S202可以是响应所述上传请求,将所述模型文件和所述模型元信息按照不同的存储地址上传至所述对象存储服务。这样,将模型文件和模型元信息存储在对象存储服务的不同位置,能够实现模型文件和模型元信息的分开存储,节省传输带宽。In some embodiments, the model file and model meta information are stored according to different storage paths, that is, the above step S202 may be to respond to the upload request and upload the model file and the model meta information to the The object storage service described above. In this way, storing model files and model meta information in different locations of the object storage service can realize separate storage of model files and model meta information, saving transmission bandwidth.
在一些实施例中,接收到上传请求之后,通过判断对象存储服务中是否已经存在该上传请求对应模型的模型文件,确定是否将该模型的模型文件和元信息上传至对象存储服务,即上述步骤S202可以通过以下步骤S221至S224(图示未示出)实现:In some embodiments, after receiving the upload request, determine whether to upload the model file and meta information of the model to the object storage service by judging whether the model file corresponding to the upload request already exists in the object storage service, that is, the above steps S202 can be realized through the following steps S221 to S224 (not shown in the figure):
步骤S221,基于所述模型元信息,确定所述对象存储服务中是否包括所述模型文件。Step S221, based on the model meta information, determine whether the object storage service includes the model file.
在一些实施例中,接收到客户端的模型上传请求之后,模型管理服务按照需要上传的模型的模型元信息,在对象存储服务中查找是否有与该模型元信息相匹配的模型文件;如果对象存储服务中存在与该模型元信息相匹配的模型文件,则不需要将该模型文件上传至对象存储服务;如果对象存储服务中不存在与该模型元信息相匹配的模型文件,将该模型文件上传至对象存储服务。In some embodiments, after receiving the model upload request from the client, the model management service searches the object storage service for a model file matching the model meta information according to the model meta information of the model to be uploaded; if the object storage If there is a model file matching the model meta information in the service, it is not necessary to upload the model file to the object storage service; if there is no model file matching the model meta information in the object storage service, upload the model file to the object storage service.
在一些可能的实现方式中,通过校验模型元信息对预设模型文件的引用路径与该模型文件,能够确定对象存储服务中是否包括所述模型文件,即上述步骤S221可以通过以下步骤实现:In some possible implementations, by checking the reference path of the model meta-information to the preset model file and the model file, it can be determined whether the object storage service includes the model file, that is, the above step S221 can be implemented by the following steps:
第一步,确定所述模型元信息指向预设模型文件的引用路径。The first step is to determine the reference path of the model meta-information pointing to the preset model file.
在一些实施例中,预设模型文件可以是该模型元信息在对象存储服务中所指向的模型文件,还可以理解为该预设模型文件可以是该模型元信息在对象存储服务中引用的模型文件。每一个模型元信息均会指向一个模型文件,即每一个模型元信息均会引用一个模型文件,不同的模型元信息也可以引用同一个模型文件;确定待上传的模型的模型元信息之后,可以确定该模型元信息在对象存储服务中指向自身匹配的预设模型文件的引用路径。In some embodiments, the preset model file may be the model file pointed to by the model meta information in the object storage service, and it can also be understood that the preset model file may be the model referenced by the model meta information in the object storage service document. Each model meta information will point to a model file, that is, each model meta information will refer to a model file, and different model meta information can also refer to the same model file; after determining the model meta information of the model to be uploaded, you can Determine the reference path that the model meta information points to the preset model file that matches itself in the object storage service.
第二步,基于所述引用路径对所述模型文件进行校验,得到校验结果。In the second step, the model file is verified based on the reference path, and a verification result is obtained.
在一些实施例中,按照该引用路径可以在对象存储服务中,检索该引用路径下是否存在模型文件,以及存在的模型文件是否为待上传的模型的模型文件,从而实现对模型文件的校验。基于此,校验结果为该引用路径下不存在模型文件,或该引用路径下的模型文件不是待上传的模型的模型文件,或该引用路径下的模型文件为待上传的模型的模型文件。In some embodiments, according to the reference path, it can be searched in the object storage service whether there is a model file under the reference path, and whether the existing model file is the model file of the model to be uploaded, so as to realize the verification of the model file . Based on this, the verification result is that there is no model file under the reference path, or the model file under the reference path is not the model file of the model to be uploaded, or the model file under the reference path is the model file of the model to be uploaded.
第三步,基于所述校验结果,确定所述对象存储服务中是否包括所述模型文件。The third step is to determine whether the object storage service includes the model file based on the verification result.
在一些实施例中,如果校验结果为对象存储服务在该引用路径下不存在模型文件,或该引用路径下的模型文件不是待上传的模型的模型文件,确定对象存储服务中不包括所述模型文件;如果校验结果为该引用路径下的模型文件为待上传的模型的模型文件,确定对象存储服务中包括所述模型文件,即待上传的模型已经存在于对象存储服务。如此,通过模型元信息指向模型文件的引用路径,能够准 确且便捷地确定对象存储服务中是否存在待上传模型的模型文件。In some embodiments, if the verification result is that the object storage service does not have a model file under the reference path, or the model file under the reference path is not a model file of the model to be uploaded, it is determined that the object storage service does not include the Model file; if the verification result shows that the model file under the reference path is the model file of the model to be uploaded, it is determined that the object storage service includes the model file, that is, the model to be uploaded already exists in the object storage service. In this way, through the reference path of the model file pointed to by the model meta information, it can be accurately and conveniently determined whether there is a model file of the model to be uploaded in the object storage service.
步骤S222,响应于所述对象存储服务中不包括所述模型文件,将所述模型文件按照预设存储地址上传至所述对象存储服务。Step S222, in response to the object storage service not including the model file, upload the model file to the object storage service according to a preset storage address.
在一些实施例中,如果对象存储服务中不包括模型文件,说明该上传请求所对应的待上传的模型还未上传至对象存储服务,因此,将该模型文件按照预设存储地址上传至对象存储服务,并存储在对象存储服务的存储桶或本地磁盘中。In some embodiments, if the object storage service does not include the model file, it means that the model to be uploaded corresponding to the upload request has not been uploaded to the object storage service. Therefore, upload the model file to the object storage according to the preset storage address service and stored in the object storage bucket or local disk.
步骤S223,基于所述预设存储地址,对所述模型元信息进行更新。Step S223, based on the preset storage address, update the model meta-information.
在一些实施例中,模型管理服务获取该模型文件在对象存储服务中的存储地址,比如,该模型文件存储在对象存储服务的本地磁盘,那么将该本地存储的路径作为预设存储地址。将该预设存储地址添加至模型元信息,实现对模型元信息的更新,这样,更新后的模型元信息中包括模型的详细描述信息以及用户自定义的元信息。In some embodiments, the model management service obtains the storage address of the model file in the object storage service, for example, the model file is stored in a local disk of the object storage service, then the local storage path is used as the preset storage address. The preset storage address is added to the model meta-information to update the model meta-information. In this way, the updated model meta-information includes detailed description information of the model and user-defined meta-information.
步骤S224,将更新后的模型元信息按照多级存储地址上传至所述对象存储服务。Step S224, uploading the updated model meta information to the object storage service according to the multi-level storage address.
在一些实施例中,模型管理服务按照预设存储地址对模型元信息进行更新之后,将更新后的模型元信息,即携带该预设存储地址的模型元信息上传至对象存储服务。In some embodiments, after the model management service updates the model meta information according to the preset storage address, the updated model meta information, that is, the model meta information carrying the preset storage address is uploaded to the object storage service.
在一些可能的实现方式中,模型管理服务将更新后的模型元信息上传至对象存储服务之后,获取该更新后的模型元信息在对象存储服务中的存储地址,即多级存储地址;多级存储地址可以与预设存储地址相同,也可以不同。比如,更新后的模型元信息按照多级存储地址进行存储,模型文件按照固定地址存储,源存储是在对象存储服务中,其他同步过来数据通过多级磁盘缓存。多级存储地址即为多级存储目录,包括以下至少两级:类型→子类型→硬件类型→软件类型→模型名称。按照“类型→子类型→硬件类型→软件类型→模型名称”中的至少两级,在对象存储服务中存储该模型元信息。In some possible implementations, after the model management service uploads the updated model meta information to the object storage service, it obtains the storage address of the updated model meta information in the object storage service, that is, the multi-level storage address; multi-level The storage address can be the same as or different from the preset storage address. For example, the updated model meta information is stored according to the multi-level storage address, the model file is stored according to the fixed address, the source storage is in the object storage service, and other synchronized data are stored through the multi-level disk cache. The multi-level storage address is the multi-level storage directory, including at least two levels: type→subtype→hardware type→software type→model name. According to at least two levels of "type→subtype→hardware type→software type→model name", the model meta information is stored in the object storage service.
在本申请实施例中,通过校验对象存储服务中是否已经存储需要上传的模型文件,在对象存储服务中未存储需要上传的模型文件的情况下,将模型文件上传至对象存储服务中;并且通过模型文件的存储地址更新模型元信息,从而能够将更新后的模型元信息独立于模型文件存储在对象存储服务中,实现了模型文件和模型元信息在对象存储服务中的分离存储,能够快速完成模型的上传,而且便于客户端能够基于该更新后的模型元信息定位模型文件。In the embodiment of the present application, by checking whether the model file to be uploaded has been stored in the object storage service, if the model file to be uploaded is not stored in the object storage service, upload the model file to the object storage service; and Update the model meta information through the storage address of the model file, so that the updated model meta information can be stored in the object storage service independently of the model file, and the separate storage of the model file and model meta information in the object storage service can be realized quickly. The upload of the model is completed, and it is convenient for the client to locate the model file based on the updated model meta information.
在一些实施例中,模型管理服务在达到以下任一预设同步条件的情况下,启动同步机制,从对象存储服务中同步目标模型文件和目标模型元信息,其中,预设同步条件至少包括以下之一:In some embodiments, when any of the following preset synchronization conditions are met, the model management service starts a synchronization mechanism to synchronize the target model file and target model meta information from the object storage service, wherein the preset synchronization conditions include at least the following one:
条件一:所述模型管理服务接收到所述对象存储服务发送的事件通知消息。Condition 1: The model management service receives the event notification message sent by the object storage service.
这里,所述事件通知消息表征所述对象存储服务中的模型变化事件;该模型变化事件为对象存储服务中存储的模型文件或模型元信息的数量发生变化的事件。即在对象存储服务中模型的数量发生变化的情况下,对象存储服务向模型管理服务反馈事件通知消息。比如,对象存储服务中添加了新的模型文件和模型元信息,那么对象存储服务向模型管理服务反馈模型增加消息。Here, the event notification message represents a model change event in the object storage service; the model change event is an event that the number of model files or model meta information stored in the object storage service changes. That is, when the number of models in the object storage service changes, the object storage service feeds back an event notification message to the model management service. For example, if a new model file and model meta-information are added to the object storage service, then the object storage service will feed back a message about the addition of the model to the model management service.
条件二:所述模型管理服务进行数据同步的历史时刻与当前时刻之间的时间间隔达到第一预设时长。Condition 2: The time interval between the historical moment when the model management service performs data synchronization and the current moment reaches a first preset duration.
这里,设定第一预设时长,这样模型管理服务每间隔一定的预设时长进行一次数据同步;所以,当上次进行数据同步的历史时刻与当前时刻之间的时间间隔达到设定的第一预设时长,即进行下一次的数据同步。Here, the first preset duration is set, so that the model management service performs data synchronization every certain preset duration; therefore, when the time interval between the historical moment of the last data synchronization and the current moment reaches the set second After a preset time period, the next data synchronization is performed.
条件三:所述模型管理服务在第二预设时长内未发起数据同步,且接收到客户端发送的模型同步请求。Condition three: the model management service does not initiate data synchronization within a second preset time period, and receives a model synchronization request sent by the client.
这里,所述第二预设时长大于所述第一预设时长。如果模型管理服务上一次进行数据同步的时刻距离当前时刻虽然已达到第一预设时长,但是模型管理服务仍然未启动数据同步机制,那么用户可以通过客户端手动触发模型管理服务的接口,以启动数据同步。即通过客户端向模型管理服务的接口发送模型同步请求,以使模型管理服务响应于该模型同步请求进行数据同步。Here, the second preset duration is longer than the first preset duration. If the last time the model management service performed data synchronization has reached the first preset time from the current time, but the model management service still has not started the data synchronization mechanism, then the user can manually trigger the interface of the model management service through the client to start data synchronization. That is, the client sends a model synchronization request to the interface of the model management service, so that the model management service performs data synchronization in response to the model synchronization request.
在本申请实施例中,无论模型管理服务满足以上哪一种同步条件,均进行与对象存储服务的数据同步,然后模型管理服务再将数据同步至视图解析服务,这样,采用从视图解析服务到模型管理服务 再到对象存储服务,多级分发的方式能满足更大规模更大压力的模型下载需要。In the embodiment of this application, no matter which of the above synchronization conditions the model management service meets, data synchronization with the object storage service is performed, and then the model management service synchronizes the data to the view analysis service. From the model management service to the object storage service, the multi-level distribution method can meet the needs of larger-scale and higher-pressure model downloads.
在一些实施例中,模型管理服务达到同步条件之后,按照该同步条件下对象存储服务中的模型变化事件,同步该模型管理服务中的模型文件以及模型元信息,即上述步骤S101可以通过图3所示的步骤实现:In some embodiments, after the model management service reaches the synchronization condition, the model file and model meta information in the model management service are synchronized according to the model change event in the object storage service under the synchronization condition, that is, the above step S101 can be performed through the The steps shown are implemented:
步骤S301,确定在所述预设同步条件下所述对象存储服务中的模型变化事件。Step S301, determining a model change event in the object storage service under the preset synchronization condition.
在一些实施例中,在模型管理服务满足预设同步条件的情况下,确定该预设同步条件下对象存储服务中模型的数量发生变化的事件;比如,模型添加事件或模型删除事件。In some embodiments, when the model management service satisfies a preset synchronization condition, an event in which the number of models in the object storage service changes under the preset synchronization condition is determined; for example, a model addition event or a model deletion event.
步骤S302,获取所述对象存储服务中与所述模型变化事件匹配的第一模型列表。Step S302, obtaining a first model list in the object storage service that matches the model change event.
在一些实施例中,第一模型列表包括多个模型文件,以及每一模型文件对应的至少一组模型元信息。与模型变化事件匹配的第一模型列表可以是发生该模型变化事件后对象存储服务中的模型列表,即发生模型变化事件后对象存储服务中存储的多个模型文件,每一模型文件对应的模型元信息。In some embodiments, the first model list includes a plurality of model files, and at least one set of model meta information corresponding to each model file. The first model list matching the model change event may be a model list in the object storage service after the model change event occurs, that is, multiple model files stored in the object storage service after the model change event occurs, and the model corresponding to each model file meta information.
步骤S303,在所述第一模型列表中,确定所述目标模型文件和所述目标模型元信息。Step S303, in the first model list, determine the target model file and the target model meta information.
在一些实施例中,如果模型变化事件为添加模型的事件,那么在所述第一模型列表中,确定与所述模型管理模型中的第二模型列表不同的所述目标模型文件和目标模型元信息;如果模型变化事件为删除模型的事件,那么目标模型文件和目标模型元信息为删除请求中所指的需要删除的模型文件和模型元信息。In some embodiments, if the model change event is an event of adding a model, then in the first model list, determine the target model file and the target model element that are different from the second model list in the model management model information; if the model change event is an event of deleting a model, then the target model file and target model meta information are the model files and model meta information that need to be deleted as indicated in the deletion request.
步骤S304,基于所述目标模型文件和所述目标模型元信息,同步所述模型管理服务中的第二模型列表。Step S304, based on the target model file and the target model meta-information, synchronize the second model list in the model management service.
在一些实施例中,按照对象存储服务中的目标模型文件和目标模型元信息,模型管理服务进行数据同步,即对自身的第二模型列表进行更新。比如,目标模型文件和目标模型元信息是新增到对象存储服务中的,那么模型管理服务从对象存储服务下载目标模型文件和目标模型元信息,以同步增加到第二模型列表中。In some embodiments, according to the target model file and target model meta information in the object storage service, the model management service performs data synchronization, that is, updates its own second model list. For example, if the target model file and target model meta information are added to the object storage service, then the model management service downloads the target model file and target model meta information from the object storage service to be added to the second model list synchronously.
在本申请实施例中,通过比较模型管理服务中的模型列表与对象存储服务中的模型列表,能够实现模型管理服务的精准同步。In the embodiment of the present application, accurate synchronization of the model management service can be realized by comparing the model list in the model management service with the model list in the object storage service.
在一些可能的实现方式中,模型变化事件不同,对第二模型列表进行同步到的过程不同,在模型变化事件包括模型添加的情况下,通过从对象存储服务中下载目标模型文件和目标模型元信息,实现数据同步;即上述步骤S303和步骤S304,可以通过以下步骤S341至S343(图示未示出)实现:In some possible implementations, the model change event is different, and the process of synchronizing the second model list is different. When the model change event includes model addition, by downloading the target model file and target model element from the object storage service information to realize data synchronization; that is, the above steps S303 and S304 can be realized through the following steps S341 to S343 (not shown):
步骤S341,在所述第一模型列表中,确定与所述第二模型列表不同的所述目标模型文件和所述目标模型元信息。Step S341, in the first model list, determine the target model file and the target model meta information that are different from the second model list.
在一些实施例中,如果对象存储服务中上传了目标模型文件和目标模型元信息,那么在第一模型列表中即增加了目标模型文件和目标模型元信息;这样,通过比较第二模型列表与第一模型列表之间的差异,即可确定第一模型列表中增加的模型文件和模型元信息,得到该目标模型文件和目标模型元信息。In some embodiments, if the target model file and target model meta information are uploaded in the object storage service, then the target model file and target model meta information are added to the first model list; thus, by comparing the second model list with The difference between the first model lists can determine the model files and model meta information added in the first model list to obtain the target model file and target model meta information.
步骤S342,从所述对象存储服务中下载所述目标模型文件和所述目标模型元信息。Step S342, downloading the object model file and the object model meta information from the object storage service.
在一些实施例中,如果客户端向对象存储服务上传了模型文件和目标元信息,那么在对象存储服务中可以生成事件通知消息,通过内存消息队列将该事件通知消息发送到模型管理服务,以通知模型管理服务进行数据同步;模型管理服务接收到事件通知消息之后,即启动同步机制,从对象存储服务中下载所述目标模型文件和所述目标模型元信息。In some embodiments, if the client uploads the model file and target meta information to the object storage service, an event notification message may be generated in the object storage service, and the event notification message may be sent to the model management service through the memory message queue to The model management service is notified to perform data synchronization; after receiving the event notification message, the model management service starts a synchronization mechanism and downloads the target model file and the target model meta information from the object storage service.
还可以是模型管理服务进行数据同步的时间间隔达到第一预设时长,模型管理服务启动同步机制,从所述对象存储服务中下载所述目标模型文件和所述目标模型元信息至本地缓存。It may also be that the time interval for data synchronization by the model management service reaches a first preset duration, the model management service starts a synchronization mechanism, and downloads the target model file and the target model meta-information from the object storage service to a local cache.
还可以是模型管理服务接收到客户端发送的模型同步指令启动同步机制,从所述对象存储服务中下载所述目标模型文件和所述目标模型元信息至本地缓存。It may also be that the model management service receives the model synchronization instruction sent by the client to start the synchronization mechanism, and downloads the target model file and the target model meta-information from the object storage service to the local cache.
步骤S343,将所述目标模型文件和所述目标模型元信息添加至所述第二模型列表。Step S343, adding the target model file and the target model meta information to the second model list.
在一些实施例中,将目标模型文件和所述目标模型元信息缓存在本地,并通知添加至第二模型列表中,实现对第二模型列表的数据同步;这里,各个模型管理服务是进行实时同步的,或者是各个模 型管理服务是共享第二模型列表的,这样能够减少数据存储的空间占用率。In some embodiments, the target model file and the meta information of the target model are cached locally, and the notification is added to the second model list to realize data synchronization of the second model list; here, each model management service performs real-time Synchronization, or each model management service shares the second model list, which can reduce the space occupancy rate of data storage.
在本申请实施例中,对象存储服务中上传目标模型文件之后,如果模型管理服务获取到上传消息,那么模型管理服务启动同步过程;从对象存储服务中将新上传的目标模型文件和所述目标模型元信息下载到本地,并添加到第二模型列表。如此,多个模型管理服务之间能够共享模型文件和模型元信息,能够快速实现多个模型管理服务与对象存储服务的数据同步。In this embodiment of the application, after the target model file is uploaded in the object storage service, if the model management service obtains the upload message, the model management service starts the synchronization process; the newly uploaded target model file and the target The model meta information is downloaded locally and added to the second model list. In this way, model files and model meta-information can be shared between multiple model management services, and data synchronization between multiple model management services and object storage services can be quickly realized.
在一些实施例中,在模型变化事件包括模型删除的情况下,在第一模型列表中待删除的模型文件和模型元信息,即为目标模型文件和目标模型元信息,即上述步骤S303,可以通过以下步骤S331至步骤S333(图示未示出)实现:In some embodiments, when the model change event includes model deletion, the model file and model meta information to be deleted in the first model list are the target model file and target model meta information, that is, the above step S303, can be Realized by the following steps S331 to S333 (not shown):
步骤S331,接收所述客户端发送的模型删除请求。Step S331, receiving a model deletion request sent by the client.
在一些实施例中,模型删除请求携带第三存储地址。该第三存储地址用于表示需要删除的模型元信息在对象存储服务中的存储地址。客户端需要删除任一模型的模型元信息时,可以向模型管理服务发送携带该第三存储地址的删除请求,以使模型管理服务响应该删除请求,删除对应的模型元信息。In some embodiments, the model deletion request carries a third storage address. The third storage address is used to indicate the storage address of the model meta information to be deleted in the object storage service. When the client needs to delete the model meta information of any model, it can send a deletion request carrying the third storage address to the model management service, so that the model management service can delete the corresponding model meta information in response to the deletion request.
步骤S332,基于所述第三存储地址,从所述第一模型列表中确定所述目标模型元信息。Step S332, based on the third storage address, determine the target model meta information from the first model list.
这里,按照该第三存储地址,从对象存储服务存储的模型元信息中查找该地址下的待删除的模型元信息,即得到该目标模型元信息。Here, according to the third storage address, the model meta information to be deleted under the address is searched from the model meta information stored in the object storage service, that is, the target model meta information is obtained.
步骤S333,确定所述目标模型元信息在所述第一模型列表中指向的所述目标模型文件。Step S333, determining the target model file pointed to by the target model meta information in the first model list.
在一些实施例中,由于模型元信息具有唯一引用的模型文件,那么按照模型元信息所引用的模型文件的路径,即可得到存储地址;该存储地址即为目标模型元信息所引用的模型文件的存储地址,因此可得到目标元信息在对象存储服务中指向的目标模型文件。In some embodiments, since the model meta information has a uniquely referenced model file, the storage address can be obtained according to the path of the model file referenced by the model meta information; the storage address is the model file referenced by the target model meta information Therefore, the target model file pointed to by the target metadata in the object storage service can be obtained.
在本申请实施例中,通过响应客户端的模型删除请求,能够通过删除接口删除目标模型文件和目标模型元信息在对象存储服务中的记录,既能够准确删除对象存储服务的模型文件和元信息,还能够丰富模型管理系统能够实现的功能。In this embodiment of the application, by responding to the client’s model deletion request, the records of the target model file and target model meta information in the object storage service can be deleted through the deletion interface, and the model file and meta information of the object storage service can be deleted accurately. It can also enrich the functions that the model management system can realize.
在一些实施例中,在模型变化事件包括模型删除的情况下,通过响应对象存储服务广播的删除指令,删除目标模型文件和目标模型元信息,实现数据同步;即上述步骤S304,可以通过以下步骤S344至S346(图示未示出)实现:In some embodiments, when the model change event includes model deletion, by responding to the deletion instruction broadcast by the object storage service, the target model file and the target model meta information are deleted to achieve data synchronization; that is, the above step S304 can be performed through the following steps S344 to S346 (illustration not shown) realize:
步骤S344,响应于所述模型删除请求,对所述对象存储服务中的所述目标模型元信息和所述目标模型文件进行删除,以使所述对象存储服务广播所述同步清理指令。Step S344, in response to the model deletion request, delete the target model meta-information and the target model file in the object storage service, so that the object storage service broadcasts the synchronization cleaning instruction.
在一些实施例中,接收到客户端发送的模型删除请求之后,确定出需要删除的目标模型文件和目标模型元信息。首先,在对象存储服务中删除目标模型文件和目标模型元信息;然后,对象存储服务在删除目标模型文件和目标模型元信息之后,向各个模型管理服务广播同步清理指令,以使各个模型管理服务进行同步清理。在对象存储服务中可以是同时删除目标模型文件和目标模型元信息;还可以是异步目标模型文件和目标模型元信息,比如,在对象存储服务中先删除目标模型元信息,间隔一定时长后再删除目标模型文件。In some embodiments, after receiving the model deletion request sent by the client, the target model file and target model meta information to be deleted are determined. First, delete the target model file and target model meta-information in the object storage service; then, after deleting the target model file and target model meta-information, the object storage service broadcasts a synchronous cleaning command to each model management service, so that each model management service Do a sync cleanup. In the object storage service, the target model file and the target model meta information can be deleted at the same time; the target model file and the target model meta information can also be deleted asynchronously. For example, in the object storage service, the target model meta information is deleted first, and after a certain interval Delete the target model file.
步骤S345,接收所述对象存储服务在删除所述目标模型文件和所述目标模型元信息之后广播的同步清理指令。Step S345, receiving a synchronous cleaning instruction broadcast by the object storage service after deleting the target model file and the target model meta information.
在一些实施例中,客户端向模型管理服务发送模型删除请求,模型管理服务将该模型删除请求发送至对象存储服务,以在对象存储服务中删除该模型删除请求所指示的目标模型文件和目标模型元信息;对象存储服务删除目标模型文件和目标模型元信息的同时,向各个模型管理服务广播同步清理指令,以提示各个模型管理服务进行同步清理。In some embodiments, the client sends a model deletion request to the model management service, and the model management service sends the model deletion request to the object storage service, so as to delete the target model file and object specified in the model deletion request in the object storage service Model meta information; while the object storage service deletes the target model file and target model meta information, it broadcasts a synchronous cleanup command to each model management service to prompt each model management service to perform synchronous cleanup.
步骤S346,响应于所述同步清理指令,在述第二模型列表中删除所述目标模型文件和所述目标模型元信息。Step S346, in response to the synchronization cleaning instruction, delete the target model file and the target model meta information in the second model list.
在一些实施例中,模型管理服务接收到对象存储服务广播的同步清理指令,删除目标模型文件和目标模型元信息,并同时更新第二模型列表。In some embodiments, the model management service receives the synchronous cleaning instruction broadcast by the object storage service, deletes the target model file and the target model meta information, and simultaneously updates the second model list.
在本申请实施例中,对象存储服务中删除目标模型文件和目标元信息之后,向模型管理服务广播删除指令,从而多个模型管理服务能够同时删除该目标模型文件和目标模型元信息,能够快速实现多 个模型管理服务与对象存储服务的数据同步。In this embodiment of the application, after deleting the target model file and target meta-information in the object storage service, the deletion command is broadcast to the model management service, so that multiple model management services can delete the target model file and target model meta-information at the same time, which can quickly Realize data synchronization between multiple model management services and object storage services.
在一些可能的实现方式中,通过设置定时清理时长,模型管理服务能够定时对需要删除的目标模型文件,即上步骤S344可以通过以下步骤实现:In some possible implementations, by setting the timing cleaning duration, the model management service can regularly delete the target model files, that is, the above step S344 can be realized through the following steps:
第一步,响应于所述模型删除请求,在所述对象存储服务中删除所述目标模型元信息。In the first step, in response to the model deletion request, delete the meta information of the target model in the object storage service.
在一些实施例中,接收到客户端发送的模型删除请求之后,模型管理服务响应于该模型删除请求,立即删除对象存储服务中的目标模型元信息。In some embodiments, after receiving the model deletion request sent by the client, the model management service immediately deletes the meta information of the target model in the object storage service in response to the model deletion request.
第二步,按照预设时长间隔,在所述对象存储服务中删除所述目标模型文件。The second step is to delete the target model file in the object storage service according to a preset time interval.
在一些实施例中,模型管理服务设定预设时长间隔,每当达到该预设时长间隔时,模型管理服务判断对象存储服务中是否有需要删除的目标模型文件;如果对象存储服务中有需要删除的目标模型文件,那么模型管理服务对该对象存储服务中的目标模型文件进行清理;同时,对象存储服务会按照该预设时长间隔向模型管理服务广播同步清理指令。从而模型管理服务可以按照预设时长间隔清理第二模型列表中待删除的模型文件和模型元信息。In some embodiments, the model management service sets a preset time interval, and whenever the preset time interval is reached, the model management service determines whether there is a target model file that needs to be deleted in the object storage service; if there is a need in the object storage service If the target model file is deleted, the model management service will clean up the target model file in the object storage service; at the same time, the object storage service will broadcast a synchronous cleaning command to the model management service according to the preset time interval. Therefore, the model management service can clean up the model files and model meta information to be deleted in the second model list according to the preset time interval.
在本申请实施例中,通过设定定时清理模型文件的间隔时长,模型管理服务可以每间隔一定时长清理一次要删除的模型文件;这样,能够减少频繁地执行删除操作,还能够定时对模型管理服务进行清理。In the embodiment of this application, by setting the interval for cleaning model files at regular intervals, the model management service can clean up the model files to be deleted at a certain interval; in this way, frequent deletion operations can be reduced, and model management can also be performed regularly The service cleans up.
在一些实施例中,该模型管理系统中还具有快速检索功能,通过多级引用路径,实现模糊匹配快速检索,以检索到所需的模型元信息,可以通过以下步骤实现:In some embodiments, the model management system also has a fast retrieval function, through the multi-level reference path, realizes the fast retrieval of fuzzy matching, and retrieves the required model meta-information, which can be realized through the following steps:
第一步,响应于接收到所述客户端发送的模型元信息的检索请求,确定所述检索请求携带的多级存储地址的索引参数。In the first step, in response to receiving the retrieval request of the model meta information sent by the client, determine the index parameter of the multi-level storage address carried in the retrieval request.
在一些实施例中,该检索请求为客户端向模型管理服务发送的用于请求检索模型元信息。多级存储地址的索引参数可以是该元信息在对象存储服务中进行存储的多级存储路径。多级存储地址的索引参数与多级存储地址对应,即多级存储地址的索引参数也可以是:类型→子类型→硬件类型→软件类型→模型名称。In some embodiments, the retrieval request is a request sent by the client to the model management service to retrieve model meta information. The index parameter of the multi-level storage address may be a multi-level storage path where the meta information is stored in the object storage service. The index parameter of the multi-level storage address corresponds to the multi-level storage address, that is, the index parameter of the multi-level storage address can also be: type→subtype→hardware type→software type→model name.
第二步,基于所述多级存储地址的索引参数中的至少一级存储地址的索引参数,对所述对象存储服务中的模型元信息进行查询,得到匹配所述检索请求的待反馈模型元信息。The second step is to query the model element information in the object storage service based on the index parameters of at least one level of storage address among the index parameters of the multi-level storage address, and obtain the model element to be fed back that matches the retrieval request information.
在一些实施例中,至少一级存储地址的索引参数可以是多级存储地址的索引参数中的第一级、最后一级,还可以是该多级存储地址的索引参数中的任一级或多级等。In some embodiments, the index parameter of at least one level of storage address may be the first level or the last level of the index parameters of the multilevel storage address, or any level or level of the index parameters of the multilevel storage address. multi-level etc.
在一些可能的实现方式中,至少一级存储地址的索引参数包括多级存储地址的索引参数中的第一级和最后一级,那么按照第一级和最后一级对应的索引参数在对象存储服务中,对模型元信息进行前后缀模糊匹配的快速检索,返回检索到的模型元信息,即待反馈模型元信息。In some possible implementations, the index parameters of at least one level of storage address include the first level and the last level of the index parameters of the multi-level storage address, then according to the index parameters corresponding to the first level and the last level in the object storage In the service, fast retrieval of fuzzy prefix and suffix matching is performed on the model meta information, and the retrieved model meta information is returned, that is, the model meta information to be fed back.
第三步,将待反馈模型元信息反馈至所述客户端。The third step is to feed back the meta information of the model to be fed back to the client.
在一些实施例中,将检索功能返回的模型元信息,反馈至客户端,以使客户端能够在本地缓存该模型元信息,供多个视图解析服务之间共享模型元信息。In some embodiments, the model meta information returned by the retrieval function is fed back to the client, so that the client can cache the model meta information locally so that the model meta information can be shared among multiple view parsing services.
在本申请实施例中,模型管理服务接收到检索请求后,通过多级存储地址的索引参数中的至少一级,实现对象存储服务中的模型元信息的模糊匹配检索,从而能够快速检索到匹配该检索请求的待反馈模型元信息,丰富了模型管理系统的功能。In this embodiment of the application, after the model management service receives the retrieval request, it realizes the fuzzy matching retrieval of the model meta information in the object storage service through at least one level of the index parameters of the multi-level storage address, so that the matching can be quickly retrieved. The model meta-information to be fed back in the retrieval request enriches the functions of the model management system.
在一些实施例中,在所述对象存储服务中的模型变化事件包括模型添加的情况下,通过在模型解析服务中集成模型管理服务的软件工具包(Software Development Kit,SDK),从而通过调用该SDK中的接口即可实现模型的分发和下载,即上述步骤S102可以通过以下步骤S121和S122(图示未示出)实现:In some embodiments, when the model change event in the object storage service includes a model addition, by integrating the software toolkit (Software Development Kit, SDK) of the model management service in the model analysis service, thereby calling the The interface in the SDK can realize the distribution and download of the model, that is, the above step S102 can be realized through the following steps S121 and S122 (not shown in the figure):
步骤S121,接收所述视图解析服务在运行软件工具包的情况下发送的模型下载请求。Step S121, receiving a model download request sent by the view parsing service when the software toolkit is running.
在一些实施例中,SDK包括所述模型管理服务的接口;或者,该SDK是通过集成模型管理服务的接口得到的。将目标模型文件和目标模型元信息上传至对象存储服务之后,在视图解析服务中集成该模型管理服务的客户端SDK;视图解析服务在运行该SDK时,如果需要进行数据同步,则向模型管理服务发送模型下载请求。In some embodiments, the SDK includes the interface of the model management service; or, the SDK is obtained by integrating the interface of the model management service. After uploading the target model file and target model meta information to the object storage service, integrate the client SDK of the model management service in the view analysis service; when the view analysis service is running the SDK, if data synchronization is required, it will send the model management service The service sends a model download request.
步骤S122,响应于所述模型下载请求,通过所述接口将所述目标模型文件和所述目标模型元信息发送至所述视图解析服务。Step S122, in response to the model download request, sending the target model file and the target model meta information to the view resolution service through the interface.
在一些实施例中,模型管理服务响应于该模型下载请求,通过调用SDK中的相关接口,即可将目标模型文件和目标模型元信息传输至视图解析服务。如此,在解析或者检索服务中集成该模型管理服务的客户端SDK,通过调用相关接口即可完成模型部署、分发和下载使用等。In some embodiments, in response to the model download request, the model management service can transmit the target model file and target model meta information to the view parsing service by calling a relevant interface in the SDK. In this way, the client SDK of the model management service is integrated in the parsing or retrieval service, and the model deployment, distribution, download and use can be completed by calling the relevant interface.
本申请实施例提供一种模型管理方法,应用于客户端,客户端能够通过模型元信息的存储地址定位查询模型元信息,如图3B所示,结合图3B所示步骤进行以下说明:The embodiment of the present application provides a model management method, which is applied to the client. The client can locate and query the model meta information through the storage address of the model meta information, as shown in FIG. 3B . The following description will be made in conjunction with the steps shown in FIG. 3B:
步骤S321,向模型管理服务发送目标模型的加载请求。Step S321, sending a loading request of the target model to the model management service.
这里,所述目标模型包括:目标模型文件和目标模型元信息。Here, the target model includes: target model file and target model meta information.
步骤S322,接收所述模型管理服务基于所述加载请求发送的所述目标模型元信息在对象存储服务中的多级存储地址。Step S322, receiving the multi-level storage address of the target model meta information in the object storage service sent by the model management service based on the loading request.
这里,目标模型元信息在对象存储服务中的存储地址为多级存储地址,而且目标模型元信息携带有目标模型文件在对象存储服务中的多级存储地址。Here, the storage address of the target model meta-information in the object storage service is a multi-level storage address, and the target model meta-information carries the multi-level storage address of the target model file in the object storage service.
步骤S323,基于所述多级存储地址,在所述对象存储服务中确定所述目标模型元信息和所述目标模型元信息对应的所述目标模型文件。Step S323, based on the multi-level storage address, determine the target model meta-information and the target model file corresponding to the target model meta-information in the object storage service.
这里,模型管理服务将更新后的模型元信息在对象存储服务中的存储地址发送给客户端,这样客户端能够基于多级存储地址读取目标模型元信息,并基于目标模型元信息中携带的模型文件的预设存储地址,在对象存储服务中定位查询该目标模型文件。如此,通过将目标模型元信息在对象存储服务中的存储地址反馈给客户端,从而客户端能够通过查询目标模型元信息,精确定位查询该目标模型元信息所对应的目标模型文件。Here, the model management service sends the updated storage address of the model meta-information in the object storage service to the client, so that the client can read the target model meta-information based on the multi-level storage address, and based on the The preset storage address of the model file, locate and query the target model file in the object storage service. In this way, by feeding back the storage address of the target model meta information in the object storage service to the client, the client can accurately locate the target model file corresponding to the target model meta information by querying the target model meta information.
在一些实施例中,客户端通过按照模型管理服务发送的多级存储地址,在对象存储服务中定位目标模型元信息,并查询该目标模型元信息对应的目标模型文件,即上述步骤S323可以通过以下步骤实现:In some embodiments, the client locates the target model meta information in the object storage service according to the multi-level storage address sent by the model management service, and queries the target model file corresponding to the target model meta information, that is, the above step S323 can be passed The following steps are implemented:
第一步,基于所述多级存储地址在所述对象存储服务中定位所述目标模型元信息。The first step is to locate the target model meta information in the object storage service based on the multi-level storage address.
这里,按照该多级存储地址,客户端在对象存储服务中能够查询定位到目标模型元信息。Here, according to the multi-level storage address, the client can query and locate the meta information of the target model in the object storage service.
第二步,确定所述目标模型元信息携带的所述目标模型文件在所述对象存储服务中的存储地址。The second step is to determine the storage address of the target model file carried in the target model meta-information in the object storage service.
这里,由于在存储模型文件和模型元信息时,将模型文件在对象存储服务中的存储地址添加在模型元信息中,所以在查询到目标模型元信息之后,能够在目标模型元信息中确定出目标模型文件在对象存储服务中的存储地址。Here, when storing the model file and model meta information, the storage address of the model file in the object storage service is added to the model meta information, so after querying the target model meta information, it can be determined in the target model meta information The storage address of the target model file in the object storage service.
第三步,基于所述目标模型文件在所述对象存储服务中的存储地址,在所述对象存储服务中定位所述目标模型文件。The third step is to locate the target model file in the object storage service based on the storage address of the target model file in the object storage service.
这里,客户端能够按照确定出的目标模型文件在所述对象存储服务中的存储地址,精确定位查询该目标模型元信息所对应的目标模型文件。Here, the client can accurately locate and query the target model file corresponding to the target model meta information according to the determined storage address of the target model file in the object storage service.
在一些实施例中,客户端也能够进行模型下载,并将下载的模型文件和模型元信息在本地缓存,以供其他解析服务共享,可以通过以下步骤实现:In some embodiments, the client can also download the model, and cache the downloaded model file and model meta information locally for sharing by other analysis services, which can be achieved through the following steps:
第一步,缓存所述目标模型文件和所述目标模型元信息。The first step is to cache the target model file and the target model meta information.
在一些实施例中,从对象存储服务下载目标模型文件和目标模型元信息之后,客户端可以将目标模型文件和目标模型元信息缓存在本地。In some embodiments, after downloading the target model file and target model meta information from the object storage service, the client may cache the target model file and target model meta information locally.
第二步,将所述目标模型文件和所述目标模型元信息共享至所述至少一个视图解析服务。In the second step, the target model file and the target model meta information are shared with the at least one view resolution service.
在一些实施例中,客户端在本地缓存该目标模型文件和目标模型元信息,从而使得客户端的多个视图解析服务之间能够共享客户端缓存的目标模型文件和目标模型元信息。In some embodiments, the client caches the target model file and target model meta information locally, so that the target model file and target model meta information cached by the client can be shared among multiple view parsing services of the client.
在本申请实施例中,通过在客户端缓存下载的目标模型文件和目标模型元信息,从而能够便于共享给该模型管理服务上的其他解析服务使用,进而能够节省客户端的存储空间。In the embodiment of the present application, by caching the downloaded target model file and target model meta-information on the client side, it can be easily shared with other analysis services on the model management service, thereby saving the storage space of the client side.
下面,将说明本申请实施例在一个实际的应用场景中的示例性应用,以基于对象存储的模型分发管理系统为例,进行说明。In the following, an exemplary application of the embodiment of the present application in an actual application scenario will be described, taking an object storage-based model distribution management system as an example for illustration.
人工智能算法在不断迭代的过程中产生了大量模型文件,且算法参数越来越多,模型越来越大;随着市场规模增大,视图分析接入规模也越来越大。这些模型在支持上千个视图解析服务的开放视觉平台上使用时,会跟随应用程序打包到镜像中,占用大量的磁盘空间,在反复传输过程中也占用大量带宽和磁盘输入/输出,一方面让智能分析系统启动变慢,另一方面给存储系统和分布式系统整个网络系统带来极大压力。The artificial intelligence algorithm generates a large number of model files in the process of continuous iteration, and the algorithm parameters are more and more, and the model is getting bigger and bigger; as the market scale increases, the access scale of view analysis is also increasing. When these models are used on the open vision platform that supports thousands of view analysis services, they will be packaged into the image along with the application, occupying a large amount of disk space, and also occupying a large amount of bandwidth and disk input/output during repeated transmission. On the one hand Slowing down the startup of the intelligent analysis system, on the other hand, puts great pressure on the storage system and the entire network system of the distributed system.
本申请实施例提供一种模型管理方法,本申请实施例提供的管理系统基于对象存储系统和多级磁盘缓存分发的思想,能够解耦算法模型和智能分析程序,实现高效传输和存储算法模型。该模型管理方法可以通过以下步骤实现:The embodiment of the present application provides a model management method. The management system provided by the embodiment of the present application is based on the idea of object storage system and multi-level disk cache distribution, which can decouple the algorithm model and the intelligent analysis program, and realize efficient transmission and storage of the algorithm model. This model management method can be implemented through the following steps:
第一步,实现算法模型上传和后端存储功能。The first step is to implement algorithm model upload and back-end storage functions.
在一些实施例中,算法模型上传和后端存储功能的实现过程如以下步骤1.1至1.4所示,其中:In some embodiments, the implementation process of algorithm model uploading and back-end storage functions is shown in the following steps 1.1 to 1.4, wherein:
步骤1.1,将算法模型设计为模型元信息(meta)和模型文件。Step 1.1, design the algorithm model as model meta information (meta) and model file.
这里,模型元信息描述算法模型的信息,比如,描述模型用于哪种硬件,哪种加速卡,模型运行时的环境,模型的名称等等。模型文件为原始二进制模型文件;模型元信息和模型文件分开存储,且不同元信息可以指向同(引用)一个模型文件。对应用来说,可以通过元信息定位到模型文件,没有元信息就无法查询定位该模型文件。Here, the model meta-information describes the information of the algorithm model, for example, describes which hardware the model is used for, which accelerator card, the environment in which the model runs, the name of the model, and so on. The model file is the original binary model file; the model meta-information and the model file are stored separately, and different meta-information can point to (reference) the same model file. For the application, the model file can be located through the meta information, and the model file cannot be queried and located without the meta information.
步骤1.2,提供上传服务接口以上传算法模型,通过对模型文件和引用路径进行校验后,如果服务器不存在此算法模型,则将该算法模型上传到后端对象存储服务。Step 1.2: Provide an upload service interface to upload the algorithm model. After verifying the model file and reference path, if the algorithm model does not exist on the server, upload the algorithm model to the back-end object storage service.
这里,上传算法模型的过程如图4所示,图4为本申请实施例提供的模型管理方法的实现流程示意图,结合图4所示的步骤进行以下说明:Here, the process of uploading the algorithm model is shown in Figure 4, and Figure 4 is a schematic diagram of the implementation flow of the model management method provided by the embodiment of the present application, and the following description is made in conjunction with the steps shown in Figure 4:
步骤S401,启动上传算法模型的过程。Step S401, start the process of uploading the algorithm model.
步骤S402,判断对象存储服务中是否已经存在该算法模型。Step S402, judging whether the algorithm model already exists in the object storage service.
这里,如果对象存储服务中已经存在该算法模型,则不需上传该算法模型。如果对象存储服务中不存在该算法模型,进入步骤S403。如果对象存储服务中存在该算法模型,结束整个过程。Here, if the algorithm model already exists in the object storage service, there is no need to upload the algorithm model. If the algorithm model does not exist in the object storage service, go to step S403. If the algorithm model exists in the object storage service, end the whole process.
步骤S403,通过模型管理服务将算法模型的模型文件上传至对象存储服务。Step S403, upload the model file of the algorithm model to the object storage service through the model management service.
步骤S404,将该算法模型的元信息上传至对象存储服务,如果上传失败,则进行数据回滚。Step S404, upload the meta information of the algorithm model to the object storage service, if the upload fails, perform data rollback.
这里,如果将算法模型的元信息上传对象存储服务失败,则进行数据回滚。Here, if uploading the meta information of the algorithm model to the object storage service fails, the data will be rolled back.
步骤S405,结束上传算法模型的过程。Step S405, end the process of uploading the algorithm model.
步骤1.3,在模型管理系统中提供删除功能,即删除接口以及删除算法模型在对象存储服务的记录,在后台实际的算法模型中异步执行删除操作,并删除模型管理服务上的磁盘缓存数据。Step 1.3, provide the delete function in the model management system, that is, delete the interface and delete the record of the algorithm model in the object storage service, execute the delete operation asynchronously in the actual algorithm model in the background, and delete the disk cache data on the model management service.
步骤1.4,在模型管理系统中提供算法模型前后缀模糊匹配快速检索功能。In step 1.4, the model management system provides a fast search function for fuzzy matching of prefixes and suffixes of the algorithm model.
这里,通过多级引用路径实现算法模型前后缀模糊匹配快速检索功能;检索功能可以返回模型元信息,模型元信息包括模型详细信息及用户自定义meta信息。Here, the fast retrieval function of algorithm model suffix and suffix fuzzy matching is realized through the multi-level reference path; the retrieval function can return model meta information, which includes model detailed information and user-defined meta information.
在本申请实施例中,模型管理系统可以单独存储模型而不用打包到程序镜像中,保证相同模型的共享和引用不产生额外空间占用和传输时间带宽成本。In the embodiment of this application, the model management system can store the models separately without packaging them into the program image, so as to ensure that the sharing and reference of the same model does not generate additional space occupation and transmission time bandwidth costs.
第二步,实现算法模型分发机制。The second step is to implement the algorithm model distribution mechanism.
在一些实施例中,在大规模视图解析平台中,通过多级缓存和模型同步分发解决模型的拉取问题,可以通过以下过程实现:In some embodiments, in a large-scale view parsing platform, multi-level caching and model synchronous distribution are used to solve the problem of model pull, which can be achieved through the following process:
首先,将对象存储服务数据实时同步到模型管理服务。First, synchronize the object storage service data to the model management service in real time.
其次,视图解析服务从模型管理服务下载模型到视图解析服务。Second, the view resolution service downloads the model from the model management service to the view resolution service.
最后,视图解析服务的所有解析服务可以共享使用模型数据,以应对大规模模型文件的下载压力。Finally, all analysis services of the view analysis service can share and use model data to cope with the download pressure of large-scale model files.
如图5所示,图5为本申请实施例提供的模型管理方法的实现架构图,其中,minio-服务51(minio-service)可适用其他支持S3接口的对象存储服务;模型管理服务52包括:模型管理1(model-manager-1)、模型管理2(model-manager-2)、模型管理n(model-manager-n)指n个模型管理服务节点(对应于上述实施例中的模型管理服务);节点缓存501至节点缓存503(node-cache)指视图解析服务的本地缓存。在图5中可以看出,首先,系统包括多个视图解析服务:节点0(node-0), 节点x(node-x)节点n(node-n);其中,每一节点中包括多个并行处理子任务的工作进程(worker),比如,节点-0中包括8个并行的工作进程,工作进程0至工作进程7,并将工作进程0至工作进程7处理的数据缓存在节点缓存501中;节点-x中包括多个并行的工作进程,并将多个工作进程处理的数据缓存在节点缓存502中;节点-n中包括m个并行的工作进程,其中,m为大于1的整数;工作进程0至工作进程m,并将工作进程0至工作进程m处理的数据缓存在节点缓存503中。然后,将各节点缓存中的缓存数据下发到模型管理服务;比如,节点缓存501和502中数据下发模型管理1中,节点缓存503中的数据下发到模型管理2和模型管理n中。最后,将各个模型管理服务中接收到的数据下发到对象存储服务504。如此,该模型管理和分发系统后端存储基于兼容S3接口开发,支持各种对象存储系统,提供模型管理(上传、下载、列举和删除等)功能;As shown in Figure 5, Figure 5 is an implementation architecture diagram of the model management method provided by the embodiment of the present application, wherein the minio-service 51 (minio-service) can be applied to other object storage services that support the S3 interface; the model management service 52 includes : model management 1 (model-manager-1), model management 2 (model-manager-2), model management n (model-manager-n) refers to n model management service nodes (corresponding to the model management in the above-mentioned embodiment service); node cache 501 to node cache 503 (node-cache) refer to the local cache of the view resolution service. As can be seen in Figure 5, first, the system includes multiple view resolution services: node 0 (node-0), node x (node-x) node n (node-n); wherein, each node includes multiple A worker process (worker) that processes subtasks in parallel, for example, node-0 includes 8 parallel worker processes, from worker process 0 to worker process 7, and caches the data processed by worker process 0 to worker process 7 in the node cache 501 middle; the node-x includes a plurality of parallel working processes, and caches the data processed by the multiple working processes in the node cache 502; the node-n includes m parallel working processes, wherein m is an integer greater than 1 ; Work process 0 to work process m, and cache the data processed by work process 0 to work process m in the node cache 503 ; Then, send the cached data in each node cache to the model management service; for example, the data in node caches 501 and 502 are sent to model management 1, and the data in node cache 503 is sent to model management 2 and model management n . Finally, send the data received in each model management service to the object storage service 504 . In this way, the back-end storage of the model management and distribution system is developed based on a compatible S3 interface, supports various object storage systems, and provides model management (upload, download, enumeration, and deletion, etc.) functions;
在一些实施例中,算法模型分发机制可以通过以下步骤2.1至2.4实现,其中:In some embodiments, the algorithm model distribution mechanism can be implemented through the following steps 2.1 to 2.4, wherein:
步骤2.1,实现节点模型数据的实时同步。Step 2.1, realizing real-time synchronization of node model data.
这里,使用对象存储服务的事件通知机制,通过监听特定的存储桶(bucket)的写事件实现节点模型数据的实时同步。如果向对象存储服务上传了算法模型文件,通过内存消息队列将该事件通知到模型管理服务;模型管理服务监听到该事件后启动同步过程;模型管理服务比较模型管理服务中的模型列表与对象管理服务中当前模型文件列表的差异(比如,对象管理服务中包括模型信息列表1,模型管理服务上有模型信息列表2,模型管理服务将模型信息列表1和模型信息列表2进行比较),将这些新上传的算法模型从对象存储服务下载到本地缓存起来。Here, the event notification mechanism of the object storage service is used to realize the real-time synchronization of the node model data by listening to the write event of a specific bucket (bucket). If the algorithm model file is uploaded to the object storage service, the event is notified to the model management service through the memory message queue; the model management service starts the synchronization process after listening to the event; the model management service compares the model list in the model management service with the object management The difference in the current model file list in the service (for example, the object management service includes the model information list 1, the model management service has the model information list 2, and the model management service compares the model information list 1 with the model information list 2), and these The newly uploaded algorithm model is downloaded from the object storage service to the local cache.
步骤2.2,如果任一模型管理服务接收到模型删除指令,同样先删除对象存储服务上的模型,通过事件机制广播到各个模型存储服务,这些模型存储服务接收到通知后,后台开始删除对应的模型。Step 2.2, if any model management service receives a model deletion command, delete the model on the object storage service first, and broadcast to each model storage service through the event mechanism. After these model storage services receive the notification, the background starts to delete the corresponding model .
这里,各模型管理服务上存储的模型文件和模型元文件是相同的。Here, the model files and model meta files stored in each model management service are the same.
步骤2.3,为减少事件通知遗漏或处理不及时,后台增加一个定时同步过程,计时器超时后进行一次同步,从对象存储服务同步对齐模型列表。In step 2.3, in order to reduce the omission of event notifications or untimely processing, a timing synchronization process is added in the background. After the timer expires, a synchronization is performed to synchronize the alignment model list from the object storage service.
这里,如果超时同步机制仍然无效,还可以通过同步触发接口手动下发同步命令。Here, if the timeout synchronization mechanism is still invalid, a synchronization command can also be manually issued through the synchronization trigger interface.
步骤2.4,为减少删除操作过于频繁,收到模型删除指令时只删除模型元信息,而不会立即删除二进制模型文件,而是定时地在后台做清理。In step 2.4, in order to reduce the frequent delete operations, only the model meta information is deleted when receiving the model delete command, and the binary model files are not deleted immediately, but are regularly cleaned up in the background.
这里,在对象存储服务中设置一个哨兵对象,当清理这些不再被引用的模型后,更新该哨兵对象,通知到所有的模型管理服务,同步进行清理操作。这样,通过事件通知和定时触发机制保证高效模型上传和同步,并能够实时分发到模型管理服务并缓存,视图解析服务从模型管理服务下载并缓存目标模型文件和目标模型元信息,所有视图解析服务可以共享使用模型;从而能够节省存储空间,实现多个视图解析服务的同步。Here, a sentinel object is set in the object storage service. When these models that are no longer referenced are cleaned up, the sentinel object is updated, and all model management services are notified to perform the cleaning operation synchronously. In this way, the efficient model upload and synchronization is guaranteed through the event notification and timing trigger mechanism, and can be distributed to the model management service and cached in real time. The view analysis service downloads and caches the target model file and target model meta information from the model management service. All view analysis services The usage model can be shared; thus, the storage space can be saved and the synchronization of multiple view parsing services can be realized.
在本申请实施例中,通过多级缓存和模型同步分发实现模型拉取,如图6所示,图6为本申请实施例提供的对象管理方法的实现流程交互示意图,结合图6所示的步骤进行以下说明:In the embodiment of the present application, model pull is realized through multi-level caching and model synchronous distribution, as shown in Figure 6, which is a schematic diagram of the implementation process interaction of the object management method provided in the embodiment of the present application, combined with the The steps are described below:
步骤S601,客户端向第一模型管理服务上传模型。Step S601, the client uploads the model to the first model management service.
这里,客户点向第一模型管理服务上传模型包括上传模型文件和模型元信息。Here, uploading the model to the first model management service by the client includes uploading the model file and model meta information.
步骤S602,第一模型管理服务将模型上传至对象存储服务。Step S602, the first model management service uploads the model to the object storage service.
步骤S603,对象存储服务向第一模型管理服务反馈上传完成的通知信息。Step S603, the object storage service feeds back the notification information of upload completion to the first model management service.
步骤S604,第一模型管理服务向客户端反馈上传完成的通知信息。Step S604, the first model management service feeds back the notification information of upload completion to the client.
步骤S605,对象存储服务向第一模型管理服务反馈生成的新增模型事件通知,并同时将该新增模型事件通知发送至第二模型管理服务。Step S605, the object storage service feeds back the generated new model event notification to the first model management service, and at the same time sends the new model event notification to the second model management service.
步骤S606,第一模型管理服务从对象存储服务中拉取模型。Step S606, the first model management service pulls the model from the object storage service.
步骤S607,对象存储服务向第一模型管理服务反馈模型拉取完成信息。In step S607, the object storage service feeds back model pull completion information to the first model management service.
步骤S608,第二模型管理服务同步从对象存储服务中拉取模型。Step S608, the second model management service synchronously pulls the model from the object storage service.
步骤S609,对象存储服务向第二模型管理服务反馈模型拉取完成信息。In step S609, the object storage service feeds back model pull completion information to the second model management service.
这里,步骤S606和步骤S608是同步执行的。即对象存储服务向各个模型管理节点发送新增模型事件通知之后,各个模型管理节点同步从对象存储服务拉取模型。Here, step S606 and step S608 are executed synchronously. That is, after the object storage service sends a new model event notification to each model management node, each model management node pulls the model from the object storage service synchronously.
第三步,视图解析服务共享和使用上传到对象存储服务的模型。In the third step, the view analysis service shares and uses the model uploaded to the object storage service.
在一些实施例中,模型分发到模型管理服务后,视图解析服务集成模型管理服务接口的客户端软件开发工具包后,安装SDK,运行的视图解析服务下载模型时,会通过相应的模型管理服务的本地磁盘读取模型;客户端节点下载模型后也会在本地缓存一次模型,以便共享给该节点上的其他解析服务使用该模型。如此,通过提供客户端工具和SDK方便模型管理和应用程序使用。In some embodiments, after the model is distributed to the model management service, after the view analysis service integrates the client software development kit of the model management service interface, the SDK is installed, and when the running view analysis service downloads the model, it will pass the corresponding model management service The local disk reads the model; after the client node downloads the model, it also caches the model locally so that it can be shared with other parsing services on the node to use the model. In this way, model management and application usage are facilitated by providing client tools and SDKs.
在本申请实施例中,在视图分析平台,用户面对大规模接入和数百吉比特的模型文件时,可以选择部署模型管理服务到系统;并且分离视图解析或检索程序和模型文件,通过使用模型管理系统客户端SDK单独上传模型,并且在解析或者检索服务中集成该模型管理系统的客户端SDK,调用相关接口完成模型部署,分发和下载适用。如此,通过分离模型大大减少视图解析服务镜像体积,节省存储空间和传输带宽;这种模型分发缓存方式能满足更大规模更大压力的模型下载需要,模型管理服务可弹性伸缩;通过结构化的模型元信息描述算法模型,将模型元信息与模型文件分开管理,同一个模型可以做到被不同路径引用,实现异步清理。In the embodiment of this application, when facing large-scale access and hundreds of gigabytes of model files on the view analysis platform, users can choose to deploy model management services to the system; and separate view analysis or retrieval programs and model files, through Use the client SDK of the model management system to upload the model separately, and integrate the client SDK of the model management system in the parsing or retrieval service, call the relevant interface to complete the model deployment, distribution and downloading are applicable. In this way, by separating the models, the image size of the view parsing service is greatly reduced, saving storage space and transmission bandwidth; this model distribution cache method can meet the needs of larger-scale and higher-pressure model downloads, and the model management service can be elastically scaled; through structured The model meta information describes the algorithm model, manages the model meta information and the model file separately, and the same model can be referenced by different paths to realize asynchronous cleaning.
本申请实施例提供一种模型管理装置,图7为本申请实施例模型管理服务的结构组成示意图,如图7所示,所述模型管理服务700包括:The embodiment of the present application provides a model management device. FIG. 7 is a schematic diagram of the structure and composition of the model management service in the embodiment of the present application. As shown in FIG. 7, the model management service 700 includes:
第一同步模块701,被配置为在所述模型管理服务满足预设同步条件的情况下,从对象存储服务中同步目标模型的目标模型文件和目标模型元信息;第一响应模块702,被配置为响应于视图解析服务的加载请求,将所述目标模型文件和所述目标模型元信息发送至所述视图解析服务。The first synchronization module 701 is configured to synchronize the target model file and target model meta information of the target model from the object storage service when the model management service meets the preset synchronization conditions; the first response module 702 is configured In response to the loading request of the view resolution service, the target model file and the target model meta information are sent to the view resolution service.
在一些实施例中,所述在所述模型管理服务满足预设同步条件的情况下,所述模型管理服务还包括:第一接收模块,被配置为接收客户端发送的模型的上传请求;所述模型包括:模型文件和模型元信息;第一上传模块,被配置为响应所述上传请求,将所述模型文件和所述模型元信息上传至所述对象存储服务。In some embodiments, when the model management service satisfies preset synchronization conditions, the model management service further includes: a first receiving module configured to receive a model upload request sent by a client; The model includes: a model file and model meta information; a first upload module configured to respond to the upload request and upload the model file and the model meta information to the object storage service.
在一些实施例中,所述第一上传模块,还被配置为响应所述上传请求,将所述模型文件和所述模型元信息按照不同的存储地址上传至所述对象存储服务。In some embodiments, the first upload module is further configured to, in response to the upload request, upload the model file and the model meta information to the object storage service according to different storage addresses.
在一些实施例中,所述第一上传模块,包括:第一确定子模块,被配置为基于所述模型元信息,确定所述对象存储服务中是否包括所述模型文件;第一上传子模块,被配置为响应于所述对象存储服务中不包括所述模型文件,将所述模型文件按照预设存储地址上传至所述对象存储服务;第一更新子模块,被配置为基于所述预设存储地址,对所述模型元信息进行更新;第二上传子模块,被配置为将更新后的模型元信息按照多级存储地址上传至所述对象存储服务。In some embodiments, the first uploading module includes: a first determining submodule configured to determine whether the object storage service includes the model file based on the model meta information; the first uploading submodule , configured to upload the model file to the object storage service according to a preset storage address in response to the object storage service not including the model file; the first update submodule is configured to based on the preset The storage address is set to update the model meta-information; the second uploading submodule is configured to upload the updated model meta-information to the object storage service according to the multi-level storage address.
在一些实施例中,所述第一确定子模块,包括:第一确定单元,被配置为确定所述模型元信息指向预设模型文件的引用路径;第一校验单元,被配置为基于所述引用路径对所述模型文件进行校验,得到校验结果;第二确定单元,被配置为基于所述校验结果,确定所述对象存储服务中是否包括所述模型文件。In some embodiments, the first determining submodule includes: a first determining unit configured to determine the reference path of the model meta-information pointing to a preset model file; a first checking unit configured to Verifying the model file with the reference path to obtain a verification result; the second determination unit is configured to determine whether the object storage service includes the model file based on the verification result.
在一些实施例中,所述模型管理服务满足预设同步条件,至少包括以下之一:所述模型管理服务接收到所述对象存储服务发送的事件通知消息;其中,所述事件通知消息表征所述对象存储服务中的模型变化事件;所述模型管理服务进行数据同步的历史时刻与当前时刻之间的时间间隔达到第一预设时长;所述模型管理服务在第二预设时长内未发起数据同步,且接收到客户端发送的模型同步指令;其中,所述第二预设时长大于所述第一预设时长。In some embodiments, the model management service satisfies preset synchronization conditions, including at least one of the following: the model management service receives an event notification message sent by the object storage service; wherein the event notification message represents the The model change event in the object storage service; the time interval between the historical moment and the current moment when the model management service performs data synchronization reaches the first preset duration; the model management service is not initiated within the second preset duration The data is synchronized, and a model synchronization instruction sent by the client is received; wherein, the second preset duration is longer than the first preset duration.
在一些实施例中,所述第一同步模块701,包括:第二确定子模块,被配置为确定在所述预设同步条件下所述对象存储服务中的模型变化事件;第一获取子模块,被配置为获取所述对象存储服务中与所述模型变化事件匹配的第一模型列表;第三确定子模块,被配置为在所述第一模型列表中,确定所述目标模型文件和所述目标模型元信息;第一同步子模块,被配置为基于所述目标模型文件和所述目标模型元信息,同步所述模型管理服务中的第二模型列表;其中,模型列表包括多个模型文件,以及每一模型文件对应的至少一组模型元信息。In some embodiments, the first synchronization module 701 includes: a second determination submodule configured to determine a model change event in the object storage service under the preset synchronization condition; a first acquisition submodule , configured to obtain a first model list in the object storage service that matches the model change event; a third determining submodule, configured to determine the target model file and the target model file in the first model list The target model meta information; the first synchronization submodule is configured to synchronize the second model list in the model management service based on the target model file and the target model meta information; wherein the model list includes a plurality of models files, and at least one set of model meta information corresponding to each model file.
在一些实施例中,在所述模型变化事件包括模型添加的情况下,所述第三确定子模块,包括:第三确定单元,被配置为在所述第一模型列表中,确定与所述第二模型列表不同的所述目标模型文件和 所述目标模型元信息;所述第一同步子模块,包括:第一下载单元,被配置为从所述对象存储服务中下载所述目标模型文件和所述目标模型元信息;第一添加单元,被配置为将所述目标模型文件和所述目标模型元信息添加至所述第二模型列表。In some embodiments, when the model change event includes model addition, the third determining submodule includes: a third determining unit configured to determine, in the first model list, the The target model file and the target model meta information are different in the second model list; the first synchronization submodule includes: a first download unit configured to download the target model file from the object storage service and the target model meta information; a first adding unit configured to add the target model file and the target model meta information to the second model list.
在一些实施例中,在所述模型变化事件包括模型删除的情况下,所述第三确定子模块,包括:第一接收单元,被配置为接收所述客户端发送的模型删除请求;其中,所述模型删除请求携带第三存储地址;第四确定单元,被配置为基于所述第三存储地址,从所述第一模型列表中确定所述目标模型元信息;第五确定单元,被配置为确定所述目标模型元信息在所述第一模型列表中指向的所述目标模型文件。In some embodiments, when the model change event includes model deletion, the third determining submodule includes: a first receiving unit configured to receive a model deletion request sent by the client; wherein, The model deletion request carries a third storage address; the fourth determination unit is configured to determine the target model meta information from the first model list based on the third storage address; the fifth determination unit is configured To determine the target model file pointed to by the target model meta information in the first model list.
在一些实施例中,所述第一同步子模块,包括:第一删除单元,被配置为响应于所述模型删除请求,对所述对象存储服务中的所述目标模型元信息和所述目标模型文件进行删除,以使所述对象存储服务广播所述同步清理指令;第二接收单元,被配置为接收所述对象存储服务在删除所述目标模型文件和所述目标模型元信息之后广播的所述同步清理指令;第二删除单元,被配置为响应于所述同步清理指令,在述第二模型列表中删除所述目标模型文件和所述目标模型元信息。In some embodiments, the first synchronization submodule includes: a first deletion unit configured to, in response to the model deletion request, update the target model meta information and the target The model file is deleted, so that the object storage service broadcasts the synchronization cleanup instruction; the second receiving unit is configured to receive the object storage service broadcast after deleting the target model file and the target model meta information The synchronization cleaning instruction; a second deletion unit configured to delete the target model file and the target model meta information in the second model list in response to the synchronization cleaning instruction.
在一些实施例中,所述第一删除单元,包括:第一删除子单元,被配置为响应于所述模型删除请求,在所述对象存储服务中删除所述目标模型元信息;第二删除子单元,被配置为按照预设时长间隔,在所述对象存储服务中删除所述目标模型文件。In some embodiments, the first deletion unit includes: a first deletion subunit configured to delete the target model meta information in the object storage service in response to the model deletion request; the second deletion The subunit is configured to delete the target model file in the object storage service according to a preset time interval.
在一些实施例中,所述模型管理服务还包括:第二确定模块,被配置为响应于接收到所述客户端发送的模型元信息的检索请求,确定所述检索请求携带的多级存储地址的索引参数;第一检索模块,被配置为基于所述多级存储地址的索引参数中的至少一级存储地址的索引参数,对所述对象存储服务中的模型元信息进行检索,得到匹配所述检索请求的待反馈模型元信息;反馈模块,被配置为将所述待反馈模型元信息反馈至所述客户端。In some embodiments, the model management service further includes: a second determining module configured to, in response to receiving a retrieval request for model meta information sent by the client, determine the multi-level storage address carried in the retrieval request index parameters; the first retrieval module is configured to retrieve the model meta information in the object storage service based on the index parameters of at least one level of storage addresses in the index parameters of the multi-level storage addresses, and obtain the matching The model meta information to be fed back of the retrieval request; a feedback module configured to feed back the model meta information to be fed back to the client.
在一些实施例中,在所述对象存储服务中的模型变化事件包括模型添加的情况下,所述第一响应模块702,包括:第一接收子模块,被配置为接收所述视图解析服务在运行运行软件工具包的情况下发送的模型下载请求;其中,所述运行软件工具包包括所述模型管理服务的接口;第一调用单元,被配置为响应于所述模型下载请求,通过所述接口将所述目标模型文件和所述目标模型元信息发送至所述视图解析服务。In some embodiments, when the model change event in the object storage service includes a model addition, the first response module 702 includes: a first receiving submodule configured to receive the The model download request sent under the condition of running the running software toolkit; wherein, the running software toolkit includes the interface of the model management service; the first calling unit is configured to respond to the model download request through the The interface sends the target model file and the target model meta information to the view parsing service.
本申请实施例提供一种客户端,所述客户端包括:处理器、存储有所述处理器可执行指令的存储器;其中,所述处理器被配置为:向模型管理服务发送目标模型的加载请求;所述目标模型包括:目标模型文件和目标模型元信息;接收所述模型管理服务基于所述加载请求发送的所述目标模型元信息在对象存储服务中的多级存储地址;基于所述多级存储地址,在所述对象存储服务中确定所述目标模型元信息和所述目标模型元信息对应的所述目标模型文件。An embodiment of the present application provides a client, the client includes: a processor, and a memory storing instructions executable by the processor; wherein the processor is configured to: send the load of the target model to the model management service request; the target model includes: target model file and target model meta information; receive the multi-level storage address in the object storage service of the target model meta information sent by the model management service based on the loading request; based on the A multi-level storage address, determining the target model meta-information and the target model file corresponding to the target model meta-information in the object storage service.
在一些实施例中,所述处理器,还被配置为基于所述存储地址在所述对象存储服务中定位所述目标模型元信息;确定所述目标模型元信息携带的所述目标模型文件在所述对象存储服务中的存储地址;基于所述目标模型文件在所述对象存储服务中的存储地址,在所述对象存储服务中定位所述目标模型文件。In some embodiments, the processor is further configured to locate the target model meta-information in the object storage service based on the storage address; determine that the target model file carried in the target model meta-information is in A storage address in the object storage service; based on the storage address of the target model file in the object storage service, locate the target model file in the object storage service.
在一些实施例中,所述处理器,还被配置为缓存所述目标模型文件和所述目标模型元信息;将所述目标模型文件和所述目标模型元信息共享至所述至少一个视图解析服务。In some embodiments, the processor is further configured to cache the target model file and the target model meta information; share the target model file and the target model meta information to the at least one view resolution Serve.
需要说明的是,以上装置实施例的描述,与上述方法实施例的描述是类似的,具有同方法实施例相似的有益效果。对于本申请装置实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。It should be noted that the description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
需要说明的是,本申请实施例中,如果以软件功能模块的形式实现上述的模型管理方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台电子设备(可以是终端、服务器等)执行本申请各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、运动硬盘、只读存储器 (Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本申请实施例不限制于任何特定的硬件和软件结合。It should be noted that, in the embodiment of the present application, if the above-mentioned model management method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for Make an electronic device (which may be a terminal, a server, etc.) execute all or part of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, sports hard disk, read only memory (Read Only Memory, ROM), magnetic disk or optical disk, and various media that can store program codes. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
对应地,本申请实施例再提供一种计算机程序产品,所述计算机程序产品包括计算机可执行指令,该计算机可执行指令被执行后,能够实现本申请实施例提供的模型管理方法中的步骤。Correspondingly, the embodiment of the present application further provides a computer program product, the computer program product includes computer-executable instructions, and after the computer-executable instructions are executed, the steps in the model management method provided in the embodiments of the present application can be realized.
本公开实施例还提供一种计算机程序,计算机程序包括计算机可读代码,在计算机可读代码在电子设备中运行的情况下,电子设备的处理器执行如上述任一实施例所述模型管理方法。An embodiment of the present disclosure also provides a computer program, the computer program includes computer readable codes, and when the computer readable codes run in the electronic device, the processor of the electronic device executes the model management method described in any of the above embodiments .
相应的,本申请实施例再提供一种计算机存储介质,所述计算机存储介质上存储有计算机可执行指令,所述该计算机可执行指令被处理器执行时实现上述实施例提供的模型管理方法的步骤。Correspondingly, the embodiment of the present application further provides a computer storage medium, the computer storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the model management method provided by the above-mentioned embodiments is implemented. step.
相应的,本申请实施例提供一种客户端,图8为本申请实施例客户端的组成结构示意图,如图8所示,所述客户端800包括:一个处理器801、至少一个通信总线、通信接口802、至少一个外部通信接口和存储器803。其中,通信接口802配置为实现这些组件之间的连接通信。其中,通信接口802可以包括显示屏,外部通信接口可以包括标准的有线接口和无线接口。其中所述处理器801,配置为执行存储器中图像处理程序,以实现上述实施例提供的模型管理方法的步骤。Correspondingly, the embodiment of the present application provides a client. FIG. 8 is a schematic diagram of the composition and structure of the client in the embodiment of the present application. As shown in FIG. 8 , the client 800 includes: a processor 801, at least one communication bus, a communication Interface 802, at least one external communication interface and memory 803. Wherein, the communication interface 802 is configured to realize connection and communication between these components. Wherein, the communication interface 802 may include a display screen, and the external communication interface may include a standard wired interface and a wireless interface. Wherein the processor 801 is configured to execute the image processing program in the memory, so as to realize the steps of the model management method provided in the above embodiments.
以上模型管理系统、电子设备和存储介质实施例的描述,与上述方法实施例的描述是类似的,具有同相应方法实施例相似的技术描述和有益效果,限于篇幅,可案件上述方法实施例的记载,故在此不再赘述。对于本申请模型管理系统、电子设备和存储介质实施例中未披露的技术细节,请参照本申请方法实施例的描述而理解。The descriptions of the above embodiments of the model management system, electronic equipment, and storage media are similar to the descriptions of the above method embodiments, and have similar technical descriptions and beneficial effects as the corresponding method embodiments. records, so I will not repeat them here. For the technical details not disclosed in the embodiments of the model management system, electronic equipment and storage media of the present application, please refer to the description of the method embodiments of the present application for understanding.
本公开实施例中涉及的设备可以是系统、方法和计算机程序产品中的至少之一。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本公开的各个方面的计算机可读程序指令。The device involved in the embodiments of the present disclosure may be at least one of a system, a method, and a computer program product. A computer program product may include a computer readable storage medium having computer readable program instructions thereon for causing a processor to implement various aspects of the present disclosure.
计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是但不限于电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、可擦除可编程只读存储器(Electrical Programmable Read Only Memory,EPROM)或闪存、静态随机存取存储器(Static Random-Access Memory,SRAM)、便携式压缩盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、数字多功能盘(Digital Video Disc,DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。A computer readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. Examples of computer-readable storage media (a non-exhaustive list) include: portable computer disks, hard disks, Random Access Memory (RAM), Read-Only Memory (ROM), erasable Electrical Programmable Read Only Memory (EPROM) or flash memory, Static Random-Access Memory (Static Random-Access Memory, SRAM), Portable Compact Disc Read-Only Memory (CD-ROM), Digital Video Discs (DVDs), memory sticks, floppy disks, mechanically encoded devices such as punched cards or raised structures in grooves with instructions stored thereon, and any suitable combination of the foregoing. As used herein, computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., pulses of light through fiber optic cables), or transmitted electrical signals.
这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和无线网中的至少之一下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和边缘服务器中的至少之一。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device over at least one of a network, such as the Internet, a local area network, a wide area network, and a wireless network. . The network may include at least one of copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and edge servers. A network adapter card or a network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .
用于执行本公开操作的计算机程序指令可以是汇编指令、指令集架构(Industry Standard Architecture,ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言,诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络,包括局域网(Local Area Network,LAN)或广域网(Wide Area Network,WAN)连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、FPGA或可编程逻辑阵列(Programmable Logic Arrays, PLA),该电子电路可以执行计算机可读程序指令,从而实现本公开的各个方面。Computer program instructions for performing the operations of the present disclosure may be assembly instructions, Industry Standard Architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or in one or more source or object code written in any combination of programming languages, including object-oriented programming languages—such as Smalltalk, C++, etc., and conventional procedural programming languages, such as the “C” language or similar programming languages. Computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement. In cases involving a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or it may be connected to an external computer (for example, using Internet Service Provider to connect via the Internet). In some embodiments, electronic circuits, such as programmable logic circuits, FPGAs, or programmable logic arrays (Programmable Logic Arrays, PLAs), can be customized by using state information of computer-readable program instructions, which can execute computer-readable Read program instructions, thereby implementing various aspects of the present disclosure.
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。应理解,在本申请的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。It should be understood that reference throughout the specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the present application. Thus, appearances of "in one embodiment" or "in an embodiment" in various places throughout the specification are not necessarily referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the order of execution, and the execution order of the processes should be determined by their functions and internal logic, and should not be used in the embodiments of the present application. The implementation process constitutes any limitation. The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components can be combined, or May be integrated into another system, or some features may be ignored, or not implemented. In addition, the coupling, or direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical or other forms of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元;既可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed to multiple network units; Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(Read Only Memory,ROM)、磁碟或者光盘等各种可以存储程序代码的介质。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can be used as a single unit, or two or more units can be integrated into one unit; the above-mentioned integration The unit can be realized in the form of hardware or in the form of hardware plus software functional unit. Those of ordinary skill in the art can understand that all or part of the steps to realize the above method embodiments can be completed by hardware related to program instructions, and the aforementioned programs can be stored in computer-readable storage media. When the program is executed, the execution includes: The steps of the foregoing method embodiments; and the foregoing storage media include: removable storage devices, read-only memory (Read Only Memory, ROM), magnetic disks or optical disks and other media that can store program codes.
或者,本申请上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台电子设备(可以是个人计算机、服务器、或者网络设备等)执行本申请各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、磁碟或者光盘等各种可以存储程序代码的介质。以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。Alternatively, if the above-mentioned integrated units of the present application are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for Make an electronic device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the methods described in the various embodiments of the present application. The aforementioned storage medium includes various media capable of storing program codes such as removable storage devices, ROMs, magnetic disks or optical disks. The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.
工业实用性Industrial Applicability
本申请实施例提供一种模型管理方法、模型管理服务、客户端及存储介质,其中,所述方法包括:在所述模型管理服务满足预设同步条件的情况下,从对象存储服务中同步目标模型的目标模型文件和目标模型元信息;响应于视图解析服务的加载请求,将所述目标模型文件和所述目标模型元信息发送至所述视图解析服务。An embodiment of the present application provides a model management method, a model management service, a client, and a storage medium, wherein the method includes: synchronizing the target from the object storage service when the model management service meets the preset synchronization conditions The target model file and target model meta information of the model; in response to the loading request of the view parsing service, sending the target model file and the target model meta information to the view parsing service.

Claims (20)

  1. 一种模型管理方法,应用于模型管理服务,所述方法包括:A model management method applied to a model management service, the method comprising:
    在所述模型管理服务满足预设同步条件的情况下,从对象存储服务中同步目标模型的目标模型文件和目标模型元信息;Synchronizing the target model file and target model meta information of the target model from the object storage service when the model management service satisfies a preset synchronization condition;
    响应于视图解析服务的加载请求,将所述目标模型文件和所述目标模型元信息发送至所述视图解析服务。In response to the loading request of the view resolution service, the target model file and the target model meta information are sent to the view resolution service.
  2. 根据权利要求1所述的方法,其中,所述在所述模型管理服务满足预设同步条件的情况下,从对象存储服务中同步目标模型的目标模型文件和目标模型元信息之前,所述方法还包括:The method according to claim 1, wherein when the model management service satisfies preset synchronization conditions, before synchronizing the target model file and target model meta information of the target model from the object storage service, the method Also includes:
    接收客户端发送的模型的上传请求;所述模型包括:模型文件和模型元信息;receiving the upload request of the model sent by the client; the model includes: model file and model meta information;
    响应所述上传请求,将所述模型文件和所述模型元信息上传至所述对象存储服务。In response to the upload request, upload the model file and the model meta information to the object storage service.
  3. 根据权利要求2所述的方法,其中,所述响应所述上传请求,将所述模型文件和所述模型元信息上传至所述对象存储服务,包括:The method according to claim 2, wherein, in response to the upload request, uploading the model file and the model meta information to the object storage service comprises:
    响应所述上传请求,将所述模型文件和所述模型元信息按照不同的存储地址上传至所述对象存储服务。In response to the upload request, upload the model file and the model meta information to the object storage service according to different storage addresses.
  4. 根据权利要求3所述的方法,其中,所述响应所述上传请求,将所述模型文件和所述模型元信息按照不同的存储地址上传至所述对象存储服务,包括:The method according to claim 3, wherein in response to the upload request, uploading the model file and the model meta information to the object storage service according to different storage addresses comprises:
    基于所述模型元信息,确定所述对象存储服务中是否包括所述模型文件;Based on the model meta information, determine whether the object storage service includes the model file;
    响应于所述对象存储服务中不包括所述模型文件,将所述模型文件按照预设存储地址上传至所述对象存储服务;In response to the object storage service not including the model file, uploading the model file to the object storage service according to a preset storage address;
    基于所述预设存储地址,对所述模型元信息进行更新;updating the model meta information based on the preset storage address;
    将更新后的模型元信息按照多级存储地址上传至所述对象存储服务。Upload the updated model meta information to the object storage service according to the multi-level storage address.
  5. 根据权利要求4所述的方法,其中,所述基于所述模型元信息,确定所述对象存储服务中是否包括所述模型文件,包括:The method according to claim 4, wherein the determining whether the object storage service includes the model file based on the model meta information comprises:
    确定所述模型元信息指向预设模型文件的引用路径;Determine the reference path of the model meta-information pointing to the preset model file;
    基于所述引用路径对所述模型文件进行校验,得到校验结果;Verifying the model file based on the reference path to obtain a verification result;
    基于所述校验结果,确定所述对象存储服务中是否包括所述模型文件。Based on the verification result, it is determined whether the object storage service includes the model file.
  6. 根据权利要求1至5任一项所述的方法,其中,所述模型管理服务满足预设同步条件,至少包括以下之一:The method according to any one of claims 1 to 5, wherein the model management service satisfies preset synchronization conditions, including at least one of the following:
    所述模型管理服务接收到所述对象存储服务发送的事件通知消息;其中,所述事件通知消息表征所述对象存储服务中的模型变化事件;The model management service receives an event notification message sent by the object storage service; wherein, the event notification message represents a model change event in the object storage service;
    所述模型管理服务进行数据同步的历史时刻与当前时刻之间的时间间隔达到第一预设时长;The time interval between the historical moment and the current moment when the model management service performs data synchronization reaches a first preset duration;
    所述模型管理服务在第二预设时长内未发起数据同步,且接收到客户端发送的模型同步指令;其中,所述第二预设时长大于所述第一预设时长。The model management service does not initiate data synchronization within a second preset duration, and receives a model synchronization instruction sent by the client; wherein, the second preset duration is longer than the first preset duration.
  7. 根据权利要求1至6任一项所述的方法,其中,所述在所述模型管理服务满足预设同步条件的情况下,从对象存储服务中同步目标模型的目标模型文件和目标模型元信息,包括:The method according to any one of claims 1 to 6, wherein, in the case that the model management service satisfies preset synchronization conditions, synchronizing the target model file and target model meta information of the target model from the object storage service ,include:
    确定在所述预设同步条件下所述对象存储服务中的模型变化事件;determining a model change event in the object storage service under the preset synchronization condition;
    获取所述对象存储服务中与所述模型变化事件匹配的第一模型列表;Obtain a first model list matching the model change event in the object storage service;
    在所述第一模型列表中,确定所述目标模型文件和所述目标模型元信息;In the first model list, determine the target model file and the target model meta information;
    基于所述目标模型文件和所述目标模型元信息,同步所述模型管理服务中的第二模型列表;其中,模型列表包括多个模型文件,以及每一模型文件对应的至少一组模型元信息。Synchronize the second model list in the model management service based on the target model file and the target model meta information; wherein, the model list includes a plurality of model files, and at least one set of model meta information corresponding to each model file .
  8. 根据权利要求7所述的方法,其中,在所述模型变化事件包括模型添加的情况下,所述在所述第一模型列表中,确定所述目标模型文件和所述目标模型元信息,包括:The method according to claim 7, wherein, in the case that the model change event includes a model addition, in the first model list, determining the target model file and the target model meta information includes :
    在所述第一模型列表中,确定与所述第二模型列表不同的所述目标模型文件和所述目标模型元信息;In the first model list, determining the target model file and the target model meta information different from the second model list;
    所述基于所述目标模型文件和所述目标模型元信息,同步所述模型管理服务中的第二模型列表,包括:The synchronizing the second model list in the model management service based on the target model file and the target model meta information includes:
    从所述对象存储服务中下载所述目标模型文件和所述目标模型元信息;downloading the object model file and the object model meta information from the object storage service;
    将所述目标模型文件和所述目标模型元信息添加至所述第二模型列表。Adding the target model file and the target model meta information to the second model list.
  9. 根据权利要求7所述的方法,其中,在所述模型变化事件包括模型删除的情况下,所述在所述第一模型列表中,确定所述目标模型文件和所述目标模型元信息,包括:The method according to claim 7, wherein, in the case that the model change event includes model deletion, determining the target model file and the target model meta information in the first model list includes :
    接收所述客户端发送的模型删除请求;其中,所述模型删除请求携带第三存储地址;receiving a model deletion request sent by the client; wherein, the model deletion request carries a third storage address;
    基于所述第三存储地址,从所述第一模型列表中确定所述目标模型元信息;determining the target model meta information from the first model list based on the third storage address;
    确定所述目标模型元信息在所述第一模型列表中指向的所述目标模型文件。Determine the target model file pointed to by the target model meta information in the first model list.
  10. 根据权利要求9所述的方法,其中,所述基于所述目标模型文件和所述目标模型元信息,同步所述模型管理服务中的第二模型列表,包括:The method according to claim 9, wherein the synchronizing the second model list in the model management service based on the target model file and the target model meta-information comprises:
    响应于所述模型删除请求,对所述对象存储服务中的所述目标模型元信息和所述目标模型文件进行删除,以使所述对象存储服务广播所述同步清理指令;In response to the model deletion request, delete the target model meta information and the target model file in the object storage service, so that the object storage service broadcasts the synchronization cleaning instruction;
    接收所述对象存储服务在删除所述目标模型文件和所述目标模型元信息之后广播的所述同步清理指令;receiving the synchronization cleanup instruction broadcast by the object storage service after deleting the target model file and the target model meta-information;
    响应于所述同步清理指令,在述第二模型列表中删除所述目标模型文件和所述目标模型元信息。In response to the synchronization cleanup instruction, the target model file and the target model meta information are deleted in the second model list.
  11. 根据权利要求10所述的方法,其中,所述响应于所述模型删除请求,对所述对象存储服务中的所述待删除模型元信息和所述待删除模型文件进行删除,包括:The method according to claim 10, wherein, in response to the model deletion request, deleting the meta information of the model to be deleted and the model file to be deleted in the object storage service comprises:
    响应于所述模型删除请求,在所述对象存储服务中删除所述目标模型元信息;deleting the target model meta information in the object storage service in response to the model deletion request;
    按照预设时长间隔,在所述对象存储服务中删除所述目标模型文件。The target model file is deleted in the object storage service according to a preset time interval.
  12. 根据权利要求2至11任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 2 to 11, wherein the method further comprises:
    响应于接收到所述客户端发送的模型元信息的检索请求,确定所述检索请求携带的多级存储地址的索引参数;In response to receiving a retrieval request for model meta information sent by the client, determine an index parameter of a multi-level storage address carried in the retrieval request;
    基于所述多级存储地址的索引参数中的至少一级存储地址的索引参数,对所述对象存储服务中的模型元信息进行检索,得到匹配所述检索请求的待反馈模型元信息;Retrieving the model meta information in the object storage service based on the index parameters of at least one level of storage addresses among the index parameters of the multi-level storage addresses, and obtaining the model meta information to be fed back that matches the retrieval request;
    将所述待反馈模型元信息反馈至所述客户端。Feedback the meta information of the model to be fed back to the client.
  13. 根据权利要求1至12任一项所述的方法,其中,在所述对象存储服务中的模型变化事件包括模型添加的情况下,所述响应于视图解析服务的加载请求,将所述目标模型文件和所述目标模型元信息发送至所述视图解析服务,包括:The method according to any one of claims 1 to 12, wherein, in the case that the model change event in the object storage service includes a model addition, in response to the load request of the view resolution service, the target model The file and the target model meta information are sent to the view parsing service, including:
    接收所述视图解析服务在运行软件工具包的情况下发送的模型下载请求;其中,所述运行软件工具包包括所述模型管理服务的接口;receiving a model download request sent by the view parsing service when running a software toolkit; wherein, the running software toolkit includes an interface of the model management service;
    响应于所述模型下载请求,通过所述接口将所述目标模型文件和所述目标模型元信息发送至所述视图解析服务。In response to the model download request, sending the target model file and the target model meta information to the view parsing service through the interface.
  14. 一种模型管理方法,其中,应用于客户端,所述方法包括:A model management method, wherein, applied to a client, the method includes:
    向模型管理服务发送目标模型的加载请求;其中,所述目标模型包括:目标模型文件和目标模型元信息;Sending a loading request of the target model to the model management service; wherein, the target model includes: target model file and target model meta information;
    接收所述模型管理服务基于所述加载请求发送的所述目标模型元信息在对象存储服务中的多级存储地址;receiving the multi-level storage address in the object storage service of the target model meta information sent by the model management service based on the loading request;
    基于所述多级存储地址,在所述对象存储服务中确定所述目标模型元信息和所述目标模型元信息对应的所述目标模型文件。Based on the multi-level storage address, determine the target model meta-information and the target model file corresponding to the target model meta-information in the object storage service.
  15. 根据权利要求14所述的方法,其中,所述基于所述多级存储地址,在所述对象存储服务中确定所述目标模型元信息和所述目标模型元信息对应的所述目标模型文件,包括:The method according to claim 14, wherein, based on the multi-level storage address, determining the target model meta-information and the target model file corresponding to the target model meta-information in the object storage service, include:
    基于所述多级存储地址在所述对象存储服务中定位所述目标模型元信息;locating the target model meta information in the object storage service based on the multi-level storage address;
    确定所述目标模型元信息携带的所述目标模型文件在所述对象存储服务中的存储地址;determining the storage address of the target model file carried in the target model meta-information in the object storage service;
    基于所述目标模型文件在所述对象存储服务中的存储地址,在所述对象存储服务中定位所述目标模型文件。The target model file is located in the object storage service based on the storage address of the target model file in the object storage service.
  16. 根据权利要求14或15所述的方法,其中,所述客户端包括至少一个视图解析服务,所述基于所述多级存储地址,在所述对象存储服务中确定所述目标模型元信息和所述目标模型元信息对应的所述目标模型文件之后,所述方法还包括:The method according to claim 14 or 15, wherein the client includes at least one view resolution service, and based on the multi-level storage address, the target model meta-information and the After the target model file corresponding to the target model meta information, the method further includes:
    缓存所述目标模型文件和所述目标模型元信息;caching the target model file and the target model meta information;
    将所述目标模型文件和所述目标模型元信息共享至所述至少一个视图解析服务。Sharing the target model file and the target model meta information to the at least one view resolution service.
  17. 一种模型管理服务,其中,所述模型管理服务包括:A model management service, wherein the model management service includes:
    第一同步模块,被配置为在所述模型管理服务满足预设同步条件的情况下,从对象存储服务中同步目标模型的目标模型文件和目标模型元信息;The first synchronization module is configured to synchronize the target model file and the target model meta information of the target model from the object storage service when the model management service satisfies a preset synchronization condition;
    第一响应模块,被配置为响应于视图解析服务的加载请求,将所述目标模型文件和所述目标模型元信息发送至所述视图解析服务。The first response module is configured to send the target model file and the target model meta information to the view resolution service in response to the load request of the view resolution service.
  18. 一种客户端,其中,所述客户端包括:处理器、存储有所述处理器可执行指令的存储器;其中,所述处理器被配置为:A client, wherein the client includes: a processor and a memory storing instructions executable by the processor; wherein the processor is configured to:
    向模型管理服务发送目标模型的加载请求;所述目标模型包括:目标模型文件和目标模型元信息;Send a loading request of the target model to the model management service; the target model includes: target model file and target model meta information;
    接收所述模型管理服务基于所述加载请求发送的所述目标模型元信息在对象存储服务中的多级存储地址;receiving the multi-level storage address in the object storage service of the target model meta information sent by the model management service based on the loading request;
    基于所述多级存储地址,在所述对象存储服务中确定所述目标模型元信息和所述目标模型元信息对应的所述目标模型文件。Based on the multi-level storage address, determine the target model meta-information and the target model file corresponding to the target model meta-information in the object storage service.
  19. 一种计算机可读存储介质,其上存储有程序,应用于计算机设备中,其中,所述程序被处理器执行时,实现如权利要求1至13任一项所述的方法,或,所述程序被处理器执行时,实现如权利要求14至16任一项所述的方法。A computer-readable storage medium, on which a program is stored and applied to a computer device, wherein, when the program is executed by a processor, the method according to any one of claims 1 to 13 is implemented, or, the When the program is executed by the processor, the method according to any one of claims 14 to 16 is realized.
  20. 一种计算机程序,所述计算机程序包括计算机可读代码,在所述计算机可读代码在电子设备中运行的情况下,所述电子设备的处理器执行用于实现如权利要求1至13任一项所述的方法,或,所述程序被处理器执行时,实现如权利要求14至16任一项所述的方法。A computer program, said computer program comprising computer readable code, in the case of said computer readable code running in an electronic device, a processor of said electronic device executes to implement any one of claims 1 to 13 The method described in claim 1, or, when the program is executed by a processor, realize the method described in any one of claims 14 to 16.
PCT/CN2022/129066 2022-01-14 2022-11-01 Model management method, model management service, client end, storage medium, and program WO2023134275A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210044896.8A CN114398188A (en) 2022-01-14 2022-01-14 Model management method, model management service, client, and storage medium
CN202210044896.8 2022-01-14

Publications (1)

Publication Number Publication Date
WO2023134275A1 true WO2023134275A1 (en) 2023-07-20

Family

ID=81231262

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/129066 WO2023134275A1 (en) 2022-01-14 2022-11-01 Model management method, model management service, client end, storage medium, and program

Country Status (2)

Country Link
CN (1) CN114398188A (en)
WO (1) WO2023134275A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117744630A (en) * 2024-02-19 2024-03-22 卓世智星(天津)科技有限公司 Model access method and device and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114398188A (en) * 2022-01-14 2022-04-26 深圳市商汤科技有限公司 Model management method, model management service, client, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103812939A (en) * 2014-02-17 2014-05-21 李漾 Big data storage system
US20170201415A1 (en) * 2016-01-11 2017-07-13 Netapp, Inc. Methods and systems for selecting compatible resources in networked storage environments
CN108764808A (en) * 2018-03-29 2018-11-06 北京九章云极科技有限公司 Data Analysis Services system and its on-time model dispositions method
CN113419750A (en) * 2021-08-24 2021-09-21 北京华品博睿网络技术有限公司 Model reasoning service calling system and method
CN114398188A (en) * 2022-01-14 2022-04-26 深圳市商汤科技有限公司 Model management method, model management service, client, and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103812939A (en) * 2014-02-17 2014-05-21 李漾 Big data storage system
US20170201415A1 (en) * 2016-01-11 2017-07-13 Netapp, Inc. Methods and systems for selecting compatible resources in networked storage environments
CN108764808A (en) * 2018-03-29 2018-11-06 北京九章云极科技有限公司 Data Analysis Services system and its on-time model dispositions method
CN113419750A (en) * 2021-08-24 2021-09-21 北京华品博睿网络技术有限公司 Model reasoning service calling system and method
CN114398188A (en) * 2022-01-14 2022-04-26 深圳市商汤科技有限公司 Model management method, model management service, client, and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117744630A (en) * 2024-02-19 2024-03-22 卓世智星(天津)科技有限公司 Model access method and device and electronic equipment

Also Published As

Publication number Publication date
CN114398188A (en) 2022-04-26

Similar Documents

Publication Publication Date Title
WO2023134275A1 (en) Model management method, model management service, client end, storage medium, and program
US10803016B2 (en) Predictive models of file access patterns by application and file type
KR20200027413A (en) Method, device and system for storing data
US20190087439A1 (en) Data replication from a cloud-based storage resource
WO2016176601A1 (en) Massively-scalable, asynchronous backend cloud computing architecture
CN103098024A (en) Memebership tracking and data eviction in mobile middleware scenarios
US11977532B2 (en) Log record identification using aggregated log indexes
CN111177159B (en) Data processing system and method and data updating equipment
CN102272751B (en) Data integrity in a database environment through background synchronization
US11789745B2 (en) Systems and methods for automated and distributed configuration of computing devices
CN110704000A (en) Data processing method and device, electronic equipment and storage medium
CN112256676A (en) Method, device, equipment and medium for migrating database
US11775358B2 (en) Tenant copy operation in a microservice architecture
CN102187329B (en) Forgetting items with knowledge based synchronization
WO2007103405A2 (en) Synchronization of metadata in a distributed file system
US20190057028A1 (en) Conflict Resolution and Garbage Collection in Distributed Databases
US11314732B2 (en) Database migration technique
CN109445966A (en) Event-handling method, device, medium and calculating equipment
CN114691720A (en) Data query method, database system, readable medium and electronic device
CN113127496B (en) Method and device for determining change data in database, medium and equipment
CN113760928A (en) Cache data updating system and method
CN113722007A (en) Configuration method, device and system of VPN branch equipment
CN113760860B (en) Data reading method and device
CN113535478B (en) Data backup method and device, storage medium and electronic equipment
US11948024B2 (en) Automated dynamic payload testing of OData APIs

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22919909

Country of ref document: EP

Kind code of ref document: A1