Spaces:
Runtime error
Runtime error
Updated to load model on GPU
Browse files
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,
|
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:
|