Skip to content

Commit d1b1bcd

Browse files
committed
add deprecation warning.
1 parent 4bd7983 commit d1b1bcd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/diffusers/models/modeling_flax_utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,10 @@ def from_pretrained(
290290
You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
291291
```
292292
"""
293+
logger.warning(
294+
"Flax classes are deprecated and will be removed in Diffusers v1. We "
295+
"recommend migrating to PyTorch classes or pinning your version of Diffusers."
296+
)
293297
config = kwargs.pop("config", None)
294298
cache_dir = kwargs.pop("cache_dir", None)
295299
force_download = kwargs.pop("force_download", False)

0 commit comments

Comments
 (0)