huggingface / huggingface/diffusers
Want to use "strict=False" in from_pretrained
- Vorherrschende Sprache
- Python
- Sterne
- 34.5k
- Forks
- 7.3k
- Ø Merge
- 3 T. 3 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
**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):
Beitragsleitfaden
Rechercherichtung
The request concerns the from_pretrained entry point and added layers in the UNet class. Start by tracing how from_pretrained loads the UNet, then verify that the requested strict option supports the zerosft ControlNet use case while preserving the normal loading path.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python, pytorch
- Bereich
- api, machine-learning
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100