Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,9 +8,57 @@ class DrugGENConfig:
|
|
8 |
act='relu'
|
9 |
z_dim=16
|
10 |
max_atom=45
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
|
|
14 |
with st.spinner('Setting up the trainer class...'):
|
15 |
trainer = Trainer(DrugGENConfig())
|
16 |
|
|
|
8 |
act='relu'
|
9 |
z_dim=16
|
10 |
max_atom=45
|
11 |
+
lambda_gp=1
|
12 |
+
dim=128
|
13 |
+
depth=1
|
14 |
+
heads=8
|
15 |
+
dec_depth=1
|
16 |
+
dec_heads=8
|
17 |
+
dec_dim=128
|
18 |
+
mlp_ratio=3
|
19 |
+
warm_up_steps=0
|
20 |
+
dis_select='mlp'
|
21 |
+
init_type='normal'
|
22 |
+
batch_size=128
|
23 |
+
epoch=50
|
24 |
+
g_lr=0.00001
|
25 |
+
d_lr=0.00001
|
26 |
+
g2_lr=0.00001
|
27 |
+
d2_lr0.00001
|
28 |
+
dropout=0.
|
29 |
+
dec_dropout=0.
|
30 |
+
n_critic=1
|
31 |
+
beta1=0.9
|
32 |
+
beta2=0.999
|
33 |
+
resume_iters=None
|
34 |
+
clipping_value=2
|
35 |
+
features=False
|
36 |
+
test_iters=10_000
|
37 |
+
num_test_epoch=30_000
|
38 |
+
inference_sample_num=1000
|
39 |
+
num_workers=1
|
40 |
+
mode="inference"
|
41 |
+
inference_iterations=100
|
42 |
+
inf_batch_size=1
|
43 |
+
protein_data_dir='DrugGEN/data/akt'
|
44 |
+
drug_index='DrugGEN/data/drug_smiles.index'
|
45 |
+
drug_data_dir='DrugGEN/data/akt'
|
46 |
+
mol_data_dir='DrugGEN/data'
|
47 |
+
log_dir='DrugGEN/experiments/logs'
|
48 |
+
model_save_dir='DrugGEN/experiments/models'
|
49 |
+
inference_model=""
|
50 |
+
sample_dir='DrugGEN/experiments/samples'
|
51 |
+
result_dir="DrugGEN/experiments/tboard_output"
|
52 |
+
dataset_file="chembl45_train.pt"
|
53 |
+
drug_dataset_file="akt_train.pt"
|
54 |
+
raw_file='DrugGEN/data/chembl_train.smi'
|
55 |
+
drug_raw_file="DrugGEN/data/akt_train.smi"
|
56 |
+
inf_dataset_file="chembl45_test.pt"
|
57 |
+
inf_drug_dataset_file='akt_test.pt'
|
58 |
+
inf_raw_file='DrugGEN/data/chembl_test.smi'
|
59 |
+
inf_drug_raw_file="DrugGEN/data/akt_test.smi"
|
60 |
|
61 |
+
|
62 |
with st.spinner('Setting up the trainer class...'):
|
63 |
trainer = Trainer(DrugGENConfig())
|
64 |
|