AIGC-assisted teaching courseware image generation method and platform

Through the AIGC-assisted teaching courseware image generation method and platform, the semantic element decomposition network and the spare computing power on the cloud are used to solve the problem of insufficient computing power in the traditional method and improve the efficiency of teaching courseware image generation.

CN118710757BActive Publication Date: 2024-10-29KUNMING UNIV OF SCI & TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411170725.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-10-29
Estimated Expiration
2044-08-26

AI Technical Summary

Technical Problem

Traditional teaching courseware image generation methods are limited by local computing resources, resulting in insufficient computing power and low generation efficiency, making it difficult to meet the needs of modern teaching for high-quality and efficient courseware.

Method used

Using AIGC-assisted teaching courseware image generation method and platform, the characteristics of the courseware image generation request statement are extracted through the semantic element decomposition network, and the image generation computing power is analyzed to determine whether spare computing power on the cloud is needed and generate a computing power center scheduling plan. , assign tasks to the cloud computing center for processing, and achieve image generation.

Benefits of technology

It improves the efficiency of courseware image generation, disperses the image generation pressure through edge computing, and solves the problem of low generation efficiency caused by insufficient computing power.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118710757B_ABST
    Figure CN118710757B_ABST
Patent Text Reader

Abstract

The present invention discloses a teaching courseware image generation method and platform based on AIGC assistance, and relates to the field of data processing technology. The method includes: receiving a courseware image generation request statement through a user terminal; performing feature extraction on the courseware image generation request statement to obtain a role type descriptor, a role behavior descriptor, and a scene descriptor; performing image generation computing power analysis to generate image generation prediction computing power; when the image generation prediction computing power is greater than the local computing power threshold, obtaining the idle computing power center status information on the cloud; performing task allocation to generate a computing power center scheduling plan; performing teaching courseware image generation according to the computing power center scheduling plan, generating a target courseware image, and sending it to the user terminal. The technical problem of low generation efficiency caused by insufficient computing power in the teaching courseware image generation process in the prior art is solved, and the image generation pressure is dispersed from the spatial domain through edge computing generation strategy, achieving the technical effect of improving image generation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a method and platform for generating teaching courseware images based on AIGC assistance. Background Art

[0002] In the wave of digital education, teaching courseware is an important auxiliary tool in the teaching process, and its quality and generation efficiency directly affect the teaching effect and learning experience. With the increasing maturity of artificial intelligence (AI) and cloud computing technologies, these advanced technologies have brought revolutionary changes to the image generation of teaching courseware. However, traditional courseware image generation methods are limited by local computing resources, often facing problems such as insufficient computing power and low efficiency, and it is difficult to meet the needs of modern teaching for high-quality and efficient courseware. On the other hand, the popularization of cloud computing technology has brought a large amount of idle computing power resources on the cloud. If these resources can be effectively utilized, the efficiency and quality of courseware image generation will be greatly improved. However, how to combine these idle computing powers on the cloud with the task of courseware image generation to achieve efficient and intelligent scheduling and allocation has become an urgent problem to be solved in the field of education. Summary of the invention

[0003] The present application provides a teaching courseware image generation method and platform based on AIGC assistance, which solves the technical problem of low generation efficiency caused by insufficient computing power in the teaching courseware image generation process in the prior art.

[0004] In view of the above problems, the embodiments of the present application provide a teaching courseware image generation method and platform based on AIGC assistance.

[0005] A first aspect of an embodiment of the present application provides a method for generating teaching courseware images based on AIGC assistance, the method comprising:

[0006] A courseware image generation request statement is received through a user terminal; a feature extraction is performed on the courseware image generation request statement through a semantic element decomposition network to obtain a role type descriptor, a role behavior descriptor and a scene descriptor; an image generation computing power analysis is performed based on the role type descriptor, the role behavior descriptor and the scene descriptor to generate an image generation prediction computing power; when the image generation prediction computing power is greater than a local computing power threshold, the status information of a cloud idle computing power center in a preset time zone is obtained; based on the cloud idle computing power center status information and the image generation prediction computing power, tasks are assigned to a set of cloud idle computing power centers based on the role type descriptor, the role behavior descriptor and the scene descriptor to generate a computing power center scheduling plan; teaching courseware images are generated according to the computing power center scheduling plan to generate a target courseware image, which is then sent to a user terminal.

[0007] A second aspect of the embodiment of the present application provides a teaching courseware image generation platform based on AIGC assistance, the platform comprising:

