Spaces:
Running
on
T4
Running
on
T4
simonduerr
commited on
Commit
•
4559fd7
1
Parent(s):
135c853
Update app.py
Browse files
app.py
CHANGED
@@ -250,7 +250,7 @@ def setup_proteinmpnn(model_name="v_48_020", backbone_noise=0.00):
|
|
250 |
)
|
251 |
from protein_mpnn_utils import StructureDataset, StructureDatasetPDB, ProteinMPNN
|
252 |
|
253 |
-
device = torch.device("cuda:0" if (torch.cuda.is_available()) else "cpu")
|
254 |
# ProteinMPNN model name: v_48_002, v_48_010, v_48_020, v_48_030, v_32_002, v_32_010; v_32_020, v_32_030; v_48_010=version with 48 edges 0.10A noise
|
255 |
# Standard deviation of Gaussian noise to add to backbone atoms
|
256 |
hidden_dim = 128
|
|
|
250 |
)
|
251 |
from protein_mpnn_utils import StructureDataset, StructureDatasetPDB, ProteinMPNN
|
252 |
|
253 |
+
device = torch.device("cpu") #torch.device("cuda:0" if (torch.cuda.is_available()) else "cpu") #fix for memory issues
|
254 |
# ProteinMPNN model name: v_48_002, v_48_010, v_48_020, v_48_030, v_32_002, v_32_010; v_32_020, v_32_030; v_48_010=version with 48 edges 0.10A noise
|
255 |
# Standard deviation of Gaussian noise to add to backbone atoms
|
256 |
hidden_dim = 128
|