Project resource management method and system, computer equipment and storage medium
By distinguishing and handling necessary and non-essential resources in project resource management and uploading non-essential resources to the server, the problems of large project folders occupying space and resource loading speed are solved, and the user experience is improved.
Patent Information
- Application Number
- CN202410997423.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-11-22
AI Technical Summary
During the development of browsers, mini programs and application software, as the project size increases, more and more resources in the folders, resulting in large storage space and slow access speed, affecting the user experience, especially when the server responds in a timely manner. Or when the network is unstable, the resource loads slowly or cannot be displayed, reducing the user experience.
By obtaining the resources in the project folder, judging that their type is necessary or non-essential resources, uploading the unnecessary resources to the server and replacing them with the network storage address, retaining the necessary resources in the folder, and obtaining them from the folder or server as needed when used as needed Resources, reduce storage space usage and improve resource loading speed.
It effectively reduces the use of storage space by project resources, avoids resource loading problems caused by untimely server response or network instability, and improves user experience.
Smart Images

Figure CN119003461A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data management, and in particular to a project resource management method, system, computer device and storage medium. Background Art
[0002] The development process of application projects such as browsers, applets, and application software involves a variety of resources, which are stored in a folder. As the size of the project increases, more and more resources are involved, resulting in a larger folder size. Larger folders not only take up more storage space, but also affect the access speed of the application and user experience.
[0003] At present, the existing technology stores static resources such as styles, scripts, icons, images, audio, and video on a server or content delivery network (CDN), and stores the storage address of the server or CDN in a folder. When in use, the server or CDN can be accessed according to the storage address in the folder to obtain the corresponding static resources.
[0004] However, in actual application projects, there may be situations where the server does not respond in time or the network is unstable, resulting in slow resource loading or even some important resources not being displayed, thereby reducing the user experience. Summary of the invention
[0005] Based on this, a project resource management method, system, computer device and storage medium are provided to improve user experience.
[0006] In a first aspect, a project resource management method is provided, the method comprising:
[0007] Get each project resource in the project folder;
[0008] Determine whether the resource type of each project resource is a necessary resource or a non-necessary resource;
[0009] The project resources whose resource type is non-essential resources are uploaded to the server, and the project resources whose resource type is non-essential resources in the project folder are replaced with the network storage address of the project resources whose resource type is non-essential resources in the server.
[0010] In combination with the first aspect, in a first possible implementation of the first aspect, the project resources are one of project operation resources, project beautification resources and project supplementary description resources, the necessary resources include the project operation resources, and the non-essential resources include the project beautification resources and the project supplementary description resources.
[0011] In combination with the first aspect, in a second possible implementation of the first aspect, determining whether the resource type of each project resource is a necessary resource or a non-necessary resource includes:
[0012] The various project resources are input into the trained resource type identification model for identification, and the corresponding resource type is obtained as the necessary resource or the non-essential resource.
[0013] In combination with the second possible implementation of the first aspect, in a third possible implementation of the first aspect, before inputting each project resource into the trained resource type recognition model for recognition, the method further includes:
[0014] Acquire multiple training data and data labels corresponding to the multiple training data, input the multiple training data and the data labels corresponding to the multiple training data into a preset resource type recognition model for pre-training, and obtain a pre-trained resource type recognition model;
[0015] Acquire multiple fine-tuning data and data labels corresponding to the multiple fine-tuning data, input the multiple fine-tuning data and the data labels corresponding to the multiple fine-tuning data into the pre-trained resource type recognition model for fine-tuning training, and obtain a fine-tuned resource type recognition model;
[0016] Acquire multiple verification data and real resource types corresponding to the multiple verification data, input the multiple verification data into the fine-tuned resource type identification model for identification, and obtain corresponding predicted resource types;
[0017] According to the comparison result between the predicted resource types and the real resource types corresponding to the multiple verification data, the fine-tuned resource type model is optimized and trained to obtain a trained resource type recognition model;
[0018] The training data, the fine-tuning data and the verification data include project operation resources, project beautification resources and project supplementary description resources, and the data labels, the real resource types and the predicted resource types are necessary resources or non-essential resources.
[0019] In combination with the first aspect, in a fourth implementable embodiment of the first aspect, replacing the project resource whose resource type is non-essential resource in the project folder with the network storage address of the project resource whose resource type is non-essential resource in the server includes:
[0020] The project resources whose resource type is non-essential resources in the project folder are deleted, and the network storage address of the project resources whose resource type is non-essential resources in the server is saved under the local storage address of the project resources whose resource type is non-essential resources stored in the project folder.
[0021] In combination with the first aspect, in a fifth implementable embodiment of the first aspect, after determining whether the resource type of each project resource is a necessary resource or a non-necessary resource, the project resources whose resource type is a necessary resource are retained in the project folder.
[0022] In combination with the fifth possible implementation of the first aspect, in a sixth possible implementation of the first aspect, before acquiring each project resource in the project folder, receiving and responding to a project resource packaging instruction after the project function code is developed;
[0023] After uploading all the project resources whose resource types are non-essential resources in the project folder to the server and replacing all the project resources whose resource types are non-essential resources in the project folder with corresponding network storage addresses, the project folder is packaged to generate a project resource package.
[0024] In a second aspect, a project resource management system is provided, the system comprising:
[0025] Resource acquisition module, used to obtain various project resources in the project folder;
[0026] A resource type determination module, used to determine whether the resource type of each project resource is a necessary resource or a non-necessary resource;
[0027] The resource management module is used to upload the project resources whose resource type is non-essential resources to the server, and replace the project resources whose resource type is non-essential resources in the project folder with the network storage address of the project resources whose resource type is non-essential resources in the server.
[0028] In a third aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the project resource management method described in any one of the first aspect or the first to sixth possible implementations of the first aspect are implemented.
[0029] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the project resource management method described in any one of the first aspect or the first to sixth embodiments of the first aspect are implemented.
[0030] The above-mentioned project resource management method, system, computer equipment and storage medium obtain each project resource in the project folder; determine whether the resource type of each project resource is a necessary resource or a non-essential resource; upload the project resources with a resource type of non-essential resource to the server, and replace the project resources with a resource type of non-essential resource in the project folder with the network storage address of the project resources with a resource type of non-essential resource in the server, and the project resources with a resource type of necessary resource are still retained in the project folder. Through the project resource management method of the present application, if the project resources to be read are necessary resources during application, they are directly obtained from the project folder; if the project resources to be read are non-essential resources, they are obtained from the server according to the network storage address stored in the project folder, which can reduce the storage space occupied by project resources and not affect the basic use of the application when the resources are loaded slowly or cannot be loaded. It improves the prior art of uploading all static resources to the server or CDN. In actual application, the problem of slow resource loading or even the inability to display some important resources due to untimely server response or unstable network is improved, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 An application environment diagram of a project resource management method in an embodiment;
[0032] Figure 2 A schematic diagram of a process flow of a project resource management method in one embodiment;
[0033] Figure 3 A structural block diagram of a project resource management system in one embodiment;
[0034] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0036] It should be noted that the illustrations provided in this embodiment only illustrate the basic concept of the present application in a schematic manner, and therefore the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0037] The structures, proportions, sizes, etc. illustrated in the drawings in this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with this technology. They are not used to limit the conditions under which this application can be implemented, and therefore have no substantive technical significance. Any structural modification, change in proportion or adjustment of size, without affecting the effects and purposes that can be achieved by this application, should still fall within the scope of the technical contents disclosed in this application.
[0038] The directions or positional relationships indicated by the terms "upper", "lower", "left", "right", "middle", "longitudinal", "lateral", "horizontal", "inner", "outer", "radial", "circumferential" and the like in this specification are based on the directions or positional relationships shown in the drawings and are only for the convenience of simplifying the description. They do not indicate or imply that the devices or elements referred to must have a specific direction, be constructed and operate in a specific direction, and therefore cannot be understood as limiting the present application. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0039] The project resource management method provided in this application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The terminal 102 obtains each project resource in the project folder; determines whether each project resource is a necessary resource or a non-essential resource; uploads the project resources belonging to the non-essential resource to the server 104, and replaces the project resources belonging to the non-essential resource in the project folder with the network storage address of the project resources belonging to the non-essential resource in the server 104, thereby improving the prior art of uploading all static resources to the server or CDN, and in actual application, the problem of slow resource loading or even failure to display some important resources due to untimely server response or unstable network, thereby improving the user experience. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented with an independent server or a server cluster composed of multiple servers, and can be a conventional server or a CDN server.
[0040] In one embodiment, Figure 2 As shown, a project resource management method is provided, which is applied to Figure 1 The terminal in is used as an example to illustrate, including the following steps:
[0041] Step 202, obtaining each project resource in the project folder.
[0042] It should be noted that the project refers to front-end applications such as web pages, browsers and their environments, applets and applications, and project resources refer to various resources involved in the project development process. These resources can be roughly divided into three types: project operation resources, project beautification resources, and project supplementary description resources. Among them, project operation resources refer to the resources necessary for the application to run, for example, files with file suffixes such as ".js", ".css", ".json" and ".xml" that guide users when the application is running, such as placeholders for content loading failures, application operation flow charts and user guidance charts; project beautification resources refer to resources used to beautify applications to enhance user experience, for example, icons, background images and text fonts that beautify pages; project supplementary description resources refer to resources used to supplement the application, for example, audio, video, PDF files and WORD files that play a promotional role. In this way, each of the project resources in the project folder is one of the project operation resources, project beautification resources and project supplementary description resources.
[0043] Step 204: determine whether the resource type of each project resource is a necessary resource or a non-necessary resource.
[0044] Necessary resources refer to resources that are required when the application is running, and non-essential resources refer to resources that are not required when the application is running. Taking the above-mentioned project resource types as an example, project operation resources are resources that are required when the application is running, and project beautification resources and project supplementary description resources are used to beautify and supplement the project, respectively, and are not resources that are required when the application is running. Therefore, the necessary resources include the project operation resources, and the non-essential resources include the project beautification resources and the project supplementary description resources.
[0045] Optionally, determining whether the resource type of each project resource is a necessary resource or a non-essential resource includes: inputting each project resource into a trained resource type identification model for identification, and obtaining a corresponding resource type as the necessary resource or the non-essential resource.
[0046] Furthermore, before inputting each project resource into the trained resource type recognition model for recognition, the method further includes: pre-training, fine-tuning and optimizing the preset resource type recognition model to obtain a trained resource type recognition model. Specifically, it includes:
[0047] Acquire multiple training data and data labels corresponding to the multiple training data, input the multiple training data and the data labels corresponding to the multiple training data into a preset resource type recognition model for pre-training, and obtain a pre-trained resource type recognition model; acquire multiple fine-tuning data and data labels corresponding to the multiple fine-tuning data, input the multiple fine-tuning data and the data labels corresponding to the multiple fine-tuning data into the pre-trained resource type recognition model for fine-tuning training, and obtain a fine-tuned resource type recognition model; acquire multiple verification data and real resource types corresponding to the multiple verification data, input the multiple verification data into the fine-tuned resource type recognition model for identification, and obtain corresponding predicted resource types; optimize and train the fine-tuned resource type model according to the comparison results between the predicted resource types and the real resource types corresponding to the multiple verification data, and obtain a trained resource type recognition model; wherein the training data, the fine-tuning data and the verification data include project operation resources, project beautification resources and project supplementary description resources, and the data labels, the real resource types and the predicted resource types are necessary resources or non-essential resources.
[0048] Step 206 , uploading the project resources whose resource type is non-essential resources to the server, and replacing the project resources whose resource type is non-essential resources in the project folder with the network storage address of the project resources whose resource type is non-essential resources in the server.
[0049] After determining whether the resource type of each project resource is a necessary resource or a non-necessary resource in step 204, all project resources in the project folder are divided into two categories: necessary resources and non-necessary resources; the project resources whose resource type is necessary resources are retained in the project folder; the project resources whose resource type is non-necessary resources in the project folder are deleted, and the network storage address of the project resources whose resource type is non-necessary resources in the server is saved under the local storage address of the project resources whose resource type is non-necessary resources in the project folder. The server may be a traditional server or a CDN server.
[0050] In a specific implementation, a resource upload plug-in is written to upload project resources whose resource type is non-essential resources to a server. When the resource type identification model determines that the resource type of a certain project resource is a non-essential resource, the resource upload plug-in reads the project resource in the project folder, calls the node ssh network service function, uploads the project resource to the server, and deletes the corresponding local project resource in the project folder after the project resource is successfully uploaded.
[0051] Furthermore, a resource replacement plug-in is written to replace the project resources in the project folder that are non-essential resources with their network storage addresses in the server. For example, a url-loader is written. After the resource upload plug-in uploads the project resources that are non-essential resources to the server, the url-loader obtains the network storage address of the project resources that are non-essential resources in the server, and replaces the project resources that are non-essential resources in the project folder with the network storage address. In this way, if the project resources that are non-essential resources need to be read during use, they can be obtained from the server through the corresponding network storage address stored in the project folder.
[0052] It should be noted that, in specific implementation, step 204 and step 206 can be executed in two timings. First, after all project resources in the project folder are divided into necessary resources or non-necessary resources, the project resources belonging to necessary resources are retained in the project folder, the project resources belonging to non-necessary resources are uploaded to the server, and the project resources belonging to non-necessary resources in the project folder are replaced with their network storage addresses in the server;
[0053] The second method is to judge the resource type of each project resource in the project folder one by one. When the resource type of a project resource is judged to be a necessary resource, the project resource is retained in the project folder. When the resource type of a project resource is judged to be a non-essential resource, the project resource is uploaded to the server and the project resource in the project folder is replaced with its network storage address in the server; the above steps are repeated until all project resources in the project folder are identified.
[0054] In a specific implementation, the steps of the method are executed in response to a packaging instruction, that is, before obtaining each project resource in the project folder, receiving and responding to the project resource packaging instruction after the project function code is developed; in addition, after uploading all project resources whose resource types are non-essential resources in the project folder to the server, and replacing all project resources whose resource types are non-essential resources in the project folder with corresponding network storage addresses, at this time, there are only project resources whose resource types are necessary resources in the project folder. In order to further reduce the storage space occupied by project resources, the project folder is packaged to generate a project resource package.
[0055] In the above project resource management method, project resources whose resource types are non-essential resources are uploaded to the server, and their network storage addresses in the server are replaced with their local resources in the project folder. When used, if the project resources to be read are necessary resources, they are directly obtained from the project folder. If the project resources to be read are non-essential resources, they are obtained from the server according to the network storage addresses stored in the project folder. This can not only reduce the storage space occupied by project resources, but also does not affect the basic use of the application when the resources are slowly loaded or cannot be loaded. This improves the existing technology of uploading all static resources to the server or CDN, and the problem of slow resource loading or even the inability to display some important resources due to untimely server response or unstable network in actual application, thereby improving the user experience.
[0056] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0057] In one embodiment, Figure 3 As shown, a project resource management system is provided, including: a resource acquisition module, a resource type judgment module and a resource management module, wherein:
[0058] Resource acquisition module, used to obtain various project resources in the project folder;
[0059] A resource type determination module, used to determine whether the resource type of each project resource is a necessary resource or a non-necessary resource;
[0060] The resource management module is used to upload the project resources whose resource type is non-essential resources to the server, and replace the project resources whose resource type is non-essential resources in the project folder with the network storage address of the project resources whose resource type is non-essential resources in the server.
[0061] In a specific implementation, the project resource is one of a project operation resource, a project beautification resource and a project supplementary description resource, the necessary resource includes the project operation resource, and the non-essential resource includes the project beautification resource and the project supplementary description resource.
[0062] In a specific implementation, the resource type judgment module is used to judge whether the resource type of each project resource is a necessary resource or a non-essential resource, specifically including: inputting each project resource into a trained resource type recognition model for identification, and obtaining the corresponding resource type as the necessary resource or the non-essential resource.
[0063] In a specific implementation, before inputting the various project resources into the trained resource type identification model for identification, the resource type judgment module is further used to: obtain a plurality of training data and data labels corresponding to the plurality of training data, input the plurality of training data and the data labels corresponding to the plurality of training data into a preset resource type identification model for pre-training, and obtain a pre-trained resource type identification model; obtain a plurality of fine-tuning data and data labels corresponding to the plurality of fine-tuning data, input the plurality of fine-tuning data and the data labels corresponding to the plurality of fine-tuning data into the pre-trained resource type identification model for fine-tuning training, and obtain a fine-tuned resource type identification model. type identification model; obtain multiple verification data and real resource types corresponding to the multiple verification data, input the multiple verification data into the fine-tuned resource type identification model for identification, and obtain the corresponding predicted resource types; optimize and train the fine-tuned resource type model according to the comparison results between the predicted resource types and the real resource types corresponding to the multiple verification data, and obtain a trained resource type identification model; wherein the training data, the fine-tuning data and the verification data include project operation resources, project beautification resources and project supplementary description resources, and the data labels, the real resource types and the predicted resource types are necessary resources or non-essential resources.
[0064] In a specific implementation, the resource management module is used to replace the project resources with the resource type of non-essential resources in the project folder with the network storage address of the project resources with the resource type of non-essential resources in the server, specifically including: deleting the project resources with the resource type of non-essential resources in the project folder, and saving the network storage address of the project resources with the resource type of non-essential resources in the server under the local storage address of the project resources with the resource type of non-essential resources stored in the project folder.
[0065] In a specific implementation, after the resource type determination module determines that the resource type of each project resource is a necessary resource or a non-necessary resource, the resource management module is further configured to retain the project resource whose resource type is a necessary resource in the project folder.
[0066] In a specific implementation, the resource acquisition module is used to receive and respond to the project resource packaging instruction after the project function code is developed before acquiring each project resource in the project folder; the resource management module is used to package the project folder to generate a project resource package after uploading all project resources whose resource types are non-essential resources in the project folder to the server and replacing all project resources whose resource types are non-essential resources in the project folder with corresponding network storage addresses.
[0067] For the specific definition of the project resource management system, please refer to the definition of the project resource management method above, which will not be repeated here. Each module in the above-mentioned project resource management system can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0068] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a project resource management system method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0069] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0070] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0071] Get each project resource in the project folder;
[0072] Determine whether the resource type of each project resource is a necessary resource or a non-necessary resource;
[0073] The project resources whose resource type is non-essential resources are uploaded to the server, and the project resources whose resource type is non-essential resources in the project folder are replaced with the network storage address of the project resources whose resource type is non-essential resources in the server.
[0074] In one embodiment, the project resource is one of a project operation resource, a project beautification resource and a project supplementary description resource, the necessary resource includes the project operation resource, and the non-essential resource includes the project beautification resource and the project supplementary description resource.
[0075] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0076] The various project resources are input into the trained resource type identification model for identification, and the corresponding resource type is obtained as the necessary resource or the non-essential resource.
[0077] In one embodiment, before inputting each of the project resources into the trained resource type recognition model for recognition, the processor further implements the following steps when executing the computer program:
[0078] Acquire multiple training data and data labels corresponding to the multiple training data, input the multiple training data and the data labels corresponding to the multiple training data into a preset resource type recognition model for pre-training, and obtain a pre-trained resource type recognition model;
[0079] Acquire multiple fine-tuning data and data labels corresponding to the multiple fine-tuning data, input the multiple fine-tuning data and the data labels corresponding to the multiple fine-tuning data into the pre-trained resource type recognition model for fine-tuning training, and obtain a fine-tuned resource type recognition model;
[0080] Acquire multiple verification data and real resource types corresponding to the multiple verification data, input the multiple verification data into the fine-tuned resource type identification model for identification, and obtain corresponding predicted resource types;
[0081] According to the comparison result between the predicted resource types and the real resource types corresponding to the multiple verification data, the fine-tuned resource type model is optimized and trained to obtain a trained resource type recognition model;
[0082] The training data, the fine-tuning data and the verification data include project operation resources, project beautification resources and project supplementary description resources, and the data labels, the real resource types and the predicted resource types are necessary resources or non-essential resources.
[0083] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0084] The project resources whose resource type is non-essential resources in the project folder are deleted, and the network storage address of the project resources whose resource type is non-essential resources in the server is saved under the local storage address of the project resources whose resource type is non-essential resources stored in the project folder.
[0085] In one embodiment, after determining whether the resource type of each project resource is a necessary resource or a non-necessary resource, the processor further implements the following steps when executing the computer program:
[0086] The project resources whose resource type is required resources are retained in the project folder.
[0087] In one embodiment, before acquiring each project resource in the project folder, the processor further implements the following steps when executing the computer program:
[0088] Receive and respond to project resource packaging instructions after project function code development is completed;
[0089] After uploading all the project resources whose resource types are non-essential resources in the project folder to the server and replacing all the project resources whose resource types are non-essential resources in the project folder with corresponding network storage addresses, the processor further implements the following steps when executing the computer program:
[0090] The project folder is packaged to generate a project resource package.
[0091] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0092] Get each project resource in the project folder;
[0093] Determine whether the resource type of each project resource is a necessary resource or a non-necessary resource;
[0094] The project resources whose resource type is non-essential resources are uploaded to the server, and the project resources whose resource type is non-essential resources in the project folder are replaced with the network storage address of the project resources whose resource type is non-essential resources in the server.
[0095] In one embodiment, the project resource is one of a project operation resource, a project beautification resource and a project supplementary description resource, the necessary resource includes the project operation resource, and the non-essential resource includes the project beautification resource and the project supplementary description resource.
[0096] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0097] The various project resources are input into the trained resource type identification model for identification, and the corresponding resource type is obtained as the necessary resource or the non-essential resource.
[0098] In one embodiment, before inputting each of the project resources into the trained resource type recognition model for recognition, the computer program further implements the following steps when executed by the processor:
[0099] Acquire multiple training data and data labels corresponding to the multiple training data, input the multiple training data and the data labels corresponding to the multiple training data into a preset resource type recognition model for pre-training, and obtain a pre-trained resource type recognition model;
[0100] Acquire multiple fine-tuning data and data labels corresponding to the multiple fine-tuning data, input the multiple fine-tuning data and the data labels corresponding to the multiple fine-tuning data into the pre-trained resource type recognition model for fine-tuning training, and obtain a fine-tuned resource type recognition model;
[0101] Acquire multiple verification data and real resource types corresponding to the multiple verification data, input the multiple verification data into the fine-tuned resource type identification model for identification, and obtain corresponding predicted resource types;
[0102] According to the comparison result between the predicted resource types and the real resource types corresponding to the multiple verification data, the fine-tuned resource type model is optimized and trained to obtain a trained resource type recognition model;
[0103] The training data, the fine-tuning data and the verification data include project operation resources, project beautification resources and project supplementary description resources, and the data labels, the real resource types and the predicted resource types are necessary resources or non-essential resources.
[0104] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0105] The project resources whose resource type is non-essential resources in the project folder are deleted, and the network storage address of the project resources whose resource type is non-essential resources in the server is saved under the local storage address of the project resources whose resource type is non-essential resources stored in the project folder.
[0106] In one embodiment, after determining whether the resource type of each project resource is a necessary resource or a non-necessary resource, the computer program further implements the following steps when executed by the processor:
[0107] The project resources whose resource type is required resources are retained in the project folder.
[0108] In one embodiment, before obtaining each project resource in the project folder, the computer program further implements the following steps when executed by the processor:
[0109] Receive and respond to project resource packaging instructions after project function code development is completed;
[0110] After uploading all the project resources whose resource types are non-essential resources in the project folder to the server and replacing all the project resources whose resource types are non-essential resources in the project folder with corresponding network storage addresses, the processor further implements the following steps when executing the computer program:
[0111] The project folder is packaged to generate a project resource package.
[0112] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0113] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0114] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A project resource management method, characterized in that: The method comprises: Get each project resource in the project folder; Determine whether the resource type of each project resource is a necessary resource or a non-necessary resource; The project resources whose resource type is non-essential resources are uploaded to the server, and the project resources whose resource type is non-essential resources in the project folder are replaced with the network storage address of the project resources whose resource type is non-essential resources in the server.
2. The project resource management method according to claim 1, characterized in that: The project resource is one of a project operation resource, a project beautification resource and a project supplementary description resource. The necessary resources include the project operation resource, and the non-essential resources include the project beautification resource and the project supplementary description resource.
3. The project resource management method according to claim 1, characterized in that: Determining whether the resource type of each project resource is a necessary resource or a non-necessary resource includes: The various project resources are input into the trained resource type identification model for identification, and the corresponding resource type is obtained as the necessary resource or the non-essential resource.
4. The project resource management method according to claim 3, characterized in that: Before inputting each of the project resources into the trained resource type recognition model for recognition, the method further includes: Acquire multiple training data and data labels corresponding to the multiple training data, input the multiple training data and the data labels corresponding to the multiple training data into a preset resource type recognition model for pre-training, and obtain a pre-trained resource type recognition model; Acquire multiple fine-tuning data and data labels corresponding to the multiple fine-tuning data, input the multiple fine-tuning data and the data labels corresponding to the multiple fine-tuning data into the pre-trained resource type recognition model for fine-tuning training, and obtain a fine-tuned resource type recognition model; Acquire multiple verification data and real resource types corresponding to the multiple verification data, input the multiple verification data into the fine-tuned resource type identification model for identification, and obtain corresponding predicted resource types; According to the comparison result between the predicted resource types and the real resource types corresponding to the multiple verification data, the fine-tuned resource type model is optimized and trained to obtain a trained resource type recognition model; The training data, the fine-tuning data and the verification data include project operation resources, project beautification resources and project supplementary description resources, and the data labels, the real resource types and the predicted resource types are necessary resources or non-essential resources.
5. The project resource management method according to claim 1, characterized in that: Replacing the project resource whose resource type is non-essential resource in the project folder with the network storage address of the project resource whose resource type is non-essential resource in the server includes: The project resources whose resource type is non-essential resources in the project folder are deleted, and the network storage address of the project resources whose resource type is non-essential resources in the server is saved under the local storage address of the project resources whose resource type is non-essential resources stored in the project folder.
6. The project resource management method according to claim 1, characterized in that: After determining whether the resource type of each project resource is a necessary resource or a non-necessary resource, the project resources whose resource type is a necessary resource are retained in the project folder.
7. The project resource management method according to claim 6, characterized in that: Before acquiring each project resource in the project folder, receiving and responding to a project resource packaging instruction after the project function code is developed; After uploading all the project resources whose resource types are non-essential resources in the project folder to the server and replacing all the project resources whose resource types are non-essential resources in the project folder with corresponding network storage addresses, the project folder is packaged to generate a project resource package.
8. A project resource management system, characterized in that: The system comprises: Resource acquisition module, used to obtain various project resources in the project folder; A resource type determination module, used to determine whether the resource type of each project resource is a necessary resource or a non-necessary resource; The resource management module is used to upload the project resources whose resource type is non-essential resources to the server, and replace the project resources whose resource type is non-essential resources in the project folder with the network storage address of the project resources whose resource type is non-essential resources in the server.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the project resource management method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the project resource management method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Resource file downloading method and device, computer equipment and storage medium
CN109634925A
A method and a system for managing resources according to game resource types
CN109814884A
Front-end resource management method and device, equipment and storage medium
CN115185907A
