forked from dbolya/tomesd
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from AlexKoff88/ak/fixes
Fixes
- Loading branch information
Showing
3 changed files
with
54 additions
and
58 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
def is_diffusers_available(): | ||
try: | ||
import stable_diffusion | ||
import utils | ||
import diffusers | ||
return True | ||
except ImportError: | ||
print("diffusers library is not available. Please install it to use Token Merging.") | ||
return False | ||
|
||
def is_openclip_available(): | ||
try: | ||
import open_clip_torch | ||
import open_clip | ||
return True | ||
except ImportError: | ||
print("OpenCLIP library is not available. Please install it to use Token Merging.") | ||
return False | ||
|
||
def is_timm_available(): | ||
try: | ||
import timm | ||
return True | ||
except ImportError: | ||
print("Timm library is not available. Please install it to use Token Merging.") | ||
return False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters