Spaces:
Sleeping
Sleeping
igashov
commited on
Commit
•
49021fb
1
Parent(s):
e2b89af
download models
Browse files
app.py
CHANGED
@@ -53,11 +53,19 @@ allowpaymentrequest="" frameborder="0" srcdoc='{html}'></iframe>"""
|
|
53 |
|
54 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
55 |
os.makedirs("results", exist_ok=True)
|
56 |
-
|
57 |
|
|
|
|
|
|
|
|
|
58 |
size_nn = SizeClassifier.load_from_checkpoint('models/geom_size_gnn.ckpt', map_location=device).eval().to(device)
|
59 |
print('Loaded SizeGNN model')
|
60 |
|
|
|
|
|
|
|
|
|
61 |
ddpm = DDPM.load_from_checkpoint('models/geom_difflinker.ckpt', map_location=device).eval().to(device)
|
62 |
print('Loaded diffusion model')
|
63 |
|
|
|
53 |
|
54 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
55 |
os.makedirs("results", exist_ok=True)
|
56 |
+
os.makedirs("models", exist_ok=True)
|
57 |
|
58 |
+
subprocess.run(
|
59 |
+
'wget https://zenodo.org/record/7121300/files/geom_size_gnn.ckpt?download=1 -O models/geom_size_gnn.ckpt',
|
60 |
+
shell=True
|
61 |
+
)
|
62 |
size_nn = SizeClassifier.load_from_checkpoint('models/geom_size_gnn.ckpt', map_location=device).eval().to(device)
|
63 |
print('Loaded SizeGNN model')
|
64 |
|
65 |
+
subprocess.run(
|
66 |
+
'wget https://zenodo.org/record/7121300/files/geom_difflinker.ckpt?download=1 -O models/geom_difflinker.ckpt',
|
67 |
+
shell=True
|
68 |
+
)
|
69 |
ddpm = DDPM.load_from_checkpoint('models/geom_difflinker.ckpt', map_location=device).eval().to(device)
|
70 |
print('Loaded diffusion model')
|
71 |
|