Data control method, system, device and medium

By receiving data query requests in the training platform, determining and merging version directories, and using incremental data updates to create graphic and text data set files, the problem of large storage space usage and low data processing efficiency caused by duplicate data in different versions of data sets is solved. , achieving more efficient data processing.

CN113535404BActive Publication Date: 2024-10-11江苏云从曦和人工智能有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110866049.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-29
Publication Date
2024-10-11
Estimated Expiration
2041-07-29

AI Technical Summary

Technical Problem

Different versions of data sets contain a large amount of duplicate data, which results in large storage space usage and reduced data processing efficiency. Especially when processors such as GPUs read multiple data sets, the efficiency of the training platform is significantly reduced.

Method used

By receiving data query requests, determine the graphic and text data set file version directory of each version in the version dependency path, and use the stacked file system to merge versions to generate a new version directory so that the data requirements platform can access the new version directory. Read the corresponding graphic and text data set files and use incremental data updates to create graphic and text data set files to reduce duplicate data storage and improve data processing efficiency.

Benefits of technology

It effectively reduces the storage of duplicate data, improves the utilization of underlying storage space, significantly improves data processing efficiency, and solves the problem of reduced efficiency when the data processor reads multiple data sets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113535404B_ABST
    Figure CN113535404B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of data management and control technology, and specifically provides a data management method, system, device and medium, how to effectively reduce the storage space of a data set, and the problem of reduced data processing efficiency caused by external devices reading multiple data sets. To this end, after receiving a data query request sent by a data demand platform, the data management method of the present invention determines the version directory of each version of the graphic data set file in the version dependency path according to the request, and further merges the version directory to generate a new version directory, so that the data demand platform can read the corresponding graphic data set file, wherein each version of the graphic data set file in the version dependency path is created by incremental data update based on the previous version of the graphic data set file, ensuring that the data volume of the graphic data set meets the needs of the data demand platform, effectively utilizing the underlying storage space, and improving the data processing efficiency of the data demand platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data control technology, and specifically provides a data control method, system, device and medium. Background Art

[0002] The training platform provides functions including data set management, data annotation, and model training. The data set contains a large number of data files, including pictures, videos, and text files. At the same time, due to the needs of model training, there will be different versions of the data set to achieve model training and training improvement functions for different purposes. There is an inheritance relationship between different versions of data sets. For example, the V2 version of the data set is derived from the V1 version of the data set. Therefore, there will be a large amount of duplicate data between different versions of data sets, and there will also be some unique differences.

[0003] However, a large amount of duplicate data generated by different versions of data sets will occupy a large amount of storage space in the underlying storage space. In addition, when the training platform reads data from multiple different versions of data sets for training at the same time, since there will be a large amount of duplicate data in these data sets, the data reading amount of the training platform will be significantly increased. At present, the training platform usually uses a processor such as a graphics processing unit (GPU) to read data and train according to the read data. If the data reading amount increases, it will cause the I / O throughput of processors such as GPUs to increase, thereby reducing the data processing efficiency of processors such as GPUs, that is, reducing the training efficiency of the training platform. Summary of the invention

[0004] The present invention aims to solve the above technical problems, namely, how to effectively reduce the storage space of different versions of data sets with some duplicate data, and the problem of reduced data processing efficiency caused by external devices such as GPUs reading multiple data sets at the same time.

[0005] In a first aspect, the present invention provides a data management method, which is applied to graphic data management, and the method comprises:

[0006] Receiving a data query request sent by a data demand platform, wherein the data query request includes a version of a graphic data set file to be queried;

[0007] Determine the version directory of each version of the graphic data set file in the version dependency path of the version;

[0008] Merging the versions of the version directory to generate a new version directory, so that the data demand platform can read the corresponding graphic data set file by accessing the new version directory;

[0009] Each version of the graphic data set file in the version dependency path is created based on the graphic data set file of the previous version that it depends on, and the creation method includes performing data incremental update based on the graphic data set file of the previous version.

[0010] In a technical solution of the above data control method, the step of "merging the version directories to generate new version directories" includes:

[0011] Sorting the version directory according to a preset version order;

[0012] The sorted version directories are merged using a stacking file system to generate a new version directory, and the new version directory is mounted to a preset mount point.

[0013] In a technical solution of the above data control method, the method further includes performing data incremental update based on the graphic data set file on which the graphic data set file to be created depends through the following steps to complete the creation of the graphic data set file to be created:

[0014] Establishing the version and version directory of the image and text data set file to be created;

[0015] Using the version directory of the graphic data set file that the graphic data set file to be created depends on as the parent directory of the graphic data set file to be created, and mounting the version directory of the graphic data set file to be created under the parent directory;

[0016] Determining the graphic data that needs to be added according to the graphic data of the graphic data set file to be created and the graphic data of the dependent graphic data set file;

[0017] The image and text data to be added are stored in the storage space specified by the version directory of the image and text data set file to be created, so as to complete the creation of the image and text data set file to be created;

[0018] And / or, the method further comprises performing a full data backup based on the graphic data set file on which the graphic data set file to be created depends through the following steps, so as to complete the creation of the graphic data set file to be created:

[0019] Establishing the version and version directory of the image and text data set file to be created;

[0020] Using the version directory of the graphic data set file that the graphic data set file to be created depends on as the parent directory of the graphic data set file to be created, and mounting the version directory of the graphic data set file to be created under the parent directory;

[0021] All graphic data corresponding to the graphic data set file that the graphic data set file to be created depends on are stored in the storage space specified by the version directory of the graphic data set file to be created, so as to complete the creation of the graphic data set to be created.

[0022] In a technical solution of the above data control method, the step of "determining the graphic data to be added" specifically includes:

