Spaces:
Paused
Paused
Update infer.py
Browse files
infer.py
CHANGED
|
@@ -16,8 +16,8 @@ from rdkit import Chem
|
|
| 16 |
|
| 17 |
class ModelInference(object):
|
| 18 |
def __init__(self, config_path, pretrain_model_path, device):
|
| 19 |
-
assert
|
| 20 |
-
assert
|
| 21 |
|
| 22 |
if device is None:
|
| 23 |
self.device = torch.device(
|
|
|
|
| 16 |
|
| 17 |
class ModelInference(object):
|
| 18 |
def __init__(self, config_path, pretrain_model_path, device):
|
| 19 |
+
assert config_path is not None, "config_path is None"
|
| 20 |
+
assert pretrain_model_path is not None, "pretrain_model_path is None"
|
| 21 |
|
| 22 |
if device is None:
|
| 23 |
self.device = torch.device(
|