Spaces:
Runtime error
Runtime error
nakamura196
commited on
Commit
•
65450c1
1
Parent(s):
9b1be63
fix: refactor
Browse files- app.py +1 -1
- requirements.txt +4 -30
app.py
CHANGED
@@ -35,4 +35,4 @@ article = "<p style='text-align: center'>YOLOv5 NDL-DocL Datasets is an object d
|
|
35 |
|
36 |
examples = [['『源氏物語』(東京大学総合図書館所蔵).jpg'], ['『源氏物語』(京都大学所蔵).jpg'], ['『平家物語』(国文学研究資料館提供).jpg']]
|
37 |
demo = gr.Interface(yolo, inputs, outputs, title=title, description=description, article=article,examples=examples)
|
38 |
-
demo.launch()
|
|
|
35 |
|
36 |
examples = [['『源氏物語』(東京大学総合図書館所蔵).jpg'], ['『源氏物語』(京都大学所蔵).jpg'], ['『平家物語』(国文学研究資料館提供).jpg']]
|
37 |
demo = gr.Interface(yolo, inputs, outputs, title=title, description=description, article=article,examples=examples)
|
38 |
+
demo.launch(share=False)
|
requirements.txt
CHANGED
@@ -1,31 +1,5 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
# base ----------------------------------------
|
4 |
-
matplotlib>=3.2.2
|
5 |
-
numpy>=1.18.5
|
6 |
-
opencv-python-headless
|
7 |
Pillow
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
torchvision>=0.8.1
|
12 |
-
tqdm>=4.41.0
|
13 |
-
|
14 |
-
# logging -------------------------------------
|
15 |
-
tensorboard>=2.4.1
|
16 |
-
# wandb
|
17 |
-
|
18 |
-
# plotting ------------------------------------
|
19 |
-
seaborn>=0.11.0
|
20 |
-
pandas
|
21 |
-
|
22 |
-
# export --------------------------------------
|
23 |
-
# coremltools>=4.1
|
24 |
-
# onnx>=1.9.0
|
25 |
-
# scikit-learn==0.19.2 # for coreml quantization
|
26 |
-
|
27 |
-
# extras --------------------------------------
|
28 |
-
# Cython # for pycocotools https://github.com/cocodataset/cocoapi/issues/172
|
29 |
-
# pycocotools>=2.0 # COCO mAP
|
30 |
-
# albumentations>=1.0.3
|
31 |
-
thop # FLOPs computation
|
|
|
1 |
+
torch
|
|
|
|
|
|
|
|
|
|
|
2 |
Pillow
|
3 |
+
opencv-python
|
4 |
+
torchvision
|
5 |
+
seaborn
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|