Convert to Apple Core ML
Support to convert model black-forest-labs/FLUX.1-schnell, receive this error:
after running:
python -m python_coreml_stable_diffusion.torch2coreml --convert-unet --convert-text-encoder --convert-vae-decoder --convert-safety-checker --model-version black-forest-labs/FLUX.1-schnell -o .
the error:ValueError: The deprecation tuple ('no variant default', '0.24.0', "You are trying to load the model files of the
variant=fp16, but no such modeling files are available.The default model files: {'transformer/diffusion_pytorch_model-00003-of-00003.safetensors', 'text_encoder_2/model-00001-of-00002.safetensors', 'text_encoder_2/model.safetensors.index.json', 'transformer/diffusion_pytorch_model-00001-of-00003.safetensors', 'vae/diffusion_pytorch_model.safetensors', 'text_encoder_2/model-00002-of-00002.safetensors', 'transformer/diffusion_pytorch_model-00002-of-00003.safetensors', 'transformer/diffusion_pytorch_model.safetensors.index.json', 'text_encoder/model.safetensors'} will be loaded instead. Make sure to not load from
variant=fp16`if such variant modeling files are not available. Doing so will lead to an error in v0.24.0 as defaulting to non-variantmodeling files is deprecated.") should be removed since diffusers' version 0.29.2 is >= 0.24.0