[0023] Respectively calculating hash values ​​of the graphic data of the graphic data set file to be created and the graphic data of the dependent graphic data set file;

[0024] The hash values ​​are compared to determine the graphic and text data that needs to be added.

[0025] In a technical solution of the above data control method, the method further includes deleting the image and text data set file by the following steps:

[0026] When a part of the image and text data set files having a dependent relationship needs to be deleted, the versions of the image and text data set files that need to be deleted are obtained;

[0027] Determine whether there are other versions of graphic and text dataset files that depend on the version;

[0028] If yes, the image and text dataset file is not deleted;

[0029] If not, deleting the image and text data set file, and deleting the version directory of the image and text data set file;

[0030] And / or, when it is necessary to delete all the image and text dataset files with dependencies, obtain the version and version directory of each image and text dataset file;

[0031] Delete the corresponding version of the image and text dataset files and the corresponding version directory in the preset version order.

[0032] In a second aspect, the present invention provides a data management system, which is applied to graphic data management, and the system comprises:

[0033] A query request receiving module, which is configured to receive a data query request sent by a data demand platform, wherein the data query request includes a version of a graphic data set file to be queried;

[0034] A version directory determination module, configured to determine a version directory of each version of the graphic data set file in the version dependency path of the version;

[0035] A version directory merging module is configured to perform version merging on the version directory to generate a new version directory, so that the data demand platform can read the corresponding graphic data set file by accessing the new version directory;

[0036] Each version of the graphic data set file in the version dependency path is created based on the graphic data set file of the previous version that it depends on, and the creation method includes performing data incremental update based on the graphic data set file of the previous version.

[0037] In a technical solution of the above data management and control system, the version directory merging module includes:

[0038] A version directory sorting unit, configured to sort the version directory according to a preset version order;

[0039] The version directory merging unit is configured to use the stacking file system to merge the sorted version directories to generate the new version directory, and mount the new version directory to a preset mount point.

[0040] In a technical solution of the above-mentioned data management system, the system further includes a first graphic data set file creation module, which is configured to perform data incremental update based on the graphic data set file on which the graphic data set file to be created depends, so as to complete the creation of the graphic data set file to be created; the first graphic data set file creation module includes a first version and version directory establishment unit, a first mounting unit, an increase graphic data determination unit and a first storage unit:

[0041] The first version and version directory establishing unit is configured to establish the version and version directory of the image and text data set file to be created;

[0042] The first mounting unit is configured to use the version directory of the graphic data set file on which the graphic data set file to be created depends as the parent directory of the graphic data set file to be created, and mount the version directory of the graphic data set file to be created under the parent directory;

[0043] The added graphic data determining unit is configured to determine the graphic data to be added according to the graphic data of the graphic data set file to be created and the graphic data of the dependent graphic data set file;

[0044] The first storage unit is configured to store the graphic data to be added into the storage space specified by the version directory of the graphic data set file to be created, so as to complete the creation of the graphic data set file to be created;

[0045] and / or,

[0046] The system further includes a second image and text data set file creation module, which is configured to perform a full data backup based on the image and text data set file on which the image and text data set file to be created depends, so as to complete the creation of the image and text data set file to be created; the second image and text data set file creation module includes a second version and version directory establishment unit, a second mounting unit and a second storage unit:

[0047] The second version and version directory establishing unit is configured to establish the version and version directory of the image and text data set file to be created;

[0048] The second mounting unit is configured to use the version directory of the graphic data set file on which the graphic data set file to be created depends as the parent directory of the graphic data set file to be created, and mount the version directory of the graphic data set file to be created under the parent directory;

[0049] The second storage unit is configured to store all graphic data corresponding to the graphic data set file on which the graphic data set file to be created depends into the storage space specified by the version directory of the graphic data set file to be created, so as to complete the creation of the graphic data set to be created.

[0050] In a technical solution of the above data management and control system, the module for determining the addition of graphic and text data includes:

[0051] A hash value determination unit, configured to respectively calculate hash values ​​of the graphic data of the graphic data set file to be created and the graphic data of the dependent graphic data set file;

[0052] A hash value comparison unit is configured to compare the hash values ​​to determine the graphic data that needs to be added.

[0053] In a technical solution of the above data management system, the system further includes a first image and text data set file deletion module, and the first image and text data set file deletion module is configured to delete the image and text data set file through the following steps:

[0054] When a part of the image and text data set files having a dependent relationship needs to be deleted, the versions of the image and text data set files that need to be deleted are obtained;

[0055] Determine whether there are other versions of graphic and text dataset files that depend on the version;

[0056] If yes, the image and text dataset file is not deleted;

[0057] If not, deleting the image and text data set file, and deleting the version directory of the image and text data set file;

[0058] and / or,

[0059] The system further comprises a second image and text data set file deletion module, wherein the second image and text data set file deletion module is configured to delete the image and text data set file through the following steps:

[0060] When it is necessary to delete all the image and text dataset files with dependencies, obtain the version and version directory of each image and text dataset file;

[0061] Delete the corresponding version of the image and text dataset files and the corresponding version directory in the preset version order.

[0062] In a third aspect, a control device is provided, which includes a processor and a storage device, wherein the storage device is suitable for storing multiple program codes, and the program codes are suitable for being loaded and run by the processor to execute the data control method described in any one of the technical solutions of the above-mentioned data control method.

[0063] In a fourth aspect, a computer-readable storage medium is provided, which stores a plurality of program codes, wherein the program codes are suitable for being loaded and run by a processor to execute the data control method described in any one of the technical solutions of the above-mentioned data control method.