[0008] A receiving module, the receiving module is used to receive a courseware image generation request statement through a user terminal; a feature extraction module, the feature extraction module is used to extract features of the courseware image generation request statement through a semantic element decomposition network, and obtain a role type descriptor, a role behavior descriptor, and a scene descriptor; a computing power analysis module, the computing power analysis module is used to analyze the image generation computing power according to the role type descriptor, the role behavior descriptor, and the scene descriptor, and generate an image generation prediction computing power; a computing power judgment module, the computing power judgment module is used to obtain the state information of the idle computing power center on the cloud in a preset time zone when the image generation prediction computing power is greater than the local computing power threshold; a task allocation module, the task allocation module is used to allocate tasks to the idle computing power center set on the cloud based on the idle computing power center state information on the cloud and the image generation prediction computing power, based on the role type descriptor, the role behavior descriptor, and the scene descriptor, and generate a computing power center scheduling plan; an image generation module, the image generation module is used to generate teaching courseware images according to the computing power center scheduling plan, generate target courseware images, and send them to the user terminal.

[0009] One or more technical solutions provided in this application have at least the following technical effects or advantages:

[0010] First, a courseware image generation request statement is received through the user end. Then, the feature extraction of the courseware image generation request statement is performed through the semantic element decomposition network to obtain the role type descriptor, role behavior descriptor and scene descriptor. Then, the image generation computing power is analyzed according to the role type descriptor, role behavior descriptor and scene descriptor to generate the image generation prediction computing power. When the image generation prediction computing power is greater than the local computing power threshold, the state information of the idle computing power center on the cloud in the preset time zone is obtained. Further, according to the idle computing power center state information on the cloud and the image generation prediction computing power, the idle computing power center set on the cloud is assigned tasks based on the role type descriptor, role behavior descriptor and scene descriptor, and a computing power center scheduling plan is generated. Finally, the teaching courseware image is generated according to the computing power center scheduling plan, the target courseware image is generated, and sent to the user end. The technical problem of low generation efficiency caused by insufficient computing power in the teaching courseware image generation process in the prior art is solved. The image generation pressure is dispersed from the spatial domain through the edge computing generation strategy, and the technical effect of improving the image generation efficiency is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0012] Figure 1 A flowchart of a method for generating teaching courseware images based on AIGC assistance provided in an embodiment of the present application;

[0013] Figure 2 A schematic diagram of the structure of the teaching courseware image generation platform based on AIGC assistance provided in the embodiment of the present application;

[0014] Explanation of the accompanying drawings: receiving module 11, feature extraction module 12, computing power analysis module 13, computing power judgment module 14, task allocation module 15, image generation module 16. DETAILED DESCRIPTION

[0015] The embodiments of the present application solve the technical problem of low generation efficiency caused by insufficient computing power in the prior art during the generation of teaching courseware images by providing a method and platform for generating teaching courseware images based on AIGC assistance.

[0016] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0017] It should be noted that the terms "including" and "having" are intended to cover non-exclusive inclusions. For example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or modules that are not explicitly listed or are inherent to these processes, methods, products or devices.

[0018] Embodiment 1: as Figure 1 As shown, the embodiment of the present application provides a method for generating teaching courseware images based on AIGC assistance, wherein the method includes:

[0019] Through the user end, the courseware image is received to generate a request statement.

[0020] Receive courseware image generation request statements through a user end (such as a web interface, mobile application, or desktop application), and these request statements may include a specific description of the image, a desired style, theme, or specific elements, etc.

[0021] The feature extraction of the courseware image generation request statement is performed through a semantic element decomposition network to obtain a role type descriptor, a role behavior descriptor and a scene descriptor.

[0022] The semantic factor decomposition network is usually a deep learning model, such as a recurrent neural network, a long short-term memory network, etc., which is used to capture semantic information in text. The semantic factor decomposition network is used to extract features from the request statement for courseware image generation, including role type, role behavior, and scene. After feature extraction, the semantic factor decomposition network will output role type descriptors, role behavior descriptors, and scene descriptors. Among them, the role type descriptor will be used to guide the drawing and style selection of the role in the image, such as students, teachers, scientists, etc.; the role behavior descriptor will determine the posture and action of the role in the image, such as lectures, experiments, discussions, etc.; the scene descriptor will guide the drawing of the image background and the creation of the overall atmosphere, such as classrooms, laboratories, and outdoors. The semantic factor decomposition network is used to extract features from the request statement for courseware image generation, which can ensure that the system can accurately understand the user's intention and generate images that meet the requirements.

[0023] Furthermore, the feature extraction of the courseware image generation request statement is performed through the semantic element decomposition network to obtain the role type descriptor, role behavior descriptor and scene descriptor, including:

[0024] The semantic element decomposition network includes a syntactic structure segmentation channel, a role type extraction channel, a role behavior extraction channel and a scene type extraction channel, and the syntactic structure segmentation channel, the role type extraction channel, the role behavior extraction channel and the scene type extraction channel are connected in sequence; through the syntactic structure segmentation channel, the courseware image generation request statement is segmented to generate a syntactic tree diagram; through the role type extraction channel, the syntactic tree diagram is processed to generate the role type descriptor; through the role behavior extraction channel, the syntactic tree diagram and the role type descriptor are processed to generate the role behavior descriptor; through the scene type extraction channel, the syntactic tree diagram, the role type descriptor and the role behavior descriptor are processed to generate the scene descriptor.

