Search

CN-121996130-A - Drawing method, drawing device, electronic equipment and storage medium

CN121996130ACN 121996130 ACN121996130 ACN 121996130ACN-121996130-A

Abstract

The embodiment of the invention provides a drawing method, a drawing device, electronic equipment and a storage medium, wherein the drawing method comprises the steps of extracting at least two single-product drawing tasks from a task pool, wherein the single-product drawing tasks are obtained by splitting a batch-product drawing task, the single-product drawing task is a task for drawing a single product, and the batch-product drawing task is a task for drawing a batch product; determining a drawing model matched with each single drawing task from the registered drawing model set to obtain a target drawing model, and calling the target drawing model to process the corresponding single drawing task. The invention matches the asynchronism of the batch article drawing task and the parallel of the single article drawing task, realizes the drawing of batch articles by using the model, improves the overall drawing efficiency, dynamically selects the model matched with each single article drawing task, optimizes the utilization of model resources, matches the task pool management and the model dynamic scheduling mechanism, simplifies the task management and resource scheduling process, and improves the drawing flexibility.

Inventors

  • JI XIANGKUN

Assignees

  • 北京京东拓先科技有限公司

Dates

Publication Date
20260508
Application Date
20241106

Claims (12)

  1. 1. A method of mapping, comprising: Extracting at least two single-product drawing tasks from a task pool, wherein the single-product drawing tasks are obtained by splitting a batch-product drawing task, the single-product drawing tasks are tasks for drawing single products, and the batch-product drawing tasks are tasks for drawing batch products; Determining a drawing model matched with each single drawing task from a registered drawing model set to obtain a target drawing model; and calling the target drawing model to process the corresponding single drawing task.
  2. 2. A mapping method as defined in claim 1, wherein the invoking the target mapping model to process the corresponding single-product mapping task comprises: Calling the target drawing model to carry out layering processing on the corresponding single drawing task according to layer elements to obtain a plurality of middle layers corresponding to each single drawing task, wherein each middle layer corresponds to one layer element; And merging a plurality of intermediate layers corresponding to each single drawing task to obtain a single image corresponding to each single drawing task.
  3. 3. A drawing method according to claim 2, wherein the merging the plurality of intermediate layers corresponding to each single drawing task to obtain a single image corresponding to each single drawing task includes: Combining a plurality of middle layers corresponding to each single drawing task to obtain a preview view corresponding to each single drawing task; displaying a preview view corresponding to each single drawing task; and determining the single item image corresponding to each single item drawing task according to the user operation of the preview view corresponding to each single item drawing task.
  4. 4. A drawing method according to claim 3, wherein said determining a single item image corresponding to each single item drawing task according to a user operation of a preview view corresponding to each single item drawing task comprises: Determining a user selection view of each single drawing task according to the user selection operation of the preview view corresponding to each single drawing task; and determining the user selection view of each single drawing task as a single image corresponding to each single drawing task.
  5. 5. A drawing method according to claim 3, wherein said determining a single item image corresponding to each single item drawing task according to a user operation of a preview view corresponding to each single item drawing task comprises: determining a view to be adjusted according to user adjustment operation of a preview view corresponding to each single drawing task, and determining a single drawing task to which the view to be adjusted belongs to obtain the drawing task to be adjusted; Generating a drawing adjustment page for the drawing task to be adjusted according to a plurality of middle layers corresponding to the drawing task to be adjusted; Displaying the drawing adjustment page, and acquiring a layer adjustment parameter by using the drawing adjustment page; and adjusting the middle layer corresponding to the drawing task to be adjusted according to the layer adjustment parameter, and generating a single image corresponding to the drawing task to be adjusted according to the layer adjustment result.
  6. 6. A drawing method according to claim 3, wherein said determining a single item image corresponding to each single item drawing task according to a user operation of a preview view corresponding to each single item drawing task comprises: determining a remade drawing view according to user remade drawing operation of the preview view corresponding to each single drawing task, and determining a single drawing task to which the remade drawing view belongs to obtain a remade drawing task; Determining a drawing model matched with the remaking drawing task from the registered drawing model set to obtain a remaking drawing model; Carrying out layering processing on the remade drawing task according to drawing layer elements by using the remade drawing model to obtain a plurality of middle drawing layers corresponding to the remade drawing task; and merging the plurality of intermediate layers corresponding to the remaking task to obtain the single-product image corresponding to the remaking task.
  7. 7. A drawing method according to claim 1, wherein said extracting at least two single drawing tasks from the task pool comprises: judging whether a task extraction condition is reached; and when the task extraction conditions are met, extracting at least two single drawing tasks from a task pool.
  8. 8. A drawing method according to claim 1, wherein said extracting at least two single drawing tasks from the task pool comprises: Acquiring task attributes of each single drawing task in the task pool, and acquiring model attributes of each registered drawing model in the registered drawing model set; And extracting at least two single drawing tasks from the task pool according to the task attribute and/or the model attribute.
  9. 9. A mapping method as claimed in any one of claims 1 to 8, further comprising: Determining an initiating terminal of the batch article drawing task; Pushing the single-product image to the initiating terminal.
  10. 10. A drawing apparatus, comprising: the task extraction module is used for extracting at least two single-article drawing tasks from the task pool, wherein the single-article drawing tasks are obtained by splitting batch-article drawing tasks, the single-article drawing tasks are tasks for drawing single articles, and the batch-article drawing tasks are tasks for drawing batch articles; the model determining module is used for determining a drawing model matched with each single drawing task from the registered drawing model set to obtain a target drawing model; And the model calling module is used for calling the target drawing model to process the corresponding single drawing task.
  11. 11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the mapping method of any of claims 1 to 9 when the program is executed by the processor.
  12. 12. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements a mapping method as claimed in any one of claims 1 to 9.

