jsr90 commited on
Commit
6fa2c2a
1 Parent(s): 4bdb363

Upload 3 files

Browse files
Files changed (3) hide show
  1. app.py +26 -0
  2. best.pt +3 -0
  3. requirements.txt +88 -0
app.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import torch
3
+ import numpy as np
4
+ from PIL import Image
5
+
6
+ model = torch.hub.load('ultralytics/yolov5', 'custom', path='best.pt', _verbose=False)
7
+
8
+ def gradio_wrapper(img):
9
+ global model
10
+ results = model(img)
11
+ return results.render()[0]
12
+
13
+ image = gr.Image(source="webcam", streaming=True)
14
+
15
+
16
+
17
+ demo = gr.Interface(
18
+ gradio_wrapper,
19
+ image,
20
+ 'image',
21
+ live=True,
22
+ title="CiclopeIA",
23
+ description="Aplicación basada en el proyecto CiclopeIA de Saturdays AI. Identifica el valor de los billetes de Euro."
24
+ )
25
+
26
+ demo.launch()
best.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0ca9c4a2af77eca160764c5011ff94f1725bb789ecd3c679202579c64083eb31
3
+ size 173196097
requirements.txt ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ aiofiles==23.1.0
2
+ aiohttp==3.8.4
3
+ aiosignal==1.3.1
4
+ altair==4.2.2
5
+ anyio==3.6.2
6
+ async-timeout==4.0.2
7
+ attrs==22.2.0
8
+ certifi==2022.12.7
9
+ charset-normalizer==3.1.0
10
+ click==8.1.3
11
+ cmake==3.26.1
12
+ contourpy==1.0.7
13
+ cycler==0.11.0
14
+ entrypoints==0.4
15
+ fastapi==0.95.0
16
+ ffmpy==0.3.0
17
+ filelock==3.10.6
18
+ fonttools==4.39.2
19
+ frozenlist==1.3.3
20
+ fsspec==2023.3.0
21
+ gitdb==4.0.10
22
+ GitPython==3.1.31
23
+ gradio==3.23.0
24
+ h11==0.14.0
25
+ httpcore==0.16.3
26
+ httpx==0.23.3
27
+ huggingface-hub==0.13.3
28
+ idna==3.4
29
+ Jinja2==3.1.2
30
+ jsonschema==4.17.3
31
+ kiwisolver==1.4.4
32
+ linkify-it-py==2.0.0
33
+ lit==16.0.0
34
+ markdown-it-py==2.2.0
35
+ MarkupSafe==2.1.2
36
+ matplotlib==3.7.1
37
+ mdit-py-plugins==0.3.3
38
+ mdurl==0.1.2
39
+ mpmath==1.3.0
40
+ multidict==6.0.4
41
+ networkx==3.0
42
+ numpy==1.24.2
43
+ nvidia-cublas-cu11==11.10.3.66
44
+ nvidia-cuda-cupti-cu11==11.7.101
45
+ nvidia-cuda-nvrtc-cu11==11.7.99
46
+ nvidia-cuda-runtime-cu11==11.7.99
47
+ nvidia-cudnn-cu11==8.5.0.96
48
+ nvidia-cufft-cu11==10.9.0.58
49
+ nvidia-curand-cu11==10.2.10.91
50
+ nvidia-cusolver-cu11==11.4.0.1
51
+ nvidia-cusparse-cu11==11.7.4.91
52
+ nvidia-nccl-cu11==2.14.3
53
+ nvidia-nvtx-cu11==11.7.91
54
+ opencv-python==4.7.0.72
55
+ orjson==3.8.8
56
+ packaging==23.0
57
+ pandas==1.5.3
58
+ Pillow==9.4.0
59
+ psutil==5.9.4
60
+ pydantic==1.10.7
61
+ pydub==0.25.1
62
+ pyparsing==3.0.9
63
+ pyrsistent==0.19.3
64
+ python-dateutil==2.8.2
65
+ python-multipart==0.0.6
66
+ pytz==2023.2
67
+ PyYAML==6.0
68
+ requests==2.28.2
69
+ rfc3986==1.5.0
70
+ scipy==1.10.1
71
+ seaborn==0.12.2
72
+ semantic-version==2.10.0
73
+ six==1.16.0
74
+ smmap==5.0.0
75
+ sniffio==1.3.0
76
+ starlette==0.26.1
77
+ sympy==1.11.1
78
+ toolz==0.12.0
79
+ torch==2.0.0
80
+ torchvision==0.15.1
81
+ tqdm==4.65.0
82
+ triton==2.0.0
83
+ typing_extensions==4.5.0
84
+ uc-micro-py==1.0.1
85
+ urllib3==1.26.15
86
+ uvicorn==0.21.1
87
+ websockets==10.4
88
+ yarl==1.8.2