[0025] The semantic element decomposition network is responsible for extracting key information from the courseware image generation request sentence, including the syntactic structure segmentation channel, the role type extraction channel, the role behavior extraction channel and the scene type extraction channel. These channels are connected in sequence and jointly complete the conversion process from text to key descriptors. The syntactic structure segmentation channel receives the courseware image generation request sentence as input, performs syntactic analysis on the input sentence, divides it into different components, and generates a syntactic tree diagram. The syntactic tree diagram describes the various elements in the sentence (such as subject, predicate, object, etc.) and the relationship between them; the role type extraction channel receives the syntactic tree diagram as input, identifies the parts related to the role type by analyzing the elements and relationships in the tree diagram, and extracts the corresponding features. These features are converted into role type descriptors, which are used to describe the role type that should appear in the image (such as students, teachers, scientists, etc.); the role behavior extraction channel receives both the syntactic tree diagram and the role type descriptor as input, and further analyzes the tree diagram. The elements and relationships in the tree diagram, especially those related to the role behavior, are extracted under the guidance of the role type descriptor. The behavior features associated with the specific role type are converted into role behavior descriptors, which are used to describe the specific behaviors that the role in the image should perform (such as lecturing, experimenting, discussing, etc.); the scene type extraction channel receives the syntactic tree diagram, role type descriptor and role behavior descriptor as input, comprehensively analyzes these input information, especially those related to the scene setting, and extracts the features related to the specific scene under the guidance of the role type and role behavior. These features are converted into scene descriptors, which are used to describe the overall environment or background (such as classroom, laboratory, outdoor, etc.) that the image should present. Through the collaborative work of the above four channels, the complexity of the overall analysis is simplified. The semantic element decomposition network can accurately extract key information such as role type, role behavior and scene type from the courseware image generation request statement and generate corresponding descriptors.

[0026] Furthermore, the courseware image generation request statement is segmented through the syntactic structure segmentation channel to generate a syntactic tree diagram, including:

[0027] A root node is added to the courseware image generation request statement, and the courseware image generation request statement is split into a first level through a dictionary library to generate a first level split phrase set and a first level phrase grammatical component label set; a first level leaf node is constructed according to the first level split phrase set and the first level phrase grammatical component label; the first level split phrase set is traversed through the dictionary library for a second level split to generate a second level split phrase set and a second level phrase grammatical component label set; a second level leaf node is constructed according to the second level split phrase set and the second level phrase grammatical component label; until an N level split phrase set and an N level phrase grammatical component label set are generated, wherein any phrase in the N level split phrase set cannot be split into multiple grammatical components; an N level leaf node is constructed according to the N level split phrase set and the N level phrase grammatical component label; and the syntactic tree is constructed according to the root node, the first level leaf node, the second level leaf node, and finally the N level leaf node.

[0028] Preferably, the courseware image generation request statement is added as a root node, and the courseware image generation request statement is split into a first level using a dictionary library to identify the words, phrases or word groups in the sentence, and a first-level split phrase set is generated. At the same time, a corresponding grammatical component label (such as noun, verb, adjective, etc.) is assigned to each first-level split phrase to form a first-level phrase grammatical component label set; a first-level leaf node is constructed for the syntactic tree diagram based on the first-level split phrase set and the first-level phrase grammatical component label set, each first-level leaf node represents a first-level split phrase and contains its corresponding grammatical component label; the first-level split phrase set is traversed, and the sub-phrases or word groups that may be contained therein are split into a second level, and the word or phrase in the sub-phrase or word group is identified using a dictionary library, and a second-level split phrase set is generated. Similarly, for each second-level The split phrases are assigned grammatical component labels to form a set of grammatical component labels for the second-level phrases; based on the set of second-level split phrases and the set of second-level phrase grammatical component labels, second-level leaf nodes are constructed for the syntactic tree diagram, and these second-level leaf nodes are child nodes of the first-level leaf nodes, representing more detailed grammatical components; the above splitting and construction process is repeated until N levels of splitting are reached. In each level of splitting, it is ensured that any phrase in the generated phrase set cannot be split into multiple grammatical components, and corresponding leaf nodes are constructed for each level of splitting, and they are added to the syntactic tree diagram as child nodes of the parent node; a complete syntactic tree diagram is constructed based on the root node, the first-level leaf node, the second-level leaf node, and the N-level leaf node. The syntactic tree diagram shows the grammatical structure of the request statement, and each node contains its corresponding grammatical component label. For example, if the input sentence is, an 8-year-old Chinese boy in a square holding an ice cream with a puppy pattern in his hand, then the first-level split result is an 8-year-old boy in a square holding an ice cream with a puppy pattern in his hand. Each split only focuses on who is where and what he did. The input sentence is, a boy in a square holding an ice cream, and then the whole split is an 8-year-old boy in a square holding an ice cream with a puppy pattern in his hand; then the second-level split can be performed; stop when it cannot be split. In this way, a detailed syntactic tree diagram can be constructed from the request sentence generated by the courseware image.

