huggingface / huggingface/diffusers
Want to use "strict=False" in from_pretrained
Aperta
stale
- Lingua principale
- Python
- Stelle
- 34.5k
- Fork
- 7.3k
- Merge medio
- 3g 3h
- PR unite (30g)
- 91
Descrizione
**What API design would you like to have changed or added to the library? Why?**
I want to add param "strict" in from_pretrained.
I want to add zerosft controlnet, but it can only implement by adding the set layers to unet class,
when I use from_pretrained, it can't use "strict=False"
**What use case would this enable or better enable? Can you give us a code example?**
def from_pretrained(cls, pretrained_model_name_or_path: Optional[Union[str, os.PathLike]], strict: bool=True, **kwargs):
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.