micole66 commited on
Commit
a92e788
·
1 Parent(s): a7f6582

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
11
  weight_dtype = torch.bfloat16 if device == "cuda" else torch.float32
12
  print(f"Using device: {device} ({weight_dtype})")
13
  print("Loading model...")
14
- model_pretrained_name_or_path = "kakaobrain/align-base"
15
  processor = AutoProcessor.from_pretrained(model_pretrained_name_or_path)
16
  model = AutoModel.from_pretrained(model_pretrained_name_or_path, torch_dtype=weight_dtype).eval().to(device)
17
  print("Model loaded.")
 
11
  weight_dtype = torch.bfloat16 if device == "cuda" else torch.float32
12
  print(f"Using device: {device} ({weight_dtype})")
13
  print("Loading model...")
14
+ model_pretrained_name_or_path = "laion/CLIP-convnext_large_d.laion2B-s26B-b102K-augreg"
15
  processor = AutoProcessor.from_pretrained(model_pretrained_name_or_path)
16
  model = AutoModel.from_pretrained(model_pretrained_name_or_path, torch_dtype=weight_dtype).eval().to(device)
17
  print("Model loaded.")