[0064] In the case of adopting the above technical scheme, the present invention can obtain the version of the image and text data set file to be queried contained in the query request after receiving the data query request sent by the data demand platform, and determine the version directory of each version of the image and text data set file in the version dependency path according to the version of the image and text data set file to be queried, merge the version directory to generate a new version directory, so that the data demand platform reads the corresponding image and text data set file by accessing the new version directory, wherein each version of the image and text data set file in the version dependency path is created according to the previous version of the image and text data set file that each version depends on, and the creation method includes performing data incremental update based on the previous version of the image and text data set file. Through this setting method, the image and text data set file can be created by using the data incremental update method when the image and text data set file is created, and according to the query request sent by the data demand platform, the version directories corresponding to the image and text data set files that the data demand platform needs to access are merged to generate a new version directory, and the corresponding image and text data set files in the new version directory are a collection of image and text data files of various versions, so that the data demand platform can read the image and text data. At the same time, since each version of the graphic data set file is created through incremental data updates, while ensuring that the data volume of the graphic data set is sufficient to meet the needs of the data demand platform, there is no longer any duplicate graphic data between multiple graphic data set files. This not only reduces the storage of duplicate graphic data and improves the storage utilization of the underlying storage space, but also effectively solves the problem of reduced data processing efficiency caused by data processors such as GPUs in the data demand platform reading multiple graphic data set files at the same time, significantly improving the data processing efficiency of the data demand platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] The disclosure of the present invention will become more easily understood with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present invention. Among them:

[0066] Figure 1 is a flowchart of main steps of a data control method according to an embodiment of the present invention;

[0067] Figure 2 is a schematic diagram of a version dependency path according to an implementation of an embodiment of the present invention;

[0068] Figure 3 is a schematic diagram of a process for creating a graphic and text data set file according to an implementation of an embodiment of the present invention;

[0069] Figure 4 is a flow chart of using a stacked file system to mount a version directory so that a data demand platform can read it according to an implementation of an embodiment of the present invention;

[0070] Figure 5 It is a main structural block diagram of a data management and control system according to an embodiment of the present invention. DETAILED DESCRIPTION

[0071] Some embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0072] In the description of the present invention, "module" and "processor" may include hardware, software or a combination of the two. A module may include hardware circuits, various suitable sensors, communication ports, and memories, and may also include software parts, such as program codes, or a combination of software and hardware. The processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor, or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, hardware, or a combination of the two. Non-temporary computer-readable storage media include any suitable medium that can store program codes, such as a magnetic disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, and the like. The term "A and / or B" means all possible combinations of A and B, such as only A, only B, or A and B. The term "at least one A or B" or "at least one of A and B" has a similar meaning to "A and / or B", and may include only A, only B, or A and B. The singular terms "one" and "the" may also include plural forms.

[0073] Data demand platforms such as training platforms can generally provide functions including image and text data set management, image and text data annotation, and model training. The image and text data set can contain a large number of image and text data files, such as pictures, videos, and texts. At the same time, there will be different versions of the image and text data set, which are used for model training for different purposes and model training improvement. Generally speaking, there is an inheritance relationship between different versions of image and text data sets. For example, the image and text data set of version V2 is derived from the image and text data set of version V1. In the prior art, there are generally a large number of duplicate image and text data between different versions of image and text data sets, and there will also be certain differences. This will cause a large number of different versions of image and text data sets to occupy a large amount of storage space in the underlying storage space; at the same time, when reading different versions of image and text data set files, it will also affect the data processing efficiency of data processors such as GPUs in the data demand platform.

[0074] In an embodiment of the present invention, a data management method, system, device and medium are provided to solve the above-mentioned problems.

[0075] See attached Figure 1 , Figure 1 FIG. 1 is a flow chart of the main steps of a data control method according to an embodiment of the present invention. Figure 1 As shown, the data control method in the embodiment of the present invention mainly includes the following steps S101 to S103.

[0076] Step S101: receiving a data query request sent by a data demand platform, where the data query request includes the version of the image and text data set file to be queried.

[0077] In this embodiment, the data demand platform may send a data query request, and the data query request may include the version of the graphic and text data set file to be queried.

[0078] In one implementation, the data demand platform may be a training platform. When the training platform needs to query a graphic data set file for model training, it is necessary to specify the version of the graphic data set file to be queried and include the version information of the graphic data set file to be queried in the data query request sent.

[0079] Step S102: Determine the version directory of each version of the graphic and text dataset file in the version-dependent path of the version.

[0080] In this embodiment, the version dependency path of the version of the image and text dataset file to be queried can be determined according to the version of the image and text dataset file to be queried obtained in step S101, and the version directory of each version of the image and text dataset file in the version dependency path can be further determined. The version dependency path refers to the inheritance relationship of different versions of the image and text dataset files. The version directory of different versions of the image and text dataset files refers to the directory corresponding to the storage space storing each version of the image and text dataset file.

[0081] Step S103: merge the version directories to generate a new version directory, so that the data demand platform can read the corresponding graphic data set files by accessing the new version directory.

[0082] In this embodiment, the version directories of each version of the graphic data set file obtained in step S102 can be merged to generate a new version directory. The data demand platform can read the corresponding graphic data set file by accessing the new version directory.

[0083] Each version of the graphic data set file in the version dependency path is created based on the graphic data set file of the previous version that it depends on, and the creation method includes performing data incremental update based on the graphic data set file of the previous version.

[0084] Specifically, each version of the image and text data set file can be created based on the previous version of the image and text data set file in a data incremental update manner. That is to say, when creating a new version of the image and text data set file, the data incremental part of the image and text data set file of the version to be created and the image and text data set file of the previous version can be calculated, and the new version of the image and text data set file can be created in a data incremental update manner. Among them, the data incremental update means that when storing the image and text data set, the data incremental part of the image and text data set relative to the previous image and text data set is calculated, and only the image and text data of the data incremental part is updated.

