Skip to content

Save base model in ControlNet training scripts when saving trained model or pushing to hub #3115

Closed
@pcuenca

Description

@pcuenca

This came up in the PR to provide ControlNet support to Apple's ml-stable-diffusion: apple/ml-stable-diffusion#153. I've also seen people training ControlNet models for Stable Diffusion v2 and v2.1, so it could be useful to save this as a metadata field for users of the trained models.

This would be similar to the base_model recently added to the textual inversion training script: huggingface/notebooks@944dc4b, but could maybe go inside the config.json of the saved model.

@williamberman @sayakpaul @yiyixuxu @patrickvonplaten do you think this could be useful? If so, I can submit a PR for both the PyTorch and the Flax training scripts.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions