Spaces:
Running
Running
Erva Ulusoy
commited on
Commit
·
bf28cce
1
Parent(s):
2931689
try with latest pyg version
Browse files- requirements.txt +3 -3
- run_prothgt_app.py +2 -1
- setup.sh +0 -6
requirements.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
pandas
|
| 2 |
-
torch
|
| 3 |
-
|
| 4 |
-
torch-geometric
|
| 5 |
gdown
|
|
|
|
| 1 |
pandas
|
| 2 |
+
torch
|
| 3 |
+
torch-sparse
|
| 4 |
+
torch-geometric
|
| 5 |
gdown
|
run_prothgt_app.py
CHANGED
|
@@ -18,7 +18,8 @@ class ProtHGT(torch.nn.Module):
|
|
| 18 |
|
| 19 |
self.convs = torch.nn.ModuleList()
|
| 20 |
for _ in range(num_layers):
|
| 21 |
-
conv = HGTConv(hidden_channels, hidden_channels, data.metadata(), num_heads, group='sum')
|
|
|
|
| 22 |
self.convs.append(conv)
|
| 23 |
|
| 24 |
self.mlp = MLP(mlp_hidden_layers , dropout=mlp_dropout, norm=None)
|
|
|
|
| 18 |
|
| 19 |
self.convs = torch.nn.ModuleList()
|
| 20 |
for _ in range(num_layers):
|
| 21 |
+
# conv = HGTConv(hidden_channels, hidden_channels, data.metadata(), num_heads, group='sum')
|
| 22 |
+
conv = HGTConv(hidden_channels, hidden_channels, data.metadata(), num_heads)
|
| 23 |
self.convs.append(conv)
|
| 24 |
|
| 25 |
self.mlp = MLP(mlp_hidden_layers , dropout=mlp_dropout, norm=None)
|
setup.sh
DELETED
|
@@ -1,6 +0,0 @@
|
|
| 1 |
-
#!/bin/bash
|
| 2 |
-
pip install torch==1.12.1
|
| 3 |
-
pip uninstall torch-scatter torch-sparse torch-geometric torch-cluster torch-geometric --y
|
| 4 |
-
# pip install torch-scatter -f https://data.pyg.org/whl/torch-1.12.0+cpu.html
|
| 5 |
-
pip install torch-sparse -f https://data.pyg.org/whl/torch-1.12.0+cpu.html
|
| 6 |
-
# pip install torch-cluster -f https://data.pyg.org/whl/torch-1.12.0+cpu.html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|