sjtuplayer / anomalydiffusion

[AAAI 2024] AnomalyDiffusion: Few-Shot Anomaly Image Generation with Diffusion Model
MIT License
154 stars 22 forks source link

What significance does initializer_words have? #32

Closed lu1zero9 closed 4 days ago

lu1zero9 commented 6 months ago

Hello, I have a question I'd like to ask you. In the embedding_manager2.py code, there's an addition of initializer_words. What is the significance of this? Is it intended to incorporate anomaly text information into the embedding, or does it serve another purpose?

zjuPeco commented 6 months ago

This parameter is from text inversion. You can refer to https://github.com/rinongal/textual_inversion/issues/19 for detailed explanation.