Spaces:
Sleeping
Sleeping
Simon Duerr
commited on
Commit
•
0975cd6
1
Parent(s):
21af4a5
add soluble model weights
Browse files- ProteinMPNN/soluble_model_weights/v_48_010.pt +3 -0
- ProteinMPNN/soluble_model_weights/v_48_020.pt +3 -0
- ProteinMPNN/{vanilla_proteinmpnn/vanilla_model_weights → vanilla_model_weights}/v_48_002.pt +0 -0
- ProteinMPNN/{vanilla_proteinmpnn/vanilla_model_weights → vanilla_model_weights}/v_48_010.pt +0 -0
- ProteinMPNN/{vanilla_proteinmpnn/vanilla_model_weights → vanilla_model_weights}/v_48_020.pt +0 -0
- ProteinMPNN/{vanilla_proteinmpnn/vanilla_model_weights → vanilla_model_weights}/v_48_030.pt +0 -0
- app.py +20 -12
ProteinMPNN/soluble_model_weights/v_48_010.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:39059256e354a5ade71a6f14e84ca418bc27c15e65ac0cdf7ba6c215b4418775
|
3 |
+
size 6681301
|
ProteinMPNN/soluble_model_weights/v_48_020.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e491ffe7e25224d031daf4a01ba9da880e399eb63e094d1772d99467cfbbab5c
|
3 |
+
size 6681301
|
ProteinMPNN/{vanilla_proteinmpnn/vanilla_model_weights → vanilla_model_weights}/v_48_002.pt
RENAMED
File without changes
|
ProteinMPNN/{vanilla_proteinmpnn/vanilla_model_weights → vanilla_model_weights}/v_48_010.pt
RENAMED
File without changes
|
ProteinMPNN/{vanilla_proteinmpnn/vanilla_model_weights → vanilla_model_weights}/v_48_020.pt
RENAMED
File without changes
|
ProteinMPNN/{vanilla_proteinmpnn/vanilla_model_weights → vanilla_model_weights}/v_48_030.pt
RENAMED
File without changes
|
app.py
CHANGED
@@ -236,15 +236,10 @@ def run_alphafold(sequences, num_recycles):
|
|
236 |
return plddts, paes, LEN
|
237 |
|
238 |
|
239 |
-
if os.path.exists("/home/duerr/phd/08_Code/ProteinMPNN"):
|
240 |
-
path_to_model_weights = "/home/duerr/phd/08_Code/ProteinMPNN/ProteinMPNN/vanilla_proteinmpnn/vanilla_model_weights"
|
241 |
-
else:
|
242 |
-
path_to_model_weights = (
|
243 |
-
"/home/user/app/ProteinMPNN/vanilla_proteinmpnn/vanilla_model_weights"
|
244 |
-
)
|
245 |
|
246 |
|
247 |
-
|
|
|
248 |
from protein_mpnn_utils import (
|
249 |
loss_nll,
|
250 |
loss_smoothed,
|
@@ -266,6 +261,17 @@ def setup_proteinmpnn(model_name="v_48_020", backbone_noise=0.00):
|
|
266 |
# Standard deviation of Gaussian noise to add to backbone atoms
|
267 |
hidden_dim = 128
|
268 |
num_layers = 3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
269 |
model_folder_path = path_to_model_weights
|
270 |
if model_folder_path[-1] != "/":
|
271 |
model_folder_path = model_folder_path + "/"
|
@@ -1265,13 +1271,15 @@ with proteinMPNN:
|
|
1265 |
with gr.Row():
|
1266 |
model_name = gr.Dropdown(
|
1267 |
choices=[
|
1268 |
-
"v_48_002",
|
1269 |
-
"v_48_010",
|
1270 |
-
"v_48_020",
|
1271 |
-
"v_48_030",
|
|
|
|
|
1272 |
],
|
1273 |
label="Model",
|
1274 |
-
value="v_48_020",
|
1275 |
)
|
1276 |
backbone_noise = gr.Dropdown(
|
1277 |
choices=[0, 0.02, 0.10, 0.20, 0.30], label="Backbone noise", value=0
|
|
|
236 |
return plddts, paes, LEN
|
237 |
|
238 |
|
|
|
|
|
|
|
|
|
|
|
|
|
239 |
|
240 |
|
241 |
+
|
242 |
+
def setup_proteinmpnn(model_name="vanilla—v_48_020", backbone_noise=0.00):
|
243 |
from protein_mpnn_utils import (
|
244 |
loss_nll,
|
245 |
loss_smoothed,
|
|
|
261 |
# Standard deviation of Gaussian noise to add to backbone atoms
|
262 |
hidden_dim = 128
|
263 |
num_layers = 3
|
264 |
+
|
265 |
+
model, model_name = model_name.split("—")
|
266 |
+
if os.path.exists("/home/duerr"):
|
267 |
+
dir = "/home/duerr/phd/08_Code/ProteinMPNN"
|
268 |
+
else:
|
269 |
+
dir = "/home/user/app"
|
270 |
+
|
271 |
+
path_to_model_weights = (
|
272 |
+
f"{dir}/ProteinMPNN/{model}_model_weights"
|
273 |
+
)
|
274 |
+
|
275 |
model_folder_path = path_to_model_weights
|
276 |
if model_folder_path[-1] != "/":
|
277 |
model_folder_path = model_folder_path + "/"
|
|
|
1271 |
with gr.Row():
|
1272 |
model_name = gr.Dropdown(
|
1273 |
choices=[
|
1274 |
+
"vanilla—v_48_002",
|
1275 |
+
"vanilla—v_48_010",
|
1276 |
+
"vanilla—v_48_020",
|
1277 |
+
"vanilla—v_48_030",
|
1278 |
+
"soluble—v_48_010",
|
1279 |
+
"soluble—v_48_020",
|
1280 |
],
|
1281 |
label="Model",
|
1282 |
+
value="vanilla—v_48_020",
|
1283 |
)
|
1284 |
backbone_noise = gr.Dropdown(
|
1285 |
choices=[0, 0.02, 0.10, 0.20, 0.30], label="Backbone noise", value=0
|