Spaces:
Runtime error
Runtime error
updated ckpt and app.py
Browse files
app.py
CHANGED
|
@@ -193,7 +193,7 @@ if __name__ == "__main__":
|
|
| 193 |
}
|
| 194 |
|
| 195 |
DEVICE = torch.device("cuda:0") if torch.cuda.is_available() else torch.device("cpu")
|
| 196 |
-
CKPT_PATH = os.path.join(os.getcwd(), r"
|
| 197 |
model = ProteinModel.load_from_checkpoint(CKPT_PATH)
|
| 198 |
model.to(DEVICE)
|
| 199 |
model.eval()
|
|
@@ -208,7 +208,7 @@ if __name__ == "__main__":
|
|
| 208 |
)
|
| 209 |
|
| 210 |
images_dir = glob(os.path.join(os.getcwd(), "samples") + os.sep + "*.png")
|
| 211 |
-
examples = [[i, TrainingConfig.METRIC_THRESH] for i in np.random.choice(images_dir, size=
|
| 212 |
# print(examples)
|
| 213 |
|
| 214 |
iface = gr.Interface(
|
|
|
|
| 193 |
}
|
| 194 |
|
| 195 |
DEVICE = torch.device("cuda:0") if torch.cuda.is_available() else torch.device("cpu")
|
| 196 |
+
CKPT_PATH = os.path.join(os.getcwd(), r"ckpt_022-vloss_0.1756_vf1_0.7919.ckpt")
|
| 197 |
model = ProteinModel.load_from_checkpoint(CKPT_PATH)
|
| 198 |
model.to(DEVICE)
|
| 199 |
model.eval()
|
|
|
|
| 208 |
)
|
| 209 |
|
| 210 |
images_dir = glob(os.path.join(os.getcwd(), "samples") + os.sep + "*.png")
|
| 211 |
+
examples = [[i, TrainingConfig.METRIC_THRESH] for i in np.random.choice(images_dir, size=10, replace=False)]
|
| 212 |
# print(examples)
|
| 213 |
|
| 214 |
iface = gr.Interface(
|
ckpt_024-vloss_0.1816_vf1_0.7855.ckpt → ckpt_022-vloss_0.1756_vf1_0.7919.ckpt
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 243578302
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8f0bb009e4d3c07380ed58b5078df7ec08f8adccd742b44aff99b4b35531300e
|
| 3 |
size 243578302
|