Spaces:
Running
on
Zero
Running
on
Zero
specify ssl model type
Browse files
app.py
CHANGED
@@ -21,7 +21,8 @@ def load_model(checkpoint_path: str):
|
|
21 |
"""Loads the model from the given checkpoint path."""
|
22 |
global model
|
23 |
model = SSLMOSLightningModule.load_from_checkpoint(
|
24 |
-
checkpoint_path, map_location=device
|
|
|
25 |
)
|
26 |
model.eval()
|
27 |
print(f"Model loaded from {checkpoint_path}")
|
|
|
21 |
"""Loads the model from the given checkpoint path."""
|
22 |
global model
|
23 |
model = SSLMOSLightningModule.load_from_checkpoint(
|
24 |
+
checkpoint_path, map_location=device,
|
25 |
+
ssl_model_type='w2v2',
|
26 |
)
|
27 |
model.eval()
|
28 |
print(f"Model loaded from {checkpoint_path}")
|