Gray Artifacts Spreading During Fine-tuning SD 1.5 Inpainting for Object Removal #9774
Replies: 2 comments 1 reply
-
@everyone please help me :( |
Beta Was this translation helpful? Give feedback.
-
The scope of this question is too wide for us to be able to address/help in any way. I'll try my best to provide some thoughts, but am afraid that we cannot really help with these kinds of things because it is too broad an ask and not really Diffusers-specific.
|
Beta Was this translation helpful? Give feedback.
-
Issue Description
Problem Manifestation
Im trying to train stable diffusion 1.5 inpaint and the model is experiencing a progressive degradation in output quality, specifically:
Initial Performance (0-10k iterations):
Degradation Pattern (after 10k iterations):
Training Setup
Dataset & Training Config
Examples
a) ground truth image // b) mask // c) predicted image // d) training output
Questions
Additional Context
The model starts with good performance and learns effectively
![image](https://private-user-images.githubusercontent.com/178876131/380418039-6d650849-d4ba-4e59-8ceb-e4449a4a055b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1ODQxNjcsIm5iZiI6MTczOTU4Mzg2NywicGF0aCI6Ii8xNzg4NzYxMzEvMzgwNDE4MDM5LTZkNjUwODQ5LWQ0YmEtNGU1OS04Y2ViLWU0NDQ5YTRhMDU1Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwMTQ0MjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wZmUxMGQ4YjhmN2JmZTVmNDU3YzQwYzZhMWIxZTYyNWE3YzMyM2U5MDYwOTc5Y2ZmODQ2ZGIzNWI2OGQ5NmQyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.v3oL2ItmpwQ82J4wKHkDjiJ_zaxoWUWsHTTxZ31SMOU)
(inference on test data 75K iterations vs 270k iterations)
The training loss is decreasing as expected
![image](https://private-user-images.githubusercontent.com/178876131/380417628-7bb387f1-19b4-4aca-82eb-291c90ba2793.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1ODQxNjcsIm5iZiI6MTczOTU4Mzg2NywicGF0aCI6Ii8xNzg4NzYxMzEvMzgwNDE3NjI4LTdiYjM4N2YxLTE5YjQtNGFjYS04MmViLTI5MWM5MGJhMjc5My5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwMTQ0MjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iYmI0N2Q0OGY0Yzg1NGFjYjQ5ZDNkNjBlZmRlNGE1N2I5ZmIyOTY3ZDAyMzI0NDJjMDgyYjJjZWViZTI4YmFkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Yb4LtId5FbFmxLB0XSbBhmUWvSPfxrgbbbT67QlGl9o)
The issue seems to be a form of mode collapse or error propagation
Any insights or suggestions would be greatly appreciated!
Tags
#stable-diffusion #inpainting #fine-tuning #training-stability #mode-collapse
Beta Was this translation helpful? Give feedback.
All reactions