veb-101 commited on
Commit
10675f4
β€’
1 Parent(s): cc6b9d8

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"ckpt_024-vloss_0.1816_vf1_0.7855.ckpt")
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=8, replace=False)]
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:eeba4764adb310bf3a35ba2479326fdbf38acaed3242a9f020ff2d7eba47b2ca
3
  size 243578302
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f0bb009e4d3c07380ed58b5078df7ec08f8adccd742b44aff99b4b35531300e
3
  size 243578302