Closed
Description
Describe the bug
ValueError when using FromOriginalModelMixin
in subclasses due to the following strict class check:
diffusers/src/diffusers/loaders/single_file_model.py
Lines 147 to 151 in 83bc6c9
Could it be possible to extend from_single_file
to derived classes of SINGLE_FILE_LOADABLE_CLASSES
too?
Reproduction
Example:
class MyVAE(AutoencoderKL):
pass
MyVAE.from_single_file("xxx.safetensors")
Logs
No response
System Info
diffusers 0.28.0