[0029] An image generation computing power analysis is performed according to the role type descriptor, the role behavior descriptor, and the scene descriptor to generate image generation prediction computing power.

[0030] After obtaining the character type descriptor, character behavior descriptor, and scene descriptor, the image generation power analysis can be performed to predict the power required to generate the required image. By analyzing the character type descriptor, the number of characters in the image and the complexity of the characters (such as whether fine textures, geometric shapes, etc. are involved); by analyzing the character behavior descriptor, it is determined whether the behavior involves dynamic scenes or complex actions; by analyzing the scene descriptor, the complexity of the scene is evaluated, including background details, lighting conditions, the number of objects in the scene, etc.; the statistical model can be used to predict the power required to generate the image and obtain the image generation prediction power.

[0031] Furthermore, performing image generation computing power analysis according to the role type descriptor, the role behavior descriptor, and the scene descriptor to generate image generation prediction computing power includes:

[0032] The role type descriptor includes an N-level role type descriptor list, an N-1-level role type descriptor list, and a first-level role type descriptor list; the role behavior descriptor includes an N-level role behavior descriptor list, an N-1-level role behavior descriptor list, and a first-level role behavior descriptor list; the scene descriptor includes an N-level scene descriptor list, an N-1-level scene descriptor list, and a first-level scene descriptor list; based on the N-level role type descriptor list, the N-1-level role type descriptor list, and the first-level role type descriptor list, the N-level role behavior descriptor list, the N-1-level role behavior descriptor list, and the N-level scene descriptor list, the N-1-level scene descriptor list, and the first-level scene descriptor list, a computing power analysis is performed to generate the image generation prediction computing power.

[0033] Each level of descriptor represents a different level of detail and complexity, which will affect the final image generation computing power. Among them, the character behavior descriptor includes the N-level character behavior descriptor list, the N-1-level character behavior descriptor list, and the first-level character behavior descriptor list; the character behavior descriptor includes the N-level character behavior descriptor list, the N-1-level character behavior descriptor list, and the first-level character behavior descriptor list; the scene descriptor includes the N-level scene descriptor list, the N-1-level scene descriptor list, and the first-level scene descriptor list. The computing power analysis is performed on the N-level character type descriptor list, the N-1-level character type descriptor list, and the N-level character behavior descriptor list. According to the complexity of the descriptors at different levels, the computing power required for each level is predicted, and the predicted computing power of each level is integrated to obtain the final image generation prediction computing power of the entire image.

[0034] Further, based on the N-level role type descriptor list, the N-1-level role type descriptor list, up to the first-level role type descriptor list, the N-level role behavior descriptor list, the N-1-level role behavior descriptor list, up to the first-level role behavior descriptor list, the N-level scene descriptor list, the N-1-level scene descriptor list, up to the first-level scene descriptor list, computing power analysis is performed to generate the image generation prediction computing power, including:

[0035] According to the N-level role type descriptor list, the N-level role behavior descriptor list and the N-level scene descriptor list, an N-level description attribute array is constructed; until a first-level description attribute array is constructed according to the first-level role type descriptor list, the first-level role behavior descriptor list and the first-level scene descriptor list; the first-level description attribute array is traversed until the N-level description attribute array performs a computing power requirement mode statistics to generate N computing power requirements; the maximum value of the N computing power requirements is extracted and set as the image generation prediction computing power.

[0036] Preferably, starting from level N, the elements in the N-level character type descriptor list, the N-level character behavior descriptor list, and the N-level scene descriptor list are combined to construct an N-level description attribute array, where each element in the array contains a complete description of the character type, behavior, and scene. For level N-1, level N-2, and up to level one, the above process is repeated to construct the description attribute array of the corresponding level; starting from the level one description attribute array, each description attribute in the array is traversed, and an expected computing power requirement is assigned to each description attribute based on historical data or predefined rules. For each description attribute in the array, the number of occurrences of its computing power requirement is counted, and the mode (i.e., the computing power requirement with the largest number of occurrences) is found, and the mode is used as the computing power requirement for the description attribute array of that level; the above process is repeated for the level two description attribute array, the level three description attribute array, and up to the level N description attribute array to generate the computing power requirement for each level; after obtaining the computing power requirements for N levels, the maximum value among these requirements is extracted, and this maximum value is set as the predicted computing power for image generation, so as to ensure that there is enough computing power to handle the most complex scenes.

