Spaces:
Runtime error
Runtime error
Commit
·
d3820e5
1
Parent(s):
e7a117c
updated reqs
Browse files- .gitignore +2 -0
- inference.py +1 -1
- requirements.txt +6 -23
.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
/.idea/
|
2 |
+
/__pycache__/
|
inference.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import os
|
2 |
import streamlit as st
|
3 |
import torch
|
4 |
-
from ctc_decoder import
|
5 |
from torchvision.transforms import Compose, Resize, Grayscale, ToTensor
|
6 |
|
7 |
from training_modules import HandwritingRecogTrainModule
|
|
|
1 |
import os
|
2 |
import streamlit as st
|
3 |
import torch
|
4 |
+
from ctc_decoder import beam_search
|
5 |
from torchvision.transforms import Compose, Resize, Grayscale, ToTensor
|
6 |
|
7 |
from training_modules import HandwritingRecogTrainModule
|
requirements.txt
CHANGED
@@ -2,23 +2,18 @@ aiohttp==3.8.3
|
|
2 |
aiosignal==1.3.1
|
3 |
altair==4.2.0
|
4 |
async-timeout==4.0.2
|
5 |
-
attrs==22.
|
6 |
backports.zoneinfo==0.2.1
|
7 |
blinker==1.5
|
8 |
-
brotlipy==0.7.0
|
9 |
cachetools==5.2.0
|
10 |
-
certifi
|
11 |
-
|
12 |
-
charset-normalizer==2.0.4
|
13 |
click==8.1.3
|
14 |
commonmark==0.9.1
|
15 |
-
|
16 |
-
ctcdecode==1.0.2
|
17 |
decorator==5.1.1
|
18 |
-
distlib==0.3.6
|
19 |
editdistance==0.6.2
|
20 |
entrypoints==0.4
|
21 |
-
flit_core==3.6.0
|
22 |
frozenlist==1.3.3
|
23 |
fsspec==2022.11.0
|
24 |
gitdb==4.0.10
|
@@ -30,26 +25,18 @@ Jinja2==3.1.2
|
|
30 |
jsonschema==4.17.3
|
31 |
lightning-utilities==0.4.2
|
32 |
MarkupSafe==2.1.1
|
33 |
-
mkl-fft==1.3.1
|
34 |
-
mkl-random==1.2.2
|
35 |
-
mkl-service==2.4.0
|
36 |
multidict==6.0.3
|
37 |
numpy==1.24.0
|
38 |
packaging==22.0
|
39 |
pandas==1.5.2
|
40 |
Pillow==9.3.0
|
41 |
-
pip==22.3.1
|
42 |
pkgutil_resolve_name==1.3.10
|
43 |
-
platformdirs==2.5.2
|
44 |
protobuf==3.20.1
|
45 |
pyarrow==10.0.1
|
46 |
-
pycparser==2.21
|
47 |
pydeck==0.8.0
|
48 |
Pygments==2.13.0
|
49 |
Pympler==1.0.1
|
50 |
-
pyOpenSSL==22.0.0
|
51 |
pyrsistent==0.19.2
|
52 |
-
PySocks==1.7.1
|
53 |
python-dateutil==2.8.2
|
54 |
pytorch-lightning==1.8.5.post0
|
55 |
pytz==2022.7
|
@@ -58,18 +45,16 @@ PyYAML==6.0
|
|
58 |
requests==2.28.1
|
59 |
rich==12.6.0
|
60 |
semver==2.13.0
|
61 |
-
setuptools==65.5.0
|
62 |
six==1.16.0
|
63 |
smmap==5.0.0
|
64 |
streamlit==1.16.0
|
65 |
tensorboardX==2.5.1
|
66 |
toml==0.10.2
|
67 |
toolz==0.12.0
|
68 |
-
--find-links https://download.pytorch.org/whl/torch_stable.html
|
69 |
torch==1.13.1+cpu
|
70 |
-
torchaudio==0.13.1
|
71 |
torchmetrics==0.11.0
|
72 |
-
torchvision==0.14.1
|
73 |
tornado==6.2
|
74 |
tqdm==4.64.1
|
75 |
typing_extensions==4.4.0
|
@@ -77,8 +62,6 @@ tzdata==2022.7
|
|
77 |
tzlocal==4.2
|
78 |
urllib3==1.26.13
|
79 |
validators==0.20.0
|
80 |
-
virtualenv==20.16.6
|
81 |
watchdog==2.2.0
|
82 |
-
wheel==0.37.1
|
83 |
yarl==1.8.2
|
84 |
zipp==3.11.0
|
|
|
2 |
aiosignal==1.3.1
|
3 |
altair==4.2.0
|
4 |
async-timeout==4.0.2
|
5 |
+
attrs==22.2.0
|
6 |
backports.zoneinfo==0.2.1
|
7 |
blinker==1.5
|
|
|
8 |
cachetools==5.2.0
|
9 |
+
certifi @ file:///croot/certifi_1671487769961/work/certifi
|
10 |
+
charset-normalizer==2.1.1
|
|
|
11 |
click==8.1.3
|
12 |
commonmark==0.9.1
|
13 |
+
ctc-decoder @ git+https://github.com/githubharald/CTCDecoder.git@6b5c3dd34944e5399a7308e241319b7f9c47e7c3
|
|
|
14 |
decorator==5.1.1
|
|
|
15 |
editdistance==0.6.2
|
16 |
entrypoints==0.4
|
|
|
17 |
frozenlist==1.3.3
|
18 |
fsspec==2022.11.0
|
19 |
gitdb==4.0.10
|
|
|
25 |
jsonschema==4.17.3
|
26 |
lightning-utilities==0.4.2
|
27 |
MarkupSafe==2.1.1
|
|
|
|
|
|
|
28 |
multidict==6.0.3
|
29 |
numpy==1.24.0
|
30 |
packaging==22.0
|
31 |
pandas==1.5.2
|
32 |
Pillow==9.3.0
|
|
|
33 |
pkgutil_resolve_name==1.3.10
|
|
|
34 |
protobuf==3.20.1
|
35 |
pyarrow==10.0.1
|
|
|
36 |
pydeck==0.8.0
|
37 |
Pygments==2.13.0
|
38 |
Pympler==1.0.1
|
|
|
39 |
pyrsistent==0.19.2
|
|
|
40 |
python-dateutil==2.8.2
|
41 |
pytorch-lightning==1.8.5.post0
|
42 |
pytz==2022.7
|
|
|
45 |
requests==2.28.1
|
46 |
rich==12.6.0
|
47 |
semver==2.13.0
|
|
|
48 |
six==1.16.0
|
49 |
smmap==5.0.0
|
50 |
streamlit==1.16.0
|
51 |
tensorboardX==2.5.1
|
52 |
toml==0.10.2
|
53 |
toolz==0.12.0
|
|
|
54 |
torch==1.13.1+cpu
|
55 |
+
torchaudio==0.13.1+cpu
|
56 |
torchmetrics==0.11.0
|
57 |
+
torchvision==0.14.1+cpu
|
58 |
tornado==6.2
|
59 |
tqdm==4.64.1
|
60 |
typing_extensions==4.4.0
|
|
|
62 |
tzlocal==4.2
|
63 |
urllib3==1.26.13
|
64 |
validators==0.20.0
|
|
|
65 |
watchdog==2.2.0
|
|
|
66 |
yarl==1.8.2
|
67 |
zipp==3.11.0
|