chore: always use cpu as default device

this is overridden anyways
This commit is contained in:
Manuel Schmid 2024-01-26 02:34:25 +01:00
parent 486c5b4fa5
commit 62fe86f1e8
No known key found for this signature in database
GPG Key ID: 32C4F7569B40B84B
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class GroundingDinoModel(Model):
def __init__(self):
self.config_file = 'extras/GroundingDINO/config/GroundingDINO_SwinT_OGC.py'
self.model = None
self.load_device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
self.load_device = torch.device('cpu')
self.offload_device = torch.device('cpu')
def predict_with_caption(