[0037] Furthermore, the first-level description attribute array is traversed until the N-level description attribute array is used to perform a majority calculation of computing power requirements, and N computing power requirements are generated, including:

[0038] According to the first-level description attribute array to the N-level description attribute array, a k-level description attribute array is extracted; with the k-level description attribute array, a set of historical values ​​of occupied computing power is retrieved online; a majority analysis is performed on the set of historical values ​​of occupied computing power to generate a k-level computing power demand, which is added to the N computing power demands.

[0039] Preferably, a k-level description attribute array is selected and extracted from the first-level description attribute array to the N-level description attribute array; the k-level description attribute array is used as a query condition, and the historical image generation tasks and their corresponding computing power occupancy values ​​that match these description attributes are retrieved online, and the retrieval result is a set of historical values ​​of occupied computing power, and each element in the set is a computing power occupancy value of a historical task; a statistical analysis is performed on the retrieved set of historical values ​​of occupied computing power to find the computing power value that appears most frequently, that is, the mode, and this mode represents the most common computing power occupancy value in the historical tasks that match the k-level description attribute array; the mode calculated in the above steps is used as the k-level computing power demand, and this k-level computing power demand is added to the N computing power demands.

[0040] When the image generation prediction computing power is greater than the local computing power threshold, the cloud idle computing power center status information of the preset time zone is obtained.

[0041] When the image generation prediction computing power is greater than the local computing power threshold, it means that the local computing resources may not be sufficient to meet the needs of the image generation task. In this case, cloud computing resources are used to expand computing power. According to business needs, one or more preset time zones are determined. These preset time zones represent time periods with lower cloud resource costs or better performance. Based on the cloud resource provider's API, the status information of the idle computing power center on the cloud within the preset time zone is queried, including available computing power, latency, cost, geographic location, etc.

[0042] According to the state information of the idle computing power center on the cloud and the predicted computing power generated by the image, tasks are allocated to the set of idle computing power centers on the cloud based on the role type descriptor, the role behavior descriptor and the scene descriptor, and a computing power center scheduling plan is generated.

[0043] Generate predicted computing power based on the image and determine the computing power scale required for the task. Combined with the role type descriptor, role behavior descriptor, and scene descriptor, analyze the specific requirements and characteristics of the task, such as whether high-performance computing is required, whether low latency is required, etc. Based on the task requirements and the status information of idle computing centers on the cloud, screen out a set of computing centers that meet the requirements. Based on the task requirements and the status of the computing centers, formulate a task allocation strategy, such as splitting the task into multiple subtasks and assigning them to different computing centers for parallel processing to improve processing efficiency. Based on the task allocation strategy, generate a specific computing center scheduling plan. The scheduling plan should clearly define the tasks that each computing center needs to process, the priority of the tasks, the start and end time of the tasks, etc.

[0044] Further, according to the idle computing power center status information on the cloud and the predicted computing power for image generation, based on the role type descriptor, the role behavior descriptor and the scene descriptor, tasks are assigned to the idle computing power center set on the cloud, and a computing power center scheduling plan is generated, including:

[0045] From the N computing power requirements, extract several computing power requirements that are greater than or equal to the local computing power threshold; traverse the several computing power requirements, perform task allocation based on the set of idle computing power centers on the cloud, and generate several computing power center scheduling sub-plans; add the several computing power center scheduling sub-plans into the computing power center scheduling plan.

[0046] Preferably, from N computing power demands, those computing power demands that are greater than or equal to the local computing power threshold are screened out, and these computing power demands represent tasks that cannot be processed locally and require computing power support on the cloud; for each computing power demand that is greater than or equal to the local computing power threshold, a separate traversal and processing is performed; for each computing power demand, the status information of the set of idle computing power centers on the cloud is queried, including the available computing power, geographical location, delay, cost, etc. of each computing power center; since the computing power centers are idle in the set time zone, each computing power demand is staggered based on the set of idle computing power centers on the cloud to obtain multiple computing power center scheduling sub-plans; and the multiple computing power center scheduling sub-plans are added to the computing power center scheduling plan.

[0047] The teaching courseware image is generated according to the computing power center scheduling plan, the target courseware image is generated, and sent to the user end.

[0048] According to the computing center scheduling plan, the teaching courseware image generation task is assigned to the corresponding computing center for teaching courseware image generation. After all tasks are completed, the image results generated by each computing center are collected to generate the target courseware image, and the generated target courseware image is sent to the user end.

[0049] Furthermore, generating a teaching courseware image according to the computing power center scheduling plan, generating a target courseware image, and sending it to the user end includes:

[0050] According to the N-level role type descriptor list, the N-level role behavior descriptor list and the N-level scene descriptor list, image generation is performed based on the computing power center scheduling plan to generate an N-level image; until according to the first-level role type descriptor list, the first-level role behavior descriptor list and the first-level scene descriptor list, image generation is performed based on the computing power center scheduling plan to generate a first-level image; the first-level images are merged until the N-level image, a target courseware image is generated, and sent to the user end.

[0051] Preferably, starting from level N, image generation is performed according to level N role type descriptors, level N role behavior descriptors and level N scene descriptors, as well as a computing power center scheduling plan, and the above process is repeated. For each level, image generation is performed using a corresponding descriptor list and a computing power center scheduling plan until a level one image is generated. After all images from level one to level N are generated, image synthesis technology, layer overlay, transparency adjustment and other methods can be used to fuse the images to generate a target courseware image, and the target courseware is sent to the user end.

[0052] In summary, the embodiments of the present application have at least the following technical effects:

[0053] First, a courseware image generation request statement is received through the user end. Then, the feature extraction of the courseware image generation request statement is performed through the semantic element decomposition network to obtain the role type descriptor, role behavior descriptor and scene descriptor. Then, the image generation computing power is analyzed according to the role type descriptor, role behavior descriptor and scene descriptor to generate the image generation prediction computing power. When the image generation prediction computing power is greater than the local computing power threshold, the state information of the idle computing power center on the cloud in the preset time zone is obtained. Further, according to the idle computing power center state information on the cloud and the image generation prediction computing power, the idle computing power center set on the cloud is assigned tasks based on the role type descriptor, role behavior descriptor and scene descriptor, and a computing power center scheduling plan is generated. Finally, the teaching courseware image is generated according to the computing power center scheduling plan, the target courseware image is generated, and sent to the user end. The technical problem of low generation efficiency caused by insufficient computing power in the teaching courseware image generation process in the prior art is solved. The image generation pressure is dispersed from the spatial domain through the edge computing generation strategy, and the technical effect of improving the image generation efficiency is achieved.

[0054] Embodiment 2: Based on the same inventive concept as the teaching courseware image generation method based on AIGC assistance in the above embodiment, Figure 2 As shown, the present application provides a teaching courseware image generation platform based on AIGC assistance, and the platform and method embodiments in the present application embodiments are based on the same inventive concept. Among them, the platform includes:

[0055] A receiving module 11 is used to receive a courseware image generation request statement through a user terminal; a feature extraction module 12 is used to extract features of the courseware image generation request statement through a semantic element decomposition network to obtain a role type descriptor, a role behavior descriptor and a scene descriptor; a computing power analysis module 13 is used to perform image generation computing power analysis based on the role type descriptor, the role behavior descriptor and the scene descriptor to generate image generation prediction computing power; a computing power judgment module 14 is used to The image generation prediction computing power is greater than the local computing power threshold, and the status information of the idle computing power center on the cloud in the preset time zone is obtained; the task allocation module 15, the task allocation module 15 is used to allocate tasks to the idle computing power center set on the cloud based on the idle computing power center status information on the cloud and the image generation prediction computing power, based on the role type descriptor, the role behavior descriptor and the scene descriptor, and generate a computing power center scheduling plan; the image generation module 16, the image generation module 16 is used to generate teaching courseware images according to the computing power center scheduling plan, generate target courseware images, and send them to the user end.

[0056] Furthermore, the feature extraction module 12 is used to perform the following method:

[0057] The semantic element decomposition network includes a syntactic structure segmentation channel, a role type extraction channel, a role behavior extraction channel and a scene type extraction channel, and the syntactic structure segmentation channel, the role type extraction channel, the role behavior extraction channel and the scene type extraction channel are connected in sequence; through the syntactic structure segmentation channel, the courseware image generation request statement is segmented to generate a syntactic tree diagram; through the role type extraction channel, the syntactic tree diagram is processed to generate the role type descriptor; through the role behavior extraction channel, the syntactic tree diagram and the role type descriptor are processed to generate the role behavior descriptor; through the scene type extraction channel, the syntactic tree diagram, the role type descriptor and the role behavior descriptor are processed to generate the scene descriptor.

[0058] Furthermore, the feature extraction module 12 is used to perform the following method:

[0059] A root node is added to the courseware image generation request statement, and the courseware image generation request statement is split into a first level through a dictionary library to generate a first level split phrase set and a first level phrase grammatical component label set; a first level leaf node is constructed according to the first level split phrase set and the first level phrase grammatical component label; the first level split phrase set is traversed through the dictionary library for a second level split to generate a second level split phrase set and a second level phrase grammatical component label set; a second level leaf node is constructed according to the second level split phrase set and the second level phrase grammatical component label; until an N level split phrase set and an N level phrase grammatical component label set are generated, wherein any phrase in the N level split phrase set cannot be split into multiple grammatical components; an N level leaf node is constructed according to the N level split phrase set and the N level phrase grammatical component label; and the syntactic tree is constructed according to the root node, the first level leaf node, the second level leaf node, and finally the N level leaf node.