[0085] Based on the above steps S101 to S103, the embodiment of the present invention can obtain the version of the image and text data set file to be queried contained in the query request after receiving the data query request sent by the data demand platform, and determine the version directory of each version of the image and text data set file in the version dependency path according to the version of the image and text data set file to be queried, merge the version directories to generate a new version directory, so that the data demand platform reads the corresponding image and text data set file by accessing the new version directory, wherein each version of the image and text data set file in the version dependency path is created according to the image and text data set file of the previous version that it depends on, and the creation method includes performing data incremental update based on the image and text data set file of the previous version. Through this setting method, the image and text data set file can be created by using the data incremental update method when the image and text data set file is created, and according to the query request sent by the data demand platform, the version directories corresponding to the image and text data set files that the data demand platform needs to access are merged to generate a new version directory, and the corresponding image and text data set files in the new version directory are a collection of image and text data files of various versions, so that the data demand platform can read the image and text data. At the same time, since each version of the graphic data set file is created through incremental data updates, while ensuring that the data volume of the graphic data set is sufficient to meet the needs of the data demand platform, there is no longer any duplicate graphic data between multiple graphic data set files. This not only reduces the storage of duplicate graphic data and improves the storage utilization of the underlying storage space (the storage space pointed to by the version directory of the graphic data set file), but also effectively solves the problem of reduced data processing efficiency caused by data processors in the data demand platform, such as GPUs, reading multiple graphic data set files at the same time, significantly improving the data processing efficiency of the data demand platform.

[0086] The step S103 is further described below.

[0087] In an optional implementation of step S103 in the embodiment of the present invention, step S103 may include:

[0088] Step S1031: sorting the version directory according to a preset version order;

[0089] Step S1032: Use the stacking file system to merge the sorted version directories to generate a new version directory, and mount the new version directory to a preset mount point.

[0090] A stacked file system refers to a stacked file system that does not provide data storage capabilities by itself, but directly uses the underlying file system (underlying storage space) to store data. It can be independent of the underlying file system, provide copy strategy design, and implement functions such as asynchronous copy, archiving, data caching, and namespace unification. This embodiment uses a conventional stacked file system in the field of computer technology.

[0091] In this embodiment, the version directories of the graphic data set files of each version in the version dependency path can be sorted according to the preset version order. Furthermore, the stacking file system can be used to merge the sorted version directories to generate a new version directory, and the new version directory can be mounted to a preset mount point. The preset mount point can be a training data directory preset in the stacking file system. Mounting refers to connecting the directory of the file to a directory (mount point) in the stacking file system, and accessing the directory can access the file and read the data in the file.

[0092] For example, the preset version order can be from high version to low version, such as the version of the image and text dataset contained in the version dependency path is v1.0, v1.1, v1.2, v1.3, and the version directories corresponding to these versions are Dv1.0, Dv1.1, Dv1.2, Dv1.3, then the order of the sorted version directories is Dv1.3, Dv1.2, Dv1.1, Dv1.0. The sorted version directories can be merged to generate a new version directory NDv1.3, and the new version directory can be mounted on the training data directory of the stacking file system, so that the data demand platform can read the corresponding image and text dataset files by accessing the stacking file system to read Dv1.3 in the training data directory.

[0093] In one implementation of the embodiment of the present invention, in addition to the above steps S101-S103, the data control method may also include the following steps S104-S107, performing data incremental update based on the graphic data set file on which the graphic data set file to be created depends, so as to complete the creation of the graphic data set file to be created:

[0094] Step S104: establishing the version and version directory of the image and text data set file to be created;

[0095] Step S105: using the version directory of the graphic data set file that the graphic data set file to be created depends on as the parent directory of the graphic data set file to be created, and mounting the version directory of the graphic data set file to be created under the parent directory;

[0096] Step S106: determining the graphic data to be added according to the graphic data of the graphic data set file to be created and the graphic data of the dependent graphic data set file;

[0097] Step S107: storing the graphic data to be added in the storage space specified by the version directory of the graphic data set file to be created, so as to complete the creation of the graphic data set file to be created.

[0098] In this embodiment, when creating a graphic data set file, the version and version directory of the graphic data set file to be created can be established, and the version directory of the graphic data set file on which the graphic data set file to be created depends is used as the parent directory of the graphic data set file to be created, and the version directory of the graphic data set file to be created is mounted under the parent directory. Further, according to the graphic data of the graphic data set file to be created and the graphic data of the dependent graphic data set file, the graphic data that needs to be added is determined as the incremental part of the data incremental update, and is stored in the storage space specified by the version directory to be created to complete the creation of the graphic data set file to be created. In other words, the graphic data set file to be created can obtain the graphic data that needs to be added in the form of data incremental update based on the graphic data set file it depends on; the version directory of the graphic data set to be created is mounted under the version directory of the dependent graphic data file; and the graphic data that needs to be added is stored in the storage space specified by the version directory of the graphic data file to be created.

[0099] In one implementation, the above step S106 may include:

[0100] Step S1061: respectively calculating hash values ​​of the graphic data of the graphic data set file to be created and the graphic data of the dependent graphic data set file;

[0101] Step S1062: Compare the hash values ​​to determine the graphic and text data that needs to be added.

[0102] Specifically, the hash values ​​of the graphic data of the graphic data set file to be created and the graphic data of the dependent graphic data set file can be calculated respectively, and the graphic data (incremental part) that needs to be added to the graphic data set file can be determined according to the hash value, and the incremental part can be stored in the graphic data set file to be created. Among them, the hash value refers to a piece of data given as a result of a hash operation. A hash operation refers to an operation that converts a large set of data into a small set of data to represent all the data. The hash value can be a Hash value or an MD5 (Message-Digest Algorithm) value.

[0103] In one example, the graphic data that needs to be added can be determined by performing a full table comparison based on the MD5 values ​​of the graphic data of the graphic data set to be created and the graphic data of the dependent graphic data set. Specifically, a temporary MD5 table with a similar structure can be established based on the graphic data of the dependent graphic data file. The temporary table records the primary key of the source table (the graphic data of the graphic data file to be created) and the MD5 value calculated based on all the graphic data. The MD5 values ​​of the source table and the temporary MD5 table are compared to determine the graphic data that needs to be added in the source table.

[0104] In one example, the Hash value of the data block based on the image and text data set file can be used to determine the image and text data that needs to be added when the data is incrementally updated. That is, the image and text data of the image and text data set to be created and the image and text data of the dependent image and text data are divided into different data blocks, and the Hash value of each data block is calculated. The image and text data that needs to be added in the different data blocks is determined according to the Hash values ​​of different data blocks, and finally the image and text data that needs to be added in the image and text data of the image and text data set to be created is determined.

[0105] In one implementation of the embodiment of the present invention, in addition to the above steps S101-S103, the data control method may further include the following steps S108-S110, in which a full data backup is performed based on the graphic data set file on which the graphic data set file to be created depends, so as to complete the creation of the graphic data set file to be created:

[0106] Step S108: establishing the version and version directory of the image and text data set file to be created;

[0107] Step S109: using the version directory of the graphic data set file that the graphic data set file to be created depends on as the parent directory of the graphic data set file to be created, and mounting the version directory of the graphic data set file to be created under the parent directory;

[0108] Step S110: storing all graphic data corresponding to the graphic data set file that the graphic data set file to be created depends on into the storage space specified by the version directory of the graphic data set file to be created, so as to complete the creation of the graphic data set to be created.

[0109] In this embodiment, the version and version directory of the image and text data set file to be created can be established, and the version directory of the image and text data set file to be created can be used as the parent directory of the image and text data set file to be created, and the version directory of the image and text data set file to be created can be mounted under the parent directory, and all the image and text data corresponding to the image and text data set file to be created that the image and text data set file to be created depends on can be stored in the storage space specified by the version directory of the image and text data set file to be created, and the creation of the image and text data set file to be created can be completed in the form of full data backup. Among them, all the image and text data include not only the image and text data stored in the storage space specified by the version directory of the image and text data set file to be created that the image and text data set file to be created depends on, but also the data stored in the storage space specified by the version directory of all other files that the image and text data set file to be created depends on. Through the above settings, in the case of too many versions of the image and text data set file, the full data backup of the image and text data can be performed, and all the image and text data can be fully backed up to the new image and text data set file, so as to use this new data set file as the creation basis, and continue to use the data incremental update method to create a new image and text data set file, so as to solve the problem of affecting the reading performance of the stacking file system due to too many versions.

[0110] For example, if the version of the image and text dataset file to be created is v1.3, and the versions of the image and text dataset files that v1.3 depends on are v1.2, v1.1, and v1.0, then when the image and text dataset file corresponding to v1.3 is fully backed up, it is necessary to use the version directory Dv1.2 corresponding to v1.2 as the parent directory of the version directory Dv1.3 corresponding to v1.3, mount the version directory Dv1.3 corresponding to v1.3 to the version directory Dv1.2 corresponding to v1.2, and save the image and text data in the image and text dataset files corresponding to v1.2, v1.1, and v1.0 to the image and text dataset file corresponding to v1.3.

[0111] In one implementation of the embodiment of the present invention, the data management method may also delete the image and text data set file by following the steps below:

[0112] When a part of the image and text data set files having a dependent relationship needs to be deleted, the versions of the image and text data set files that need to be deleted are obtained;

[0113] Determine whether there are other versions of the image and text dataset files that depend on the version of the image and text dataset file that needs to be deleted;

[0114] If yes, the image and text dataset file will not be deleted;

[0115] If not, delete the image and text dataset file and delete the version directory of the image and text dataset file.

[0116] In this embodiment, when it is necessary to delete a part of the graphic data set files among the graphic data set files with a dependency relationship, the version of the graphic data set file to be deleted can be obtained, and it is further determined whether there are other versions of the graphic data set files that depend on the version of the graphic data set files to be deleted. If so, the graphic data set file is not deleted to avoid affecting other versions of the graphic data set files with a dependency relationship. If not, the graphic data set file to be deleted is deleted, and the version directory of the graphic data set file is deleted. Among them, the dependency relationship refers to the inheritance relationship between graphic data set files, that is, if the latter version of the graphic data set file is created on the basis of the previous version of the graphic data set file, it can be considered that the latter version of the graphic data set file and the previous version of the graphic data set file have a dependency relationship.

[0117] In one implementation of the embodiment of the present invention, the data management method may also delete the image and text data set file by following the steps below:

[0118] When all the image and text dataset files with dependencies that need to be deleted are obtained, the version and version directory of each image and text dataset file are obtained;

[0119] Delete the corresponding version of the image and text dataset files and the corresponding version directory in the preset version order.

[0120] In this embodiment, when all dependent graphic data set files need to be deleted, the version and version directory of each graphic data set file to be deleted can be obtained, and the corresponding version of the graphic data set files can be deleted in sequence according to the preset version order, and the corresponding version directory can be deleted.

[0121] In one example, the preset version order is to delete from higher version to lower version.

