Spaces:
Runtime error
Runtime error
Changed lightning version
Browse files- app.py +1 -1
- 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 |
-
|
2 |
-
|
3 |
-
|
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
|
|
|
|