[0060] Furthermore, the computing power analysis module 13 is used to execute the following method:

[0061] The role type descriptor includes an N-level role type descriptor list, an N-1-level role type descriptor list, and a first-level role type descriptor list; the role behavior descriptor includes an N-level role behavior descriptor list, an N-1-level role behavior descriptor list, and a first-level role behavior descriptor list; the scene descriptor includes an N-level scene descriptor list, an N-1-level scene descriptor list, and a first-level scene descriptor list; based on the N-level role type descriptor list, the N-1-level role type descriptor list, and the first-level role type descriptor list, the N-level role behavior descriptor list, the N-1-level role behavior descriptor list, and the N-level scene descriptor list, the N-1-level scene descriptor list, and the first-level scene descriptor list, a computing power analysis is performed to generate the image generation prediction computing power.

[0062] Furthermore, the computing power analysis module 13 is used to perform the following method:

[0063] According to the N-level role type descriptor list, the N-level role behavior descriptor list and the N-level scene descriptor list, an N-level description attribute array is constructed; until a first-level description attribute array is constructed according to the first-level role type descriptor list, the first-level role behavior descriptor list and the first-level scene descriptor list; the first-level description attribute array is traversed until the N-level description attribute array performs a computing power requirement mode statistics to generate N computing power requirements; the maximum value of the N computing power requirements is extracted and set as the image generation prediction computing power.

[0064] Furthermore, the computing power analysis module 13 is used to perform the following method:

[0065] According to the first-level description attribute array to the N-level description attribute array, a k-level description attribute array is extracted; with the k-level description attribute array, a set of historical values ​​of occupied computing power is retrieved online; a majority analysis is performed on the set of historical values ​​of occupied computing power to generate a k-level computing power demand, which is added to the N computing power demands.

[0066] Furthermore, the task allocation module 15 is used to execute the following method:

[0067] From the N computing power requirements, extract several computing power requirements that are greater than or equal to the local computing power threshold; traverse the several computing power requirements, perform task allocation based on the set of idle computing power centers on the cloud, and generate several computing power center scheduling sub-plans; add the several computing power center scheduling sub-plans into the computing power center scheduling plan.

[0068] Furthermore, the image generation module 16 is used to perform the following method:

[0069] According to the N-level role type descriptor list, the N-level role behavior descriptor list and the N-level scene descriptor list, image generation is performed based on the computing power center scheduling plan to generate an N-level image; until according to the first-level role type descriptor list, the first-level role behavior descriptor list and the first-level scene descriptor list, image generation is performed based on the computing power center scheduling plan to generate a first-level image; the first-level images are merged until the N-level image, a target courseware image is generated, and sent to the user end.

[0070] It should be noted that the above-mentioned sequence of the embodiments of the present application is only for description and does not represent the advantages and disadvantages of the embodiments. And the above-mentioned specific embodiments of this specification are described. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0071] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

[0072] This specification and drawings are merely exemplary illustrations of the present application and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, a person skilled in the art may make various modifications and variations to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the present application and its equivalents, the present application intends to include these modifications and variations.

Claims