Description

Drawing method, drawing device, electronic equipment and storage medium Technical Field The embodiment of the invention relates to the technical field of computers, in particular to a drawing method, a drawing device, electronic equipment and a storage medium. Background In the context of e-commerce, online advertising, product display, etc., it is desirable to map items. The traditional drawing process relies on manual operation of professional designers, is time-consuming and labor-consuming, requires high-level skills and abundant experience of the designers, and is particularly tedious and inefficient when a plurality of objects are required to be drawn in batches. With the development of artificial intelligence (ARTIFICIAL INTELLIGENCE, AI), AI model drawings can be utilized. In implementing the present invention, the inventors have found that using AI model drawing requires a lot of computing resources and time, and resource scheduling and task management are complex, which limits the batch drawing capability of the model. At the present stage, the AI model cannot be used for drawing the batch articles, and the drawing efficiency is low. Disclosure of Invention The embodiment of the invention provides a drawing method, a drawing device, electronic equipment and a storage medium, which can realize drawing of batch objects by using a model and improve the overall drawing efficiency. In a first aspect, a mapping method provided by an embodiment of the present invention includes: Extracting at least two single-product drawing tasks from a task pool, wherein the single-product drawing tasks are obtained by splitting a batch-product drawing task, the single-product drawing tasks are tasks for drawing single products, and the batch-product drawing tasks are tasks for drawing batch products; Determining a drawing model matched with each single drawing task from a registered drawing model set to obtain a target drawing model; and calling the target drawing model to process the corresponding single drawing task. According to the drawing method, batch article drawing tasks are split into single article drawing tasks, the split single article drawing tasks are managed through the task pool, at least two single article drawing tasks are extracted each time to be processed, namely, the single article drawing tasks are processed in parallel through different drawing models, the batch article drawing tasks are placed in a task pool to be processed asynchronously, the batch article drawing tasks are matched asynchronously with the single article drawing tasks in parallel, the purpose that the batch article drawing tasks are utilized to be drawn by the models is achieved, so that the overall drawing time is shortened, the overall drawing efficiency is improved, the drawing models are uniformly registered and managed, the model matched with each single article drawing task is dynamically selected from the registered drawing model set, the utilization of model resources is optimized, each drawing model is special for a specific task, the optimal utilization of computing resources and time is guaranteed, the resource waste is reduced, the decomposition and independent processing of the tasks are achieved, the whole drawing process is not affected by local failure or errors, the stability and the reliability of the system are improved, the task pool management and the dynamic scheduling mechanism collocation of the models are simplified, and the drawing flexibility is improved. Optionally, the calling the target drawing model to process a corresponding single drawing task includes: Calling the target drawing model to carry out layering processing on the corresponding single drawing task according to layer elements to obtain a plurality of middle layers corresponding to each single drawing task, wherein each middle layer corresponds to one layer element; And merging a plurality of intermediate layers corresponding to each single drawing task to obtain a single image corresponding to each single drawing task. The graphics layer processing and independent synthesis make the image design modularized, each graphics layer can be independently manufactured, adjusted and optimized, the flexibility and the freedom degree of drawing are improved, different effects and elements can be overlapped through the graphics layer processing, the image expressive force is more abundant and various, and the drawing effect is improved. Optionally, merging the multiple intermediate layers corresponding to each single drawing task to obtain a single image corresponding to each single drawing task, including: Combining a plurality of middle layers corresponding to each single drawing task to obtain a preview view corresponding to each single drawing task; displaying a preview view corresponding to each single drawing task; and determining the single item image corresponding to each single item drawing task according to the user operation of the pr