Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug 0.5.4 #87

Open
ucasiggcas opened this issue Jul 23, 2023 · 1 comment
Open

bug 0.5.4 #87

ucasiggcas opened this issue Jul 23, 2023 · 1 comment

Comments

@ucasiggcas
Copy link

Traceback (most recent call last):
File "/bin/image2text.py", line 5, in
from clip_interrogator import Config, Interrogator, list_caption_models, list_clip_models
File "/lib/python3.9/site-packages/clip_interrogator/init.py", line 1, in
from .clip_interrogator import Interrogator, Config
File "python3.9/site-packages/clip_interrogator/clip_interrogator.py", line 30, in
class Config:
File "/lib/python3.9/site-packages/clip_interrogator/clip_interrogator.py", line 53, in Config
device: str = ("mps" if torch.backends.mps.is_available() else "cuda" if torch.cuda.is_available() else "cpu")
AttributeError: module 'torch.backends' has no attribute 'mps'

import torch
torch.version
'1.11.0'

@pharmapsychotic
Copy link
Owner

pharmapsychotic commented Sep 9, 2023

ah sorry looks like mps backend was added in pytorch 1.13, I'll update the requirement to reflect the minimum version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants