CN111950139A - A clothing grading method and terminal based on objective function optimization - Google Patents
A clothing grading method and terminal based on objective function optimization Download PDFInfo
- Publication number
- CN111950139A CN111950139A CN202010745305.0A CN202010745305A CN111950139A CN 111950139 A CN111950139 A CN 111950139A CN 202010745305 A CN202010745305 A CN 202010745305A CN 111950139 A CN111950139 A CN 111950139A
- Authority
- CN
- China
- Prior art keywords
- clothing
- pattern
- dimensional
- human body
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2113/00—Details relating to the application field
- G06F2113/12—Cloth
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
技术领域technical field
本发明涉及计算机图形,布料仿真,服装放码等领域,特别涉及一种基于目标函数优化的服装放码方法及终端。The invention relates to the fields of computer graphics, cloth simulation, clothing grading and the like, in particular to a clothing grading method and a terminal based on objective function optimization.
背景技术Background technique
将给定的三维服装放码到任意体型的三维人体上具有极大的价值,尤其是在服装行业的数字化技术发展中。传统的CAD计算机辅助设计软件放码方法提高了设计层面的正确性和复用性,然而这个过程十分耗时耗力,而且非常依赖于使用者的经验。Grading a given 3D garment onto a 3D human body of any size is of great value, especially in the development of digital technology in the garment industry. The traditional CAD computer-aided design software grading method improves the correctness and reusability of the design level, but this process is very time-consuming and labor-intensive, and it is very dependent on the user's experience.
大多数现有的自动放码方法仍然基于简单的3D-2D坐标变换,具体来说,这样的方法通过建里三维坐标空间和二维坐标空间的映射,将三维的服装“压”到二维坐标空间。然而,这些方法没有考虑服装的物理悬垂效应。Most of the existing automatic grading methods are still based on simple 3D-2D coordinate transformation. Specifically, such methods "press" 3D garments into 2D through mapping between 3D coordinate space and 2D coordinate space. coordinate space. However, these methods do not take into account the physical drape effect of clothing.
为解决这个问题,Bartle等人提出了一种物理驱动的定点优化方法(参见BartleA,Sheffer A,Kim V G,et al.Physics-driven pattern adjustment for direct 3Dgarment editing[J].ACM Transactions on Graphics(TOG),2016,35(4):50:1-50:11.),然而该方法忽略了服装与人体的摩擦力。To solve this problem, Bartle et al. proposed a physics-driven fixed-point optimization method (see Bartle A, Sheffer A, Kim V G, et al. Physics-driven pattern adjustment for direct 3Dgarment editing[J]. ACM Transactions on Graphics (TOG ), 2016, 35(4):50:1-50:11.), however, this method ignores the friction between the clothing and the human body.
随后,Casati等人提出了一种考虑了服装与人体摩擦力的物理方法(参见CasatiR,Daviet G,Bertails-Descoubes F.Inverse elastic cloth design with contact andfriction[D].Inria Grenoble -Alpes,Universitéde Grenoble,2016:1-11.)然而该方法使用了逆向弹性设计,存在无法收敛的情况。Subsequently, Casati et al. proposed a physical method that considered the friction between clothing and the human body (see Casati R, Daviet G, Bertails-Descoubes F. Inverse elastic cloth design with contact and friction [D]. Inria Grenoble -Alpes, Université de Grenoble, 2016: 1-11.) However, this method uses an inverse elastic design, and there is a situation where it cannot converge.
最近,Wang H(参见Rule-free sewing pattern adjustment with precisionand efficiency[J].ACM Transactions on Graphics(TOG),2018,37(4):1-13.)提出了一种自组织的高精度快速放码方法,该方法考虑了服装的悬垂效应,同时考虑了在目标函数优化过程中服装与纸样的同时变化,然而该方法存在梯度回溯导致的优化不稳定的现象。Recently, Wang H (see Rule-free sewing pattern adjustment with precision and efficiency [J]. ACM Transactions on Graphics(TOG), 2018, 37(4): 1-13.) proposed a self-organized high-precision fast This method considers the drape effect of clothing and the simultaneous changes of clothing and pattern in the process of objective function optimization. However, this method has the phenomenon of optimization instability caused by gradient backtracking.
在未来的服装工厂中将有成千上万套服装模型,设计师输入三维人体模型、选择一套服装,系统将输出放码结果。此过程需要快速且全自动,否则会影响设计效率。因此,如何快速、全自动的将给定的服装放码到不同体型的人体模型上,是服装放码领域的重要且具有很大价值的问题。In the future garment factory, there will be thousands of sets of clothing models, the designer will input the 3D human model, select a set of clothing, and the system will output the grading result. This process needs to be fast and fully automatic, otherwise it will affect design efficiency. Therefore, how to quickly and automatically grade a given garment onto mannequins of different body types is an important and valuable problem in the field of garment grading.
发明内容SUMMARY OF THE INVENTION
针对现有技术中的缺陷,本发明提出了一种基于目标函数优化的服装放码方法及终端,对于给定的各种种类的服装模型和服装纸样,本方案能够将其快速放码到不同体型的三维人体模型上。In view of the defects in the prior art, the present invention proposes a clothing grading method and terminal optimized based on an objective function. For given various types of clothing models and clothing patterns, this solution can quickly grading them to different Body shape on a 3D mannequin.
具体的,本发明包括以下实施例:Specifically, the present invention includes the following embodiments:
本发明实施例提出了一种基于目标函数优化的服装放码方法,包括:The embodiment of the present invention proposes a clothing grading method optimized based on an objective function, including:
步骤1、获取三维标准服装模型、二维标准服装纸样、三维标准人体模型及三维目标人体模型;
步骤2、基于所述三维标准服装模型、所述三维标准人体模型及所述三维目标人体模型确定三维目标服装初始的服装数据;
步骤3、利用所述服装数据与预设的目标函数确定二维目标服装纸样初始的纸样数据;
步骤4、通过当前最新的所述纸样数据与所述三维目标人体模型以准静态能量仿真的方式,更新所述三维目标服装的服装数据;
步骤5、通过当前最新的所述服装数据、当前最新的所述纸样数据、所述三维目标人体模型及所述目标函数更新所述二维目标服装纸样的边界坐标;
步骤6、通过当前最新的所述服装数据、当前最新的所述边界坐标以及所述目标函数更新所述二维目标服装纸样的内部坐标;
步骤7、基于所述边界坐标与所述内部坐标更新所述二维目标服装纸样的纸样数据,以基于当前最新的所述纸样数据执行从步骤4到步骤7的迭代操作,并选择预设迭代次数后的所述纸样数据作为服装放码结果。
在一个具体的实施例中,In a specific embodiment,
所述三维标准服装模型、所述二维标准服装纸样、所述三维标准人体模型和所述三维目标人体模型均为由网格组成的模型。The three-dimensional standard clothing model, the two-dimensional standard clothing pattern, the three-dimensional standard human body model and the three-dimensional target human body model are all models composed of meshes.
在一个具体的实施例中,所述网格为三角形网格或四边形网格In a specific embodiment, the grid is a triangular grid or a quadrilateral grid
在一个具体的实施例中,In a specific embodiment,
所述步骤2具体包括:The
确定所述三维标准服装模型上各网格与所述三维标准人体模型上预设点的相对距离;所述预设点为所述三维标准人体模型上与所述网格距离最近的点;Determine the relative distance between each grid on the three-dimensional standard clothing model and a preset point on the three-dimensional standard human body model; the preset point is the point on the three-dimensional standard human body model with the closest distance to the grid;
将各所述相对距离叠加在所述三维目标人体模型上生成三维目标服装初始的服装数据。The relative distances are superimposed on the three-dimensional target human body model to generate initial clothing data of the three-dimensional target clothing.
在一个具体的实施例中,In a specific embodiment,
所述步骤3具体包括:The
将初始的所述服装数据作为预设的目标函数中的定值,以生成二维目标服装纸样初始的纸样数据。The initial clothing data is used as a fixed value in the preset objective function to generate the initial pattern data of the two-dimensional target clothing pattern.
在一个具体的实施例中,所述目标函数用于描述目标结果与标准结果在纸样大小,纸样形状,服装-人体距离,服装拉伸程度,服装位置,服装光滑程度六个方面的差异;In a specific embodiment, the objective function is used to describe the difference between the target result and the standard result in six aspects: pattern size, pattern shape, garment-to-body distance, garment stretch, garment position, and garment smoothness;
所述目标函数的值越小,代表服装与人体匹配度越高;The smaller the value of the objective function, the higher the matching degree between the clothing and the human body;
在所述目标函数中,所述三维标准服装模型、所述二维标准服装纸样、所述三维标准人体模型及所述三维目标人体模型四者的数据为定值,所述三维目标服装与所述二维目标服装纸样两者的数据为变量。In the objective function, the data of the three-dimensional standard clothing model, the two-dimensional standard clothing pattern, the three-dimensional standard human body model and the three-dimensional target human body model are fixed values. The data of the two-dimensional target garment pattern are variables.
在一个具体的实施例中,所述准静态能量仿真的方式是通过能量公式来进行的;In a specific embodiment, the method of quasi-static energy simulation is performed through an energy formula;
所述能量公式为:Eall=Estretching+Esticking+Ebending+Ecollision+Egravity;The energy formula is: E all =E stretching +E sticking +E bending +E collision +E gravity ;
其中,Eall为总能量;Estretching为弹性拉伸能量,用来描述服装布料的拉伸效果;Esticking为粘着能量,用来描述服装饰品样式;Ecollision为与人体碰撞处理,防止人体和布料相互穿透;Egravity为重力势能,描述布料的重力效应。Among them, E all is the total energy; E stretching is the elastic stretching energy, which is used to describe the stretching effect of clothing fabrics; E sticking is the sticking energy, which is used to describe the style of clothing accessories; The cloth penetrates each other; E gravity is the gravitational potential energy, which describes the gravitational effect of the cloth.
在一个具体的实施例中,所述步骤6具体包括:In a specific embodiment, the
将当前最新的所述服装数据作为所述目标函数中的定量,结合所述当前最新的所述边界坐标更新所述二维目标服装纸样的内部坐标。The current latest clothing data is used as the quantity in the objective function, and the internal coordinates of the two-dimensional target clothing pattern are updated in combination with the current latest boundary coordinates.
在一个具体的实施例中,所述预设迭代次数基于精度要求进行设置。In a specific embodiment, the preset number of iterations is set based on precision requirements.
本发明实施例还提出了一种终端,包括:用于执行上述方法的处理器。An embodiment of the present invention further provides a terminal, including: a processor for executing the above method.
以此,本发明具有以下技术效果:With this, the present invention has the following technical effects:
本发明提供的放码方法可以将给定的任意类型的服装模型、任意姿势和体型的人体模型,通过生成服装和纸样的初始猜测解、物理仿真、目标函数优化、三重迭代等步骤,最终获得服装在不同体型人体的放码结果。本发明使用的三重迭代优化方法,可以动态地调整优化的精度,同时降低了直接插值带来的梯度回溯,增加了优化的稳定性,提高了运算效率。The grading method provided by the present invention can finally obtain a given clothing model of any type, a human body model with any posture and body shape, through the steps of generating the initial guessing solution of clothing and pattern, physical simulation, objective function optimization, triple iteration, etc. The grading results of clothing on different body types. The triple iterative optimization method used in the present invention can dynamically adjust the accuracy of optimization, at the same time reduce the gradient backtracking caused by direct interpolation, increase the stability of the optimization, and improve the operation efficiency.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the embodiments. It should be understood that the following drawings only show some embodiments of the present invention, and therefore do not It should be regarded as a limitation of the scope, and for those of ordinary skill in the art, other related drawings can also be obtained according to these drawings without any creative effort.
图1为本发明实施例提出的一种基于目标函数优化的服装放码方法的流程示意图;1 is a schematic flowchart of a clothing grading method based on objective function optimization proposed by an embodiment of the present invention;
图2为本发明实施例提出的一种终端的结构示意图。FIG. 2 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
具体实施方式Detailed ways
在下文中,将更全面地描述本公开的各种实施例。本公开可具有各种实施例,并且可在其中做出调整和改变。然而,应理解:不存在将本公开的各种实施例限于在此公开的特定实施例的意图,而是应将本公开理解为涵盖落入本公开的各种实施例的精神和范围内的所有调整、等同物和/或可选方案。Hereinafter, various embodiments of the present disclosure will be described more fully. The present disclosure is capable of various embodiments, and adaptations and changes may be made therein. It should be understood, however, that there is no intention to limit the various embodiments of the present disclosure to the specific embodiments disclosed herein, but the present disclosure should be construed to cover various embodiments falling within the spirit and scope of the present disclosure. All adjustments, equivalents and/or alternatives.
在本公开的各种实施例中使用的术语仅用于描述特定实施例的目的并且并非意在限制本公开的各种实施例。如在此所使用,单数形式意在也包括复数形式,除非上下文清楚地另有指示。除非另有限定,否则在这里使用的所有术语(包括技术术语和科学术语)具有与本公开的各种实施例所属领域普通技术人员通常理解的含义相同的含义。所述术语(诸如在一般使用的词典中限定的术语)将被解释为具有与在相关技术领域中的语境含义相同的含义并且将不被解释为具有理想化的含义或过于正式的含义,除非在本公开的各种实施例中被清楚地限定。The terminology used in the various embodiments of the present disclosure is for the purpose of describing particular embodiments only and is not intended to limit the various embodiments of the present disclosure. As used herein, the singular is intended to include the plural as well, unless the context clearly dictates otherwise. Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of this disclosure belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having the same meaning as the contextual meaning in the relevant technical field and will not be interpreted as having an idealized or overly formal meaning, unless explicitly defined in various embodiments of the present disclosure.
实施例1Example 1
本发明实施例1公开了一种基于目标函数优化的服装放码方法,如图1所示,包括以下步骤:
步骤1、获取三维标准服装模型、二维标准服装纸样、三维标准人体模型及三维目标人体模型;
具体的,所述三维标准服装模型、所述二维标准服装纸样、所述三维标准人体模型和所述三维目标人体模型均为由网格组成的模型。进一步的,所述网格可以为三角形网格或四边形网格。具体的,服装和纸样可以由专业的制衣软件如CLO 3D、Marvelous Designer生成,服装也可用三维扫描仪扫描真实的衣服生成。三维目标人体模型用三维扫描仪扫描真实的人体生成,或用专业的软件如MakeHuman、Maya生成。Specifically, the three-dimensional standard clothing model, the two-dimensional standard clothing pattern, the three-dimensional standard human body model and the three-dimensional target human body model are all models composed of meshes. Further, the grid may be a triangular grid or a quadrilateral grid. Specifically, clothing and patterns can be generated by professional clothing software such as CLO 3D and Marvelous Designer, and clothing can also be generated by scanning real clothing with a 3D scanner. The 3D target human body model is generated by scanning the real human body with a 3D scanner, or using professional software such as MakeHuman and Maya.
三维标准服装模型为至少包括一件衣服的三维模型。所述三维服装模型对应选自上衣、裤子或裙子中的一件或至少两件的组合。所述三维服装模型可以对应单层单件或单层多件,如一件上衣、裤子或裙子,一件上衣和一件裤子等。三维标准人体模型可以为任意的姿势和体型。任意的姿势和体型是指具有不同的姿势和不同的身高、体重或三围尺寸。步骤1中的三维目标人体模型与步骤1的三维标准人体模型姿势相同,体型不同。The three-dimensional standard clothing model is a three-dimensional model including at least one piece of clothing. The three-dimensional clothing model corresponds to one piece or a combination of at least two pieces selected from tops, trousers or skirts. The three-dimensional clothing model may correspond to a single-layer piece or a single-layer piece, such as a jacket, trousers or skirt, a jacket and a pair of trousers, and the like. 3D standard mannequins can be in any pose and body shape. Arbitrary posture and body type means having different postures and different height, weight or measurements. The three-dimensional target human body model in
步骤2、基于所述三维标准服装模型、所述三维标准人体模型及所述三维目标人体模型确定三维目标服装初始的服装数据;
具体的,所述步骤2具体包括:确定所述三维标准服装模型上各网格与所述三维标准人体模型上预设点的相对距离;所述预设点为所述三维标准人体模型上与所述网格距离最近的点;将各所述相对距离叠加在所述三维目标人体模型上生成三维目标服装初始的服装数据。Specifically, the
通过将步骤1中输入的三维标准服装模型与三维标准人体模型的相对距离叠加到三维目标人体模型上生成三维目标服装初始的服装数据。这样的做法能够充分利用标准服装与标准人体的相对距离属性,生成的初始猜测值(也即三维目标服装初始的服装数据)作为迭代运算的初始值,其对应的目标函数较小,减少收敛运算量,减少运算时间。The initial clothing data of the 3D target clothing is generated by superimposing the relative distance between the 3D standard clothing model and the 3D standard human body model input in
步骤3、利用所述服装数据与预设的目标函数确定二维目标服装纸样初始的纸样数据;
步骤3通过运行一个简化的目标函数优化来完成。步骤3与步骤5使用的完整的目标函数中,三维标准服装模型、二维标准服装纸样、三维标准人体模型以及三维目标人体模型为定值,三维目标服装模型与二维目标服装纸样为变量,步骤3中的简化情况,指的是将完整目标函数中的变量三维目标服装模型视作定值,取值为步骤2生成的初始猜测值,生成的二维目标服装纸样,作为二维服装纸样的猜测值(也即初始的纸样数据)。
具体的,所述步骤3具体包括:将初始的所述服装数据作为预设的目标函数中的定值,以生成二维目标服装纸样初始的纸样数据。其中,所述目标函数用于描述目标结果与标准结果在纸样大小,纸样形状,服装-人体距离,服装拉伸程度,服装位置,服装光滑程度六个方面的差异;所述目标函数的值越小,代表服装与人体匹配度越高;在所述目标函数中,所述三维标准服装模型、所述二维标准服装纸样、所述三维标准人体模型及所述三维目标人体模型四者的数据为定值,所述三维目标服装与所述二维目标服装纸样两者的数据为变量。Specifically, the
具体的,目标函数f,其形式为:Specifically, the objective function f has the form:
f=Cchange+Cshape+Cdist+Cstretch+Cposition+Csmooth f=C change +C shape +C dist +C stretch +C position +C smooth
其中,目标函数各组成部分公式为:Among them, the formula of each component of the objective function is:
其中,σchange为参数距离权重系数,i为纸样所有边界点的数量,Ψi与分别为二维目标服装纸样与二维标准服装纸样对应边界点,具体的对应的边界点为二维向量;Among them, σ change is the parameter distance weight coefficient, i is the number of all boundary points of the pattern, Ψ i is the same as the are the corresponding boundary points of the two-dimensional target garment pattern and the two-dimensional standard garment pattern respectively, and the specific corresponding boundary points are two-dimensional vectors;
其中,σshape为边界形状权重系数,ei,j为纸样边界所有相邻边,Δθ为二维目标服装纸样与二维标准服装纸样相邻边夹角的差。Among them, σ shape is the weight coefficient of the boundary shape, e i,j is all adjacent edges of the pattern boundary, Δθ is the difference between the adjacent edges of the two-dimensional target garment pattern and the two-dimensional standard garment pattern.
其中,σdist为服装距离权重系数,n为服装模型所有网格点的数量,dist(Xn)为三维目标服装网格点与三维目标人体模型表面最近邻距离,为三维标准服装模型网格点与三维标准人体模型表面最近邻距离。Among them, σ dist is the weight coefficient of clothing distance, n is the number of all grid points of the clothing model, dist(X n ) is the nearest neighbor distance between the 3D target clothing grid point and the surface of the 3D target human body model, is the nearest neighbor distance between the grid points of the 3D standard clothing model and the surface of the 3D standard human body model.
其中,σstretch为服装拉伸权重系数,i,j为服装模型网格中每一条边的两个端点,Xi与Xj为三维目标服装网格点坐标,Pi与Pj为二维目标纸样网格点坐标,与为三维标准服装网格点坐标,与为二维标准纸样网格点坐标。Among them, σ stretch is the weight coefficient of clothing stretching, i, j are the two endpoints of each edge in the clothing model grid, X i and X j are the coordinates of the three-dimensional target clothing grid point, and P i and P j are two-dimensional Target pattern grid point coordinates, and is the coordinate of the three-dimensional standard clothing grid point, and It is the grid point coordinates of the two-dimensional standard pattern.
其中,σposition为服装位置权重系数,i为服装模型所有网格点,Xi为三维目标服装网格点坐标,为步骤(2)中初始猜测值(也即初始的服装数据)的网格点坐标。Among them, σ position is the weight coefficient of clothing position, i is all grid points of the clothing model, X i is the coordinates of the three-dimensional target clothing grid point, is the grid point coordinates of the initial guess value (ie the initial clothing data) in step (2).
其中,σsmooth为服装光滑权重系数,e0为服装模型的所有铰链边,求和K0为基于拉普拉斯调和取值的离散能量因子,X与分别为三维目标服装与三维标准服装模型的网格点坐标,c为表征三维目标服装与三维标准服装模型两者凹凸属性的值,当两者凹凸属性相同时,c取1,当两者凹凸属性相反时,c取-1。三维目标服装与三维标准服装模型的光滑程度越接近,用来避免放码后服装光滑程度差异过大。Among them, σ smooth is the weight coefficient of clothing smoothness, e 0 is all hinge edges of the clothing model, the sum K 0 is the discrete energy factor based on the Laplace harmonic value, X and are the grid point coordinates of the 3D target clothing and the 3D standard clothing model respectively, and c is the value representing the concave and convex attributes of the 3D target clothing and the 3D standard clothing model. When the properties are opposite, c takes -1. The closer the smoothness of the 3D target clothing and the 3D standard clothing model is, is used to avoid too much difference in the smoothness of the clothing after grading.
目标函数的合理性在于,目标函数完备地描述了目标结果与标准结果在纸样大小,纸样形状,服装-人体距离,服装拉伸程度,服装位置,服装光滑程度六个方面的差异。The rationality of the objective function is that the objective function fully describes the difference between the target result and the standard result in six aspects: pattern size, pattern shape, clothing-body distance, clothing stretch, clothing position, and clothing smoothness.
步骤4、通过当前最新的所述纸样数据与所述三维目标人体模型以准静态能量仿真的方式,更新所述三维目标服装的服装数据;
所述准静态能量仿真的方式是通过能量公式来进行的;The method of the quasi-static energy simulation is carried out through the energy formula;
所述能量公式为:Eall=Estretching+Esticking+Ebending+Ecollision+Egravity;The energy formula is: E all =E stretching +E sticking +E bending +E collision +E gravity ;
其中,Eall为总能量;Estretching为弹性拉伸能量,用来描述服装布料的拉伸效果;Esticking为粘着能量,用来描述服装饰品样式;Ecollision为与人体碰撞处理,防止人体和布料相互穿透;Egravity为重力势能,描述布料的重力效应。Among them, E all is the total energy; E stretching is the elastic stretching energy, which is used to describe the stretching effect of clothing fabrics; E sticking is the sticking energy, which is used to describe the style of clothing accessories; The cloth penetrates each other; E gravity is the gravitational potential energy, which describes the gravitational effect of the cloth.
具体的,各能量项的公式为:Specifically, the formula of each energy term is:
其中,γsewing为纸样连接不同版片的缝纫弹簧的弹性能量系数,Xsi与Xsj为对应缝纫弹簧两端点三维服装模型坐标,γpatch为纸样同版片内弹簧的弹性能量系数,Xpn与Xpk为对应片内弹簧两端点三维服装模型坐标,Ppn与Ppk为对应片内弹簧两端点二维服装纸样坐标。Among them, γ sewing is the elastic energy coefficient of the sewing spring connecting different patterns of the pattern, X si and X sj are the coordinates of the three-dimensional clothing model corresponding to the two ends of the sewing spring, γ patch is the elastic energy coefficient of the inner spring in the same pattern of the pattern, X pn and X pk are the three-dimensional clothing model coordinates corresponding to the two ends of the inner spring, and P pn and P pk are the two-dimensional clothing pattern coordinates corresponding to the two ends of the inner spring.
其中,γsticking为粘性势能的粘性系数,Xsti与Xstj分别为对应粘性点的网格坐标。Among them, γ sticking is the viscosity coefficient of the viscous potential energy, and X sti and X stj are the grid coordinates of the corresponding sticky points, respectively.
其中,γbending为弯曲离散势能的能量系数,X=(X0,X1,X2,X3)T,为与该离散能量相关的四个网格点的坐标组成的向量。Qi,j的公式为:A0和A1分别为共用铰链边的三角形t0和t1的面积。K0的公式为:K0=(cotαij+cotβij),K0是一个四维向量,对于其中任一项,αij和βij为铰链边ij在共用它的两个三角形中的两个对角。Wherein, γ bending is the energy coefficient of the bending discrete potential energy, and X=(X 0 , X 1 , X 2 , X 3 ) T , is a vector composed of coordinates of four grid points related to the discrete energy. The formula of Q i,j is: A 0 and A 1 are the areas of triangles t 0 and t 1 , respectively, that share a hinge side. The formula for K 0 is: K 0 =(cotα ij +cotβ ij ), where K 0 is a four-dimensional vector, and for either term, α ij and β ij are the hinge edge ij in the two triangles that share it Diagonal.
其中,γcollision为排斥势能的能量系数,dist(Xi)为服装网格点和最近邻人体模型的距离。Among them, γ collision is the energy coefficient of the repulsive potential energy, and dist(X i ) is the distance between the clothing grid point and the nearest neighbor human body model.
其中,γgravity为重力势能的能量系数,Xi为服装网格点的坐标,kg为重力方向的单位向量。Among them, γ gravity is the energy coefficient of gravitational potential energy, X i is the coordinates of the clothing grid point, and kg is the unit vector of the gravity direction.
步骤5、通过当前最新的所述服装数据、当前最新的所述纸样数据、所述三维目标人体模型及所述目标函数更新所述二维目标服装纸样的边界坐标;
具体的,通过运行完整的目标函数优化更新服装纸样边界点坐标。对完整的目标函数,其三维目标服装模型和二维目标服装纸样是同时变化的,在实际的优化中,可以使用变尺度法,比如L-BFGS方法(参见Liu DC,Nocedal J.On the limited memory BFGSmethod for large scale optimization[J].Mathematical programming,1989,45(1-3):503-528.),避开目标函数黑塞矩阵的直接计算,求解中,导数的计算可以使用伴随方法。Specifically, the coordinates of the boundary points of the garment pattern are updated by running the complete objective function optimization. For the complete objective function, the 3D target clothing model and the 2D target clothing pattern are changed at the same time. In the actual optimization, the variable scale method, such as the L-BFGS method, can be used (see Liu DC, Nocedal J. On the limited memory BFGSmethod for large scale optimization[J].Mathematical programming,1989,45(1-3):503-528.), to avoid the direct calculation of the objective function Hessian matrix, in the solution, the calculation of the derivative can use the adjoint method.
步骤6、通过当前最新的所述服装数据、当前最新的所述边界坐标以及所述目标函数更新所述二维目标服装纸样的内部坐标;
所述步骤6具体包括:将当前最新的所述服装数据作为所述目标函数中的定量,结合所述当前最新的所述边界坐标更新所述二维目标服装纸样的内部坐标。具体的,将步骤5中得到的纸样边界点坐标作为常量,运行简化的目标函数优化更新服装纸样内部点坐标。因为在步骤5的优化后,直接计算纸样内部点的坐标需要直接计算高阶方程组,需要消耗大量的时间,所以在每次迭代得到目标纸样的边界点坐标时,都将其视为定值,代入到完整目标函数中得到简化的目标函数,对其进行的优化相对于直接插值,能够很大程度地减小下一次运行步骤5的梯度回溯,增加目标函数优化的稳定性,提高计算效率。The
此外,步骤4-步骤6由于可以进行多次迭代,因此在第k+1次迭代中:In addition, steps 4-6 can be performed multiple iterations, so in the k+1th iteration:
第一重子替代,使用当前二维目标纸样坐标Pk与目标人体Φ,通过准静态能量仿真过程,更新三维目标服装的坐标为Xk+1(对应步骤4);The first baryon replacement, using the current two-dimensional target pattern coordinates P k and the target human body Φ, through the quasi-static energy simulation process, the coordinates of the updated three-dimensional target clothing are X k+1 (corresponding to step 4);
第二重子替代,使用更新的三维目标服装的坐标Xk+1、当前二维目标纸样坐标Pk以及三维目标人体模型Φ,通过目标函数优化过程,更新参数为Ψk+1,也即当前二维目标纸样的边界坐标。在该优化过程中,服装X,纸样P均随参数Ψ一起变化,遵循导数传递原则;The second baryon replacement, using the updated coordinates X k+1 of the 3D target clothing, the current 2D target pattern coordinates P k and the 3D target human body model Φ, through the objective function optimization process, the update parameter is Ψ k+1 , that is, the current Boundary coordinates of the 2D target pattern. In this optimization process, clothing X and pattern P all change with the parameter Ψ, following the principle of derivative transfer;
第三重子替代,使用更新的三维目标服装的坐标Xk+1、更新的二维目标纸样的边界坐标Ψk+1以及三维目标人体模型Φ,该过程将三维目标服装视作常量,运行一个简化的优化过程,更新纸样的内部点坐标。The third baryon substitution, using the updated coordinates X k+1 of the 3D target garment, the updated boundary coordinates Ψ k+1 of the 2D target pattern, and the 3D target body model Φ, this process treats the 3D target garment as a constant and runs a simplification In the optimization process, the internal point coordinates of the pattern are updated.
后续,纸样生成,将第二重子替代与第三重子替代生成的纸样边界与内部坐标组合,作为下一次迭代中的纸样坐标值Pk+1。Subsequent, pattern generation, the pattern boundary and internal coordinates generated by the second baryon substitution and the third baryon substitution are combined as the pattern coordinate value P k+1 in the next iteration.
步骤7、基于所述边界坐标与所述内部坐标更新所述二维目标服装纸样的纸样数据,以基于当前最新的所述纸样数据执行从步骤4到步骤7的迭代操作,并选择预设迭代次数后的所述纸样数据作为服装放码结果。具体的,所述预设迭代次数基于精度要求进行设置。
本发明提供的一种基于目标函数优化的服装放码方法,并具有以下技术效果:(1)本发明提供的放码方法可以将给定的任意类型的服装模型、任意姿势和体型的人体模型,通过生成服装和纸样的初始猜测解、物理仿真、目标函数优化、三重子替代等步骤,最终获得服装在不同体型人体的放码结果。(2)本发明使用的三重替代优化方法,可以动态地调整优化的精度,同时降低了直接插值带来的梯度回溯,增加了优化的稳定性,提高了运算效率。A clothing grading method based on objective function optimization provided by the present invention has the following technical effects: (1) The grading method provided by the present invention can assign a given garment model of any type, a human body model of any posture and body shape , through the steps of generating the initial guess solution of clothing and pattern, physical simulation, objective function optimization, triple sub-substitution and other steps, the grading results of clothing in different body types are finally obtained. (2) The triple substitution optimization method used in the present invention can dynamically adjust the accuracy of optimization, and at the same time reduce the gradient backtracking caused by direct interpolation, increase the stability of the optimization, and improve the operation efficiency.
实施例2Example 2
本发明实施例2还公开了一种终端200,如图2所示,包括:用于执行实施例1中所述方法的处理器201。具体的,该实施例2还公开有其他技术特征,具体的技术特征描述请参见实施例1中的记载,在此不再进行赘述。
本领域技术人员可以理解附图只是一个优选实施场景的示意图,附图中的模块或流程并不一定是实施本发明所必须的。Those skilled in the art can understand that the accompanying drawing is only a schematic diagram of a preferred implementation scenario, and the modules or processes in the accompanying drawing are not necessarily necessary to implement the present invention.
本领域技术人员可以理解实施场景中的装置中的模块可以按照实施场景描述进行分布于实施场景的装置中,也可以进行相应变化位于不同于本实施场景的一个或多个装置中。上述实施场景的模块可以合并为一个模块,也可以进一步拆分成多个子模块。Those skilled in the art can understand that the modules in the device in the implementation scenario may be distributed in the device in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the implementation scenario with corresponding changes. The modules of the above implementation scenarios may be combined into one module, or may be further split into multiple sub-modules.
上述本发明序号仅仅为了描述,不代表实施场景的优劣。The above serial numbers of the present invention are only for description, and do not represent the pros and cons of the implementation scenarios.
以上公开的仅为本发明的几个具体实施场景,但是,本发明并非局限于此,任何本领域的技术人员能思之的变化都应落入本发明的保护范围。The above disclosures are only a few specific implementation scenarios of the present invention, however, the present invention is not limited thereto, and any changes that can be conceived by those skilled in the art should fall within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010745305.0A CN111950139B (en) | 2020-07-29 | 2020-07-29 | A clothing grading method and terminal based on objective function optimization |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010745305.0A CN111950139B (en) | 2020-07-29 | 2020-07-29 | A clothing grading method and terminal based on objective function optimization |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111950139A true CN111950139A (en) | 2020-11-17 |
| CN111950139B CN111950139B (en) | 2023-02-28 |
Family
ID=73338481
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010745305.0A Active CN111950139B (en) | 2020-07-29 | 2020-07-29 | A clothing grading method and terminal based on objective function optimization |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111950139B (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113935211A (en) * | 2021-09-30 | 2022-01-14 | 常熟数动智能科技有限公司 | Garment grading method based on objective function optimization |
| CN115690323A (en) * | 2022-11-15 | 2023-02-03 | 钰深(北京)科技有限公司 | Intelligent garment push plate method and device |
| CN117152287A (en) * | 2023-08-31 | 2023-12-01 | 北京百度网讯科技有限公司 | Image editing methods, devices, equipment, media and products |
| CN117315209A (en) * | 2023-10-17 | 2023-12-29 | 武汉亘星智能技术有限公司 | Clothing stacking method, device, equipment and medium based on energy model |
| CN118470218A (en) * | 2023-07-10 | 2024-08-09 | 浙江凌迪数字科技有限公司 | Personalized customization plotting method and system |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH11286817A (en) * | 1998-04-01 | 1999-10-19 | Toyobo Co Ltd | Making of paper pattern for clothing and paper pattern making system for clothing |
| CN102332180A (en) * | 2011-10-15 | 2012-01-25 | 杭州力孚信息科技有限公司 | Three-dimensional garment modeling and pattern designing method based on draping |
| CN102708231A (en) * | 2012-04-23 | 2012-10-03 | 杭州力孚信息科技有限公司 | 3D (three-dimensional) apparel grading method based on human body characteristics |
| CN108537888A (en) * | 2018-04-09 | 2018-09-14 | 浙江大学 | A kind of quick fitting method based on skeleton |
| CN110175897A (en) * | 2019-06-03 | 2019-08-27 | 广东元一科技实业有限公司 | 3D synthesis fitting method and system |
-
2020
- 2020-07-29 CN CN202010745305.0A patent/CN111950139B/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH11286817A (en) * | 1998-04-01 | 1999-10-19 | Toyobo Co Ltd | Making of paper pattern for clothing and paper pattern making system for clothing |
| CN102332180A (en) * | 2011-10-15 | 2012-01-25 | 杭州力孚信息科技有限公司 | Three-dimensional garment modeling and pattern designing method based on draping |
| CN102708231A (en) * | 2012-04-23 | 2012-10-03 | 杭州力孚信息科技有限公司 | 3D (three-dimensional) apparel grading method based on human body characteristics |
| CN108537888A (en) * | 2018-04-09 | 2018-09-14 | 浙江大学 | A kind of quick fitting method based on skeleton |
| CN110175897A (en) * | 2019-06-03 | 2019-08-27 | 广东元一科技实业有限公司 | 3D synthesis fitting method and system |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113935211A (en) * | 2021-09-30 | 2022-01-14 | 常熟数动智能科技有限公司 | Garment grading method based on objective function optimization |
| CN115690323A (en) * | 2022-11-15 | 2023-02-03 | 钰深(北京)科技有限公司 | Intelligent garment push plate method and device |
| CN118470218A (en) * | 2023-07-10 | 2024-08-09 | 浙江凌迪数字科技有限公司 | Personalized customization plotting method and system |
| CN118470218B (en) * | 2023-07-10 | 2024-11-22 | 浙江凌迪数字科技有限公司 | A personalized customized drawing method and system |
| US12355932B2 (en) | 2023-07-10 | 2025-07-08 | Zhejiang Lingdi Digital Technology Co., Ltd. | Methods and systems for personalized image generation |
| CN117152287A (en) * | 2023-08-31 | 2023-12-01 | 北京百度网讯科技有限公司 | Image editing methods, devices, equipment, media and products |
| CN117315209A (en) * | 2023-10-17 | 2023-12-29 | 武汉亘星智能技术有限公司 | Clothing stacking method, device, equipment and medium based on energy model |
| CN117315209B (en) * | 2023-10-17 | 2024-05-03 | 武汉亘星智能技术有限公司 | Clothing stacking method, device, equipment and medium based on energy model |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111950139B (en) | 2023-02-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111950139B (en) | A clothing grading method and terminal based on objective function optimization | |
| CN110443885B (en) | Three-dimensional human head and face model reconstruction method based on random human face image | |
| CN114119908B (en) | A clothing model driving method, device and storage medium | |
| CN114119905B (en) | A virtual fitting method, system, device and storage medium | |
| Huang et al. | Block pattern generation: From parameterizing human bodies to fit feature-aligned and flattenable 3D garments | |
| CA2863097C (en) | System and method for simulating realistic clothing | |
| Wang | Rule-free sewing pattern adjustment with precision and efficiency | |
| CN102982578B (en) | Estimation method for dressed body 3D model in single character image | |
| CN108537888A (en) | A kind of quick fitting method based on skeleton | |
| CN113129450B (en) | Virtual fitting method, device, electronic equipment and medium | |
| CN107590708B (en) | Method and device for generating user specific body shape model | |
| CN112862972A (en) | Surface structure grid generation method | |
| CN105006014A (en) | Method and system for realizing fast fitting simulation of virtual clothing | |
| KR102033161B1 (en) | method for transferring garment draping between avatars | |
| CN114375463A (en) | Method for estimating naked body shape from hidden scans of the body | |
| Zhang et al. | Topology-independent 3D garment fitting for virtual clothing | |
| CN107610242A (en) | A kind of method and system of virtual image generation of wearing the clothes | |
| Kwok et al. | Efficient optimization of common base domains for cross parameterization | |
| FI20185517A1 (en) | Measuring surface distances on human bodies | |
| WO2023183170A1 (en) | Virtual garment wrapping for draping simulation | |
| EP4433935A2 (en) | Apparatus and method for simulating a three-dimensional object | |
| CN117710468B (en) | Gesture redirection method, device, equipment and medium based on joint grid deformation | |
| Mahnic et al. | Investigation of the fit of computer-based parametric garment prototypes | |
| Chen et al. | Dress anyone: Automatic physically-based garment pattern refitting | |
| US20250299444A1 (en) | Trajectory information processing method and apparatus, computer device, and readable storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20230710 Address after: 201600 Floor 1, Building 1, No. 98 Rongyang Road, Songjiang District, Shanghai Patentee after: Nippon Fashion Industry (Shanghai) Co.,Ltd. Patentee after: Zhejiang Lingdi Digital Technology Co.,Ltd. Address before: 201600 No.98, Rongyang Road, Zhongshan street, Songjiang District, Shanghai Patentee before: RIBO FASHION GROUP CO.,LTD. Patentee before: Zhejiang Lingdi Digital Technology Co.,Ltd. |
|
| TR01 | Transfer of patent right |