veb-101 commited on
Commit
5c6bb4d
1 Parent(s): 5f9d7f0

Changed lightning version

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +4 -6
app.py CHANGED
@@ -209,7 +209,7 @@ if __name__ == "__main__":
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(
215
  fn=partial(predict, model=model, preprocess_fn=preprocess, device=DEVICE, idx2labels=labels),
 
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(
215
  fn=partial(predict, model=model, preprocess_fn=preprocess, device=DEVICE, idx2labels=labels),
requirements.txt CHANGED
@@ -1,6 +1,4 @@
1
- --find-links https://download.pytorch.org/whl/torch_stable.html
2
- torch==2.0.0+cpu
3
- torchvision==0.15.0
4
- torchmetrics==1.0.0
5
- pydantic
6
- lightning
 
1
+ torch==2.0.0
2
+ torchvision
3
+ lightning==2.0.1
4
+ torchmetrics==1.0.0