基於條件擴散模型的未見缺陷圖像合成
Unseen defect image synthesis with compositional conditional diffusion model
摘要
本研究探討了圖像生成領域中的一項重要問題,即在僅擁有舊元件瑕疵樣本的情況
下,如何設計一種能夠有效生成瑕疵特徵的模型結構。焊接作為一種廣泛應用於工業
製造的技術,由於高溫、高壓和可能引發化學反應的特點,容易產生缺陷,進而導致
製造過程中斷或最終產品品質不佳。工業圖像異常檢測方面已得到廣泛應用。然而,
當處理對新類別的圖像檢測時,這些模型通常難以達到滿足工業生產需求的準確度水
平。傳統的重新訓練模型方法,以適應每個新類別的樣本,帶來了巨大的人力和計算
成本,使得新類別樣本的檢測成為該領域面臨的一個重大挑戰。為解決這一問題,我
們提出了一種基於 Conditional diffusion model 的方法,該模型能夠生成具有特定特徵的
圖像,同時彌補新元件瑕疵樣本不足的問題。
在背景說明和相關研究部分,我們回顧了生成模型的發展歷程,從 Non-equilibrium
thermodynamics 到 Denoising Diffusion Probabilistic Models(DDPM),最終聚焦於 Conditional Diffusion Model。這種模型的特點在於能夠根據不同條件生成具有特定特徵的
圖像,並在處理新元件瑕疵樣本不足方面具有優勢。
在研究方法及步驟中,我們提出了一種使用 Compositional Conditional Diffusion
Model 的方法,並詳細描述了模型的訓練過程,包括元件標籤、Embedding 生成、
Spatial Transformer 的應用等。實驗結果顯示,該模型成功生成了未見過的瑕疵新元件,
並進行了模型的優化和改進。
下,如何設計一種能夠有效生成瑕疵特徵的模型結構。焊接作為一種廣泛應用於工業
製造的技術,由於高溫、高壓和可能引發化學反應的特點,容易產生缺陷,進而導致
製造過程中斷或最終產品品質不佳。工業圖像異常檢測方面已得到廣泛應用。然而,
當處理對新類別的圖像檢測時,這些模型通常難以達到滿足工業生產需求的準確度水
平。傳統的重新訓練模型方法,以適應每個新類別的樣本,帶來了巨大的人力和計算
成本,使得新類別樣本的檢測成為該領域面臨的一個重大挑戰。為解決這一問題,我
們提出了一種基於 Conditional diffusion model 的方法,該模型能夠生成具有特定特徵的
圖像,同時彌補新元件瑕疵樣本不足的問題。
在背景說明和相關研究部分,我們回顧了生成模型的發展歷程,從 Non-equilibrium
thermodynamics 到 Denoising Diffusion Probabilistic Models(DDPM),最終聚焦於 Conditional Diffusion Model。這種模型的特點在於能夠根據不同條件生成具有特定特徵的
圖像,並在處理新元件瑕疵樣本不足方面具有優勢。
在研究方法及步驟中,我們提出了一種使用 Compositional Conditional Diffusion
Model 的方法,並詳細描述了模型的訓練過程,包括元件標籤、Embedding 生成、
Spatial Transformer 的應用等。實驗結果顯示,該模型成功生成了未見過的瑕疵新元件,
並進行了模型的優化和改進。
This study explores a critial issue in the field of image generation: designing a model structure capable of effectively generating defect features when only old component defect samples
are available. Welding, as a widely used industrial manufacturing technique, is prone to defects
due to its characteristics of high temperature, high pressure, and potential chemical reactions,
which can lead to interruptions in the manufacturing process or poor final product quality. Deep
learning methods have been widely employed in industrial image anomaly detection. However,
when it comes to detecting images of new categories, these models often struggle to achieve
the required accuracy levels for industrial production. The conventional approach of retraining
models to adapt to samples from each new category entails significant human and computational
costs, posing a significant challenge in detecting samples from new categories. To address this
problem, we propose an approach based on the Conditional Diffusion Model-a model capable
of generating images with specific features while overcoming the challenge of limited defect
samples for new components.
In the background and related works section, we review the development of generative models, starting from non-equilibrium thermodynamics to Denoising Diffusion Probabilistic Models
(DDPM), ultimately focusing on the Conditional Diffusion Model. CCDM advantage lies in its
ability to generate images with specific features based on different conditions, addressing the
scarcity of defect samples for new components.
In the research methodology and procedures, we propose a method using the Compositional
Conditional Diffusion Model, providing a detailed description of the model’s training process,
including component labels, embedding generation, and the application of spatial transformers.
Experimental results demonstrate the successful generation of previously unseen defect samples
for new components, along with optimizations and improvements to the model.
are available. Welding, as a widely used industrial manufacturing technique, is prone to defects
due to its characteristics of high temperature, high pressure, and potential chemical reactions,
which can lead to interruptions in the manufacturing process or poor final product quality. Deep
learning methods have been widely employed in industrial image anomaly detection. However,
when it comes to detecting images of new categories, these models often struggle to achieve
the required accuracy levels for industrial production. The conventional approach of retraining
models to adapt to samples from each new category entails significant human and computational
costs, posing a significant challenge in detecting samples from new categories. To address this
problem, we propose an approach based on the Conditional Diffusion Model-a model capable
of generating images with specific features while overcoming the challenge of limited defect
samples for new components.
In the background and related works section, we review the development of generative models, starting from non-equilibrium thermodynamics to Denoising Diffusion Probabilistic Models
(DDPM), ultimately focusing on the Conditional Diffusion Model. CCDM advantage lies in its
ability to generate images with specific features based on different conditions, addressing the
scarcity of defect samples for new components.
In the research methodology and procedures, we propose a method using the Compositional
Conditional Diffusion Model, providing a detailed description of the model’s training process,
including component labels, embedding generation, and the application of spatial transformers.
Experimental results demonstrate the successful generation of previously unseen defect samples
for new components, along with optimizations and improvements to the model.