1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00

Remove outdated logic based on transformers version in UniDiffuser pipeline __init__.py

This commit is contained in:
Daniel Gu
2023-05-11 02:05:27 -07:00
parent a54d6318df
commit fa9e3879e8

View File

@@ -7,7 +7,7 @@ from ...utils import (
try:
if not (is_transformers_available() and is_torch_available() and is_transformers_version(">=", "4.25.0")):
if not (is_transformers_available() and is_torch_available()):
raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
from ...utils.dummy_torch_and_transformers_objects import (