[0122] See also Figure 2 ,in Figure 2 FIG. 1 is a schematic diagram of a version dependency path according to an implementation of an embodiment of the present invention. Figure 2As shown, v1.0, v1.1, v1.2, v1.3, and v2.0 are the versions of the corresponding image and text data set files, and the version dependency paths include v1.0→v1.1→v1.2→v1.3 and v1.0→v1.1→v2.0. The image and text data stored in the corresponding version directory of v1.0 are a.jpg, b.jpg, and c.jpg; the image and text data stored in the corresponding version directory of v1.1 is the data incremental update d.jpg; the image and text data stored in the corresponding version directory of v1.2 is the data incremental update y.jpg and delete a.jpg; the image and text data stored in the corresponding version directory of v1.3 is the update c.jpg (update); the image and text data stored in the corresponding version directory of v2.0 is the incremental update x.jpg and the update a.jpg (update). Correspondingly, when v1.0 needs to be mounted, the corresponding image and text data after merging the version directories to generate a new version directory is a.jpg, b.jpg, c.jpg; when v1.1 and v1.0 need to be mounted, the corresponding image and text data after merging the version directories to generate a new version directory is a.jpg, b.jpg, c.jpg, d.jpg; when v2.0, v1.1 and v1.0 need to be mounted, the corresponding image and text data after merging the version directories to generate a new version directory is a.jpg (updated), b.jpg, c.jpg, d.jpg; when v1.2, v1.1, v1.0 need to be mounted, the corresponding image and text data after merging the version directories to generate a new version directory are b.jpg, c.jpg, d.jpg, x.jpg, y.jpg; when v1.3, v1.2, v1.1, v1.0 need to be mounted, the corresponding image and text data after merging the version directories to generate a new version directory are b.jpg, c.jpg (updated), d.jpg, x.jpg, y.jpg.

[0123] In one embodiment, the file version management and merging mechanism of git can be used to merge the version directories of the image and text dataset files. Git is an open source distributed version control system used to handle any small or large project in an agile and efficient manner.

[0124] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effects of the present invention, different steps do not have to be performed in such an order. They can be performed simultaneously (in parallel) or in other orders. These changes are within the scope of protection of the present invention.

[0125] Furthermore, the present invention also provides a data management and control system.

[0126] See attached Figure 5 , Figure 5FIG. 1 is a main structural block diagram of a data control system according to an embodiment of the present invention. Figure 5 As shown, the data management system in the embodiment of the present invention is applied to graphic data management, and the data management system may include a query request receiving module, a version directory determining module and a version directory merging module. In this embodiment, the query request receiving module may be configured to receive a data query request sent by a data demand platform, and the data query request includes the version of the graphic data set file to be queried. The version directory determining module may be configured to determine the version directory of each version of the graphic data set file in the version dependency path of the version. The version directory merging module may be configured to perform version merging on the version directory to generate a new version directory, so that the data demand platform can read the corresponding graphic data set file by accessing the new version directory. Among them, each version of the graphic data set file in the version dependency path is created according to the previous version of the graphic data set file that it depends on, and the creation method includes performing data incremental update based on the previous version of the graphic data set file.

[0127] In one embodiment, the version directory merging module may include a version directory sorting unit and a version directory merging unit. In this embodiment, the version directory sorting unit may be configured to sort the version directories according to a preset version order. The version directory merging unit may be configured to merge the sorted version directories using a stacking file system to generate a new version directory, and mount the new version directory to a preset mount point.

[0128] In one embodiment, the data control system may further include a first image and text data set file creation module, the first image and text data set file creation module may be configured to perform data incremental update based on the image and text data set file to be created, so as to complete the creation of the image and text data set file to be created; the first image and text data set file creation module may include a first version and version directory establishment unit, a first mounting unit, an increase image and text data determination unit and a first storage unit. In this embodiment, the first version and version directory establishment unit may be configured to establish the version and version directory of the image and text data set file to be created. The first mounting unit may be configured to use the version directory of the image and text data set file to be created that the image and text data set file to be created depends on as the parent directory of the image and text data set file to be created, and mount the version directory of the image and text data set file to be created under the parent directory. The increase image and text data determination unit may be configured to determine the image and text data to be added according to the image and text data of the image and text data set file to be created and the image and text data of the image and text data set file to be created. The first storage unit may be configured to store the image and text data to be added to the storage space specified by the version directory of the image and text data set file to be created, so as to complete the creation of the image and text data set file to be created.

[0129] In one embodiment, the data control system may further include a second image and text data set file creation module, and the second image and text data set file creation module may be configured to perform a full data backup based on the image and text data set file to be created, so as to complete the creation of the image and text data set file to be created; the second image and text data set file creation module may include a second version and version directory establishment unit, a second mounting unit, and a second storage unit. In this embodiment, the second version and version directory establishment unit may be configured to establish the version and version directory of the image and text data set file to be created. The second mounting unit may be configured to use the version directory of the image and text data set file to be created that the image and text data set file to be created depends on as the parent directory of the image and text data set file to be created, and mount the version directory of the image and text data set file to be created under the parent directory. The second storage unit may be configured to store all the image and text data corresponding to the image and text data set file that the image and text data set file to be created depends on to the storage space specified by the version directory of the image and text data set file to be created, so as to complete the creation of the image and text data set to be created.

[0130] In one embodiment, the module for determining to add graphic data may include a hash value determination unit and a hash value comparison unit. In this embodiment, the hash value determination unit may be configured to respectively calculate the hash values ​​of the graphic data of the graphic data set file to be created and the graphic data of the dependent graphic data set file. The hash value comparison unit may be configured to compare the hash values ​​to determine the graphic data that needs to be added.

[0131] In one embodiment, the data management system may further include a first graphic data set file deletion module, which may be configured to delete the graphic data set files through the following steps: when it is necessary to delete a part of the graphic data set files with a dependent relationship, obtain the version of the graphic data set file that needs to be deleted; determine whether there are other versions of the graphic data set files that are dependent on the version; if so, do not delete the graphic data set file; if not, delete the graphic data set file and delete the version directory of the graphic data set file.