1. AIGC-assisted teaching courseware image generation method, It is characterized in that The method comprises: Through the user end, receiving the courseware image to generate a request statement; Through the semantic element decomposition network, feature extraction is performed on the courseware image generation request statement to obtain a role type descriptor, a role behavior descriptor and a scene descriptor; specifically including: The semantic element decomposition network includes a syntactic structure segmentation channel, a role type extraction channel, a role behavior extraction channel and a scene type extraction channel, and the syntactic structure segmentation channel, the role type extraction channel, the role behavior extraction channel and the scene type extraction channel are connected in sequence; Through the syntactic structure segmentation channel, the courseware image generation request sentence is segmented to generate a syntactic tree diagram; specifically including: Add a root node to the courseware image generation request statement, perform a first-level split on the courseware image generation request statement through a dictionary library, and generate a first-level split phrase set and a first-level phrase grammatical component label set; Constructing a first-level leaf node according to the first-level split phrase set and the first-level phrase grammatical component label; Through the dictionary library, traverse the first-level split phrase set to perform second-level splitting, and generate a second-level split phrase set and a second-level phrase grammatical component label set; Constructing a secondary leaf node according to the secondary split phrase set and the secondary phrase grammatical component label; until an N-level split phrase set and an N-level phrase grammatical component label set are generated, wherein any phrase in the N-level split phrase set cannot be split into multiple grammatical components; Constructing N-level leaf nodes according to the N-level split phrase set and the N-level phrase grammatical component labels; Constructing the syntax tree diagram according to the root node, the first-level leaf node, the second-level leaf node, and finally the N-level leaf node; Processing the syntactic tree diagram through the role type extraction channel to generate the role type descriptor; Processing the syntactic tree diagram and the role type descriptor through the role behavior extraction channel to generate the role behavior descriptor; Processing the syntactic tree diagram, the role type descriptor and the role behavior descriptor through the scene type extraction channel to generate the scene descriptor; Performing image generation computing power analysis according to the role type descriptor, the role behavior descriptor and the scene descriptor to generate image generation prediction computing power; specifically comprising: The role type descriptor includes an N-level role type descriptor list, an N-1-level role type descriptor list, and finally a first-level role type descriptor list; The role behavior descriptors include an N-level role behavior descriptor list, an N-1-level role behavior descriptor list, and finally a first-level role behavior descriptor list; The scene descriptor includes an N-level scene descriptor list, an N-1-level scene descriptor list, and finally a first-level scene descriptor list; Based on the N-level role type descriptor list, the N-1-level role type descriptor list until the first-level role type descriptor list, the N-level role behavior descriptor list, the N-1-level role behavior descriptor list until the first-level role behavior descriptor list, the N-level scene descriptor list, the N-1-level scene descriptor list until the first-level scene descriptor list, the computing power analysis is performed to generate the image generation prediction computing power; specifically comprising: constructing an N-level description attribute array according to the N-level role type descriptor list, the N-level role behavior descriptor list and the N-level scene descriptor list; Until a first-level description attribute array is constructed according to the first-level role type descriptor list, the first-level role behavior descriptor list and the first-level scene descriptor list; Traversing the first-level description attribute array until the N-level description attribute array performs computing power demand mode statistics to generate N computing power demand amounts; specifically including: Extracting a k-level description attribute array according to the first-level description attribute array to the N-level description attribute array; Using the k-level description attribute array, searching the set of historical values ​​of the occupied computing power online; Performing a mode analysis on the set of historical values ​​of the occupied computing power to generate a k-level computing power demand, and adding it to the N computing power demands; Extracting the maximum value of the N computing power requirements and setting it as the image generation prediction computing power; When the image generation prediction computing power is greater than the local computing power threshold, the cloud idle computing power center status information in the preset time zone is obtained; According to the idle computing power center status information on the cloud and the predicted computing power for image generation, based on the role type descriptor, the role behavior descriptor and the scene descriptor, tasks are assigned to the idle computing power center set on the cloud to generate a computing power center scheduling plan; specifically including: Extracting a number of computing power requirements that are greater than or equal to the local computing power threshold from the N computing power requirements; Traversing the plurality of computing power requirements, allocating tasks based on the set of idle computing power centers on the cloud, and generating a plurality of computing power center scheduling sub-plans; Adding the plurality of computing power center scheduling sub-plans into the computing power center scheduling plan; Generating teaching courseware images according to the computing power center scheduling plan, generating target courseware images, and sending them to the user end; specifically including: According to the N-level role type descriptor list, the N-level role behavior descriptor list and the N-level scene descriptor list, image generation is performed based on the computing power center scheduling scheme to generate an N-level image; Until image generation is performed based on the computing power center scheduling scheme according to the first-level role type descriptor list, the first-level role behavior descriptor list and the first-level scene descriptor list to generate a first-level image; The first-level images are integrated until the N-level images, a target courseware image is generated, and the target courseware image is sent to the user end.

2. AIGC-assisted teaching courseware image generation platform, It is characterized in that For implementing the AIGC-assisted teaching courseware image generation method according to claim 1, the platform comprises: A receiving module, the receiving module is used to receive a courseware image generation request statement through a user terminal; A feature extraction module, the feature extraction module is used to extract features of the courseware image generation request statement through a semantic element decomposition network to obtain a role type descriptor, a role behavior descriptor and a scene descriptor; A computing power analysis module, the computing power analysis module is used to perform image generation computing power analysis according to the role type descriptor, the role behavior descriptor and the scene descriptor, and generate image generation prediction computing power; A computing power judgment module, wherein the computing power judgment module is used to obtain the status information of the idle computing power center on the cloud in a preset time zone when the image generation prediction computing power is greater than the local computing power threshold; A task allocation module, the task allocation module is used to allocate tasks to a set of idle computing power centers on the cloud based on the idle computing power center status information on the cloud and the image generation predicted computing power, based on the role type descriptor, the role behavior descriptor and the scene descriptor, and generate a computing power center scheduling plan; An image generation module is used to generate teaching courseware images according to the computing center scheduling plan, generate target courseware images, and send them to the user end.

Citation Information

Patent Citations

  • Courseware intelligent generation method and device, computer equipment and storage medium

    CN110377751A

  • AI interactive 3D courseware generation system

    CN110706358A