huggingface / huggingface/diffusers

give state dict creation its own method in IP-adapter pipeline tests

Aperta
#14,634 0 commenti 0 reazioni 1 assegnatario Rivendicata da @sayakpaul Vedi su GitHub
Lingua principale
Python
Stelle
34.5k
Fork
7.3k
Merge medio
3g 3h
PR unite (30g)
91

Descrizione

For models we use a method in the test Mixin that the models can override to generate the necessary state dict. Let's follow that convention here as well

https://github.com/huggingface/diffusers/blob/a8c33fe99f5603c907e6722325e4a68e3717b62b/tests/models/testing_utils/ip_adapter.py#L76

Override in the specific model class:
https://github.com/huggingface/diffusers/blob/a8c33fe99f5603c907e6722325e4a68e3717b62b/tests/models/transformers/test_models_transformer_flux.py#L322

_Originally posted by @DN6 in https://github.com/huggingface/diffusers/pull/14622#discussion_r3878211632_

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.