[0132] In one embodiment, the data management system may further include a second graphic data set file deletion module, which may be configured to delete graphic data set files through the following steps: when it is necessary to delete all graphic data set files with dependencies, obtain the version and version directory of each graphic data set file; delete the graphic data set files of corresponding versions in sequence according to a preset version order and delete the corresponding version directories.

[0133] In one embodiment, the data management system may include a training platform (data demand platform), a data management platform, a version management module, a file mounting module, a stacked file system, a file management module, and an underlying storage module. Among them, the version management module is used to manage the basic information of the version of the graphic data set file, including the version number, dependency, and whether the graphic data set file of this version is created by using the data incremental update method; the file management module is used to manage the addition, deletion, and modification of the graphic data set file, and uses different methods to modify the graphic data set file corresponding to the version directory according to different version creation methods (data incremental update or full data backup); the file mounting module is used to use the stacked file system to mount the specified version directory, and merge different version directories to generate a new version directory.

[0134] See also Figure 3 ,in Figure 3 FIG. 1 is a flow chart of creating a graphic data set file according to an implementation of an embodiment of the present invention. Figure 3 As shown, after receiving a request to upload a graphic data set, the data management platform can create a version of the graphic data set according to the request to upload the graphic data set, and further create a version directory of the graphic data set. The file management module stores the graphic data file in the storage space of the underlying storage module specified by the version directory according to the created version directory.

[0135] See also Figure 4 ,in Figure 4 FIG. 1 is a flow chart of using a stacked file system to mount a version directory so that the data demand platform can read it according to an implementation of an embodiment of the present invention. Figure 4 As shown, after the training platform (data demand platform) starts the training task, it can send a request to obtain the data set (data query request) to the data management platform. The data management platform will query the data version (the version directory of each version of the image and text data set file in the version dependency path) from the version management module based on the request to obtain the data set. The file mounting module sends a mounting request to the stacking file system based on the data version. The stacking file system reads the image and text data set files stored in the storage space of the underlying storage module specified by the version directory based on the mounting request, and merges the image and text data set files corresponding to each version directory and mounts them to the stacking file system. The training platform reads the corresponding image and text data set files through the stacking file system.

[0136] The above data control system is used to execute Figure 1The data control method embodiments shown in the figure are similar in their technical principles, technical problems solved and technical effects produced. Technical personnel in this technical field can clearly understand that for the convenience and conciseness of description, the specific working process and related instructions of the data control system can refer to the contents described in the embodiment of the data control method, which will not be repeated here.

[0137] It is understood by those skilled in the art that the present invention implements all or part of the processes in the method of the above embodiment, and can also be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of each of the above method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device, medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium that can carry the computer program code. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0138] Furthermore, the present invention also provides a control device. In an embodiment of a control device according to the present invention, the control device includes a processor and a storage device, the storage device can be configured to store a program for executing the data control method of the above method embodiment, and the processor can be configured to execute the program in the storage device, which includes but is not limited to the program for executing the data control method of the above method embodiment. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The control device can be a control device device formed by various electronic devices.

[0139] Furthermore, the present invention also provides a computer-readable storage medium. In a computer-readable storage medium embodiment according to the present invention, the computer-readable storage medium can be configured to store a program for executing the data control method of the above method embodiment, and the program can be loaded and run by the processor to implement the above data control method. For ease of explanation, only the parts related to the embodiment of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present invention. The computer-readable storage medium can be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present invention is a non-temporary computer-readable storage medium.

[0140] Further, it should be understood that since the setting of each module is only for illustrating the functional units of the device of the present invention, the physical devices corresponding to these modules may be the processor itself, or a part of the software in the processor, a part of the hardware, or a part of the combination of software and hardware. Therefore, the number of each module in the figure is only schematic.

[0141] Those skilled in the art will appreciate that the modules in the device can be adaptively split or merged. Such splitting or merging of specific modules will not cause the technical solution to deviate from the principle of the present invention, and therefore, the technical solutions after splitting or merging will fall within the protection scope of the present invention.

[0142] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

Claims

1. A data control method, It is characterized in that Applied to graphic data management and control, the method includes: Receiving a data query request sent by a data demand platform, wherein the data query request includes a version of a graphic data set file to be queried; Determine the version directory of each version of the graphic data set file in the version dependency path of the version; Merging the versions of the version directory to generate a new version directory, so that the data demand platform can read the corresponding graphic data set file by accessing the new version directory; Wherein, each version of the graphic data set file in the version dependency path is created based on the graphic data set file of the previous version that it depends on, and the creation method includes performing data incremental update based on the graphic data set file of the previous version; The method further comprises performing data incremental update based on the graphic data set file on which the graphic data set file to be created depends through the following steps, so as to complete the creation of the graphic data set file to be created: Establishing the version and version directory of the image and text data set file to be created; Using the version directory of the graphic data set file that the graphic data set file to be created depends on as the parent directory of the graphic data set file to be created, and mounting the version directory of the graphic data set file to be created under the parent directory; Determining the graphic data that needs to be added according to the graphic data of the graphic data set file to be created and the graphic data of the dependent graphic data set file; The image and text data to be added are stored in the storage space specified by the version directory of the image and text data set file to be created, so as to complete the creation of the image and text data set file to be created; and / or, The method further comprises performing a full data backup based on the graphic data set file on which the graphic data set file to be created depends through the following steps, so as to complete the creation of the graphic data set file to be created: Establishing the version and version directory of the image and text data set file to be created; Using the version directory of the graphic data set file that the graphic data set file to be created depends on as the parent directory of the graphic data set file to be created, and mounting the version directory of the graphic data set file to be created under the parent directory; All graphic data corresponding to the graphic data set file that the graphic data set file to be created depends on are stored in the storage space specified by the version directory of the graphic data set file to be created, so as to complete the creation of the graphic data set to be created.

