Skip to content

Commit 53f2cc2

Browse files
committed
add descriptions for 2 pretrained models
1 parent d950085 commit 53f2cc2

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

enformer_pytorch/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
preview:
22
id: 1-5nXoOCcRQxFULV4gac9GikY9j3iO3p3
3+
description: >
4+
Trained on sequences of 131,072 basepairs, target length 896 on v3-64 TPUs for 2 and a half days without augmentations and poisson loss
35
params:
46
dim: 1536
57
depth: 11
@@ -10,6 +12,8 @@ preview:
1012

1113
corr_coef_obj:
1214
id: 18gMf2gIbU5LV09_2w8yMjEesVzwu4sGz
15+
description: >
16+
Trained on sequences o 131,072 baespairs, target length 896 on v3-64 TPUs for 3 days with sequence augmentations and pearson correlation objective
1317
params:
1418
dim: 1536
1519
depth: 11

enformer_pytorch/model_loader.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def load_pretrained_model(
3636
slug,
3737
force = False,
3838
model = None,
39+
verbose = True,
3940
**kwargs
4041
):
4142
if slug not in CONFIG:
@@ -67,5 +68,8 @@ def load_pretrained_model(
6768

6869
model.load_state_dict(torch.load(str(save_path)))
6970

70-
print(f'loaded {slug} successfully')
71+
if verbose and 'description' in config:
72+
print(f"\n{config['description']}\n")
73+
74+
print(f'Enformer model "{slug}" loaded successfully')
7175
return model

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
name = 'enformer-pytorch',
55
packages = find_packages(exclude=[]),
66
include_package_data = True,
7-
version = '0.1.23',
7+
version = '0.1.24',
88
license='MIT',
99
description = 'Enformer - Pytorch',
1010
author = 'Phil Wang',

0 commit comments

Comments
 (0)