Set main_input_name in StableDiffusionSafetyChecker to "clip_input"
FlaxStableDiffusionSafetyChecker sets main_input_name to "clip_input". This makes StableDiffusionSafetyChecker consistent.
Hi @clinty! Thanks for the contribution. However, I'd like to understand what purpose it serves or how you expect this to be used. Unlike in the transformers codebase, main_input_name is not used in diffusers (except for some tests). Are you experiencing any shortcomings because it's not defined in StableDiffusionSafetyChecker?
@pcuenca only confusion on my part when I checked the value and found it to be input_ids and not one of the two valid inputs. I am not aware of any code which is using this.
Ah, it's set to a default value. In that case I'd support changing it to avoid confusion. I triggered a CI run, copying @sayakpaul as this affects the PyTorch implementation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Please note that issues that do not follow the contributing guidelines are likely to be ignored.
The test failure has the appearance of something transient.