Vivien commited on
Commit
685c1fb
1 Parent(s): 7e0130d

Switch to a smaller OWL-ViT model

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -15,11 +15,10 @@ import tokenizers
15
  DEBUG = False
16
  if DEBUG:
17
  MODEL = "vit-base-patch32"
18
- OWL_MODEL = f"google/owlvit-base-patch32"
19
  else:
20
  MODEL = "vit-large-patch14-336"
21
- OWL_MODEL = f"google/owlvit-large-patch14"
22
  CLIP_MODEL = f"openai/clip-{MODEL}"
 
23
 
24
  if not DEBUG and torch.cuda.is_available():
25
  device = torch.device("cuda")
 
15
  DEBUG = False
16
  if DEBUG:
17
  MODEL = "vit-base-patch32"
 
18
  else:
19
  MODEL = "vit-large-patch14-336"
 
20
  CLIP_MODEL = f"openai/clip-{MODEL}"
21
+ OWL_MODEL = f"google/owlvit-base-patch32"
22
 
23
  if not DEBUG and torch.cuda.is_available():
24
  device = torch.device("cuda")