Prathm commited on
Commit
2844562
·
1 Parent(s): b633dd1

Updated to load model on GPU

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -182,7 +182,7 @@ def load_model():
182
  # Load the pre-trained CLIP model
183
  clip_model, clip_preprocess = clip.load("ViT-B/32", device=device)
184
  inst = get_instrumented_model(config.model, config.output_class,
185
- config.layer, torch.device('cpu'), use_w=config.use_w)
186
  return clip_model, inst
187
 
188
  # Then, to load your models, call this function:
 
182
  # Load the pre-trained CLIP model
183
  clip_model, clip_preprocess = clip.load("ViT-B/32", device=device)
184
  inst = get_instrumented_model(config.model, config.output_class,
185
+ config.layer, device, use_w=config.use_w)
186
  return clip_model, inst
187
 
188
  # Then, to load your models, call this function: