Caleb Ellington
commited on
Commit
·
2c4e5b4
1
Parent(s):
556bbb7
update with major refactor
Browse files
README.md
CHANGED
@@ -11,11 +11,11 @@ snapshot_download(repo_id=model_name, local_dir=genbio_models_path)
|
|
11 |
```
|
12 |
### Load model for inference
|
13 |
```python
|
14 |
-
from
|
15 |
|
16 |
ckpt_path = genbio_models_path.joinpath('fold0', 'model.ckpt')
|
17 |
model = SequenceRegression.load_from_checkpoint(ckpt_path, strict_loading=False).eval()
|
18 |
|
19 |
-
collated_batch = model.
|
20 |
logits = model(collated_batch)
|
21 |
print(logits)
|
|
|
11 |
```
|
12 |
### Load model for inference
|
13 |
```python
|
14 |
+
from modelgenerator.tasks import SequenceRegression
|
15 |
|
16 |
ckpt_path = genbio_models_path.joinpath('fold0', 'model.ckpt')
|
17 |
model = SequenceRegression.load_from_checkpoint(ckpt_path, strict_loading=False).eval()
|
18 |
|
19 |
+
collated_batch = model.transform({"sequences": ["ACGT", "AGCT"]})
|
20 |
logits = model(collated_batch)
|
21 |
print(logits)
|