2. The data control method according to claim 1, It is characterized in that The step of "merging the version directories to generate new version directories" includes: Sorting the version directory according to a preset version order; The sorted version directories are merged using a stacking file system to generate a new version directory, and the new version directory is mounted to a preset mount point.

3. The data control method according to claim 1, It is characterized in that The steps of "determining the graphic and text data that need to be added" specifically include: Respectively calculating hash values ​​of the graphic data of the graphic data set file to be created and the graphic data of the dependent graphic data set file; The hash values ​​are compared to determine the graphic and text data that needs to be added.

4. The data control method according to claim 1, It is characterized in that The method further comprises deleting the image and text data set file by the following steps: When a part of the image and text data set files having a dependent relationship needs to be deleted, the versions of the image and text data set files that need to be deleted are obtained; Determine whether there are other versions of graphic and text dataset files that depend on the version; If yes, the image and text dataset file is not deleted; If not, deleting the image and text data set file, and deleting the version directory of the image and text data set file; and / or, When it is necessary to delete all the image and text dataset files with dependencies, obtain the version and version directory of each image and text dataset file; Delete the corresponding version of the image and text dataset files and the corresponding version directory in the preset version order.

5. A data control system, It is characterized in that Applied to graphic data management and control, the system includes: A query request receiving module, which is configured to receive a data query request sent by a data demand platform, wherein the data query request includes a version of a graphic data set file to be queried; A version directory determination module, configured to determine a version directory of each version of the graphic data set file in the version dependency path of the version; A version directory merging module is configured to perform version merging on the version directory to generate a new version directory, so that the data demand platform can read the corresponding graphic data set file by accessing the new version directory; Wherein, each version of the graphic data set file in the version dependency path is created based on the graphic data set file of the previous version that it depends on, and the creation method includes performing data incremental update based on the graphic data set file of the previous version; The system further includes a first image and text data set file creation module, which is configured to perform data incremental update based on the image and text data set file on which the image and text data set file to be created depends, so as to complete the creation of the image and text data set file to be created; the first image and text data set file creation module includes a first version and version directory establishment unit, a first mounting unit, an increase image and text data determination unit and a first storage unit: The first version and version directory establishing unit is configured to establish the version and version directory of the image and text data set file to be created; The first mounting unit is configured to use the version directory of the graphic data set file on which the graphic data set file to be created depends as the parent directory of the graphic data set file to be created, and mount the version directory of the graphic data set file to be created under the parent directory; The added graphic data determining unit is configured to determine the graphic data to be added according to the graphic data of the graphic data set file to be created and the graphic data of the dependent graphic data set file; The first storage unit is configured to store the graphic data to be added into the storage space specified by the version directory of the graphic data set file to be created, so as to complete the creation of the graphic data set file to be created; and / or, The system further includes a second image and text data set file creation module, which is configured to perform a full data backup based on the image and text data set file on which the image and text data set file to be created depends, so as to complete the creation of the image and text data set file to be created; the second image and text data set file creation module includes a second version and version directory establishment unit, a second mounting unit and a second storage unit: The second version and version directory establishing unit is configured to establish the version and version directory of the image and text data set file to be created; The second mounting unit is configured to use the version directory of the graphic data set file on which the graphic data set file to be created depends as the parent directory of the graphic data set file to be created, and mount the version directory of the graphic data set file to be created under the parent directory; The second storage unit is configured to store all graphic data corresponding to the graphic data set file on which the graphic data set file to be created depends into the storage space specified by the version directory of the graphic data set file to be created, so as to complete the creation of the graphic data set to be created.

6. The data control system according to claim 5, It is characterized in that The version directory merging module includes: A version directory sorting unit, configured to sort the version directory according to a preset version order; The version directory merging unit is configured to use the stacking file system to merge the sorted version directories to generate the new version directory, and mount the new version directory to a preset mount point.

7. The data control system according to claim 5, It is characterized in that The added graphic data determination unit comprises: A hash value determination unit, configured to respectively calculate hash values ​​of the graphic data of the graphic data set file to be created and the graphic data of the dependent graphic data set file; A hash value comparison unit is configured to compare the hash values ​​to determine the graphic data that needs to be added.

8. The data control system according to claim 5, It is characterized in that The system further comprises a first image and text data set file deletion module, wherein the first image and text data set file deletion module is configured to delete the image and text data set file through the following steps: When a part of the image and text data set files having a dependent relationship needs to be deleted, the versions of the image and text data set files that need to be deleted are obtained; Determine whether there are other versions of graphic and text dataset files that depend on the version; If yes, the image and text dataset file is not deleted; If not, deleting the image and text data set file, and deleting the version directory of the image and text data set file; and / or, The system further comprises a second image and text data set file deletion module, wherein the second image and text data set file deletion module is configured to delete the image and text data set file through the following steps: When it is necessary to delete all the image and text dataset files with dependencies, obtain the version and version directory of each image and text dataset file; Delete the corresponding version of the image and text dataset files and the corresponding version directory in the preset version order.

9. A control device comprising a processor and a storage device, wherein the storage device is suitable for storing a plurality of program codes. It is characterized in that The program code is suitable for being loaded and run by the processor to execute the data control method according to any one of claims 1 to 4.

10. A computer-readable storage medium having a plurality of program codes stored therein, It is characterized in that The program code is suitable for being loaded and run by a processor to execute the data control method according to any one of claims 1 to 4.