Jules Musquin commited on
Commit ·
0f6542f
1
Parent(s): d21a771
[ADD] adding old Aikon models for test and evaluation with a test test
Browse files- .python-version +1 -0
- Old_Aikon_Models/character_line_extraction.pth +3 -0
- Old_Aikon_Models/diagram_extraction.pt +3 -0
- Old_Aikon_Models/fasterrcnn_watermark_extraction.pth +3 -0
- Old_Aikon_Models/illustration_extraction.pt +3 -0
- Old_Aikon_Models/line_extraction.pth +3 -0
- main.py +6 -0
- predict.ipynb +0 -0
- requirement.txt +76 -0
- test/wit396_pdf545/images/1.jpg +3 -0
- test/wit396_pdf545/images/2.jpg +3 -0
- test/wit396_pdf545/labels/1.txt +5 -0
- test/wit396_pdf545/labels/2.txt +15 -0
.python-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
3.10
|
Old_Aikon_Models/character_line_extraction.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0624dda66cd7812092cf2d08acafe3deccd6a888adca011ec6054f79221a5aa0
|
| 3 |
+
size 559166130
|
Old_Aikon_Models/diagram_extraction.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6abf1df889bcf51ca5bf4312b2f550cf994dbbd0252fd3c10ea14e674ace4d76
|
| 3 |
+
size 14257597
|
Old_Aikon_Models/fasterrcnn_watermark_extraction.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:99a22add8caa4634b50f725f08c47f1312d75b4cee9b3ebe5a939ff1325ba3fc
|
| 3 |
+
size 113240956
|
Old_Aikon_Models/illustration_extraction.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8f63f86b17167bc295c50123d1abd983e7bc5e28ea3a62d04d4e5483c579bdef
|
| 3 |
+
size 14357309
|
Old_Aikon_Models/line_extraction.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fca4746127155b5994034c2c7eeea6e441558392d7360c2fca2e6ef71a0177c2
|
| 3 |
+
size 598883884
|
main.py
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def main():
|
| 2 |
+
print("Hello from genhisdoc-model!")
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
if __name__ == "__main__":
|
| 6 |
+
main()
|
predict.ipynb
ADDED
|
File without changes
|
requirement.txt
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
anyio==4.14.2
|
| 2 |
+
apturl==0.5.2
|
| 3 |
+
blinker==1.4
|
| 4 |
+
Brlapi==0.8.3
|
| 5 |
+
certifi==2020.6.20
|
| 6 |
+
chardet==4.0.0
|
| 7 |
+
click==8.4.2
|
| 8 |
+
colorama==0.4.4
|
| 9 |
+
command-not-found==0.3
|
| 10 |
+
cryptography==3.4.8
|
| 11 |
+
cupshelpers==1.0
|
| 12 |
+
dbus-python==1.2.18
|
| 13 |
+
defer==1.0.6
|
| 14 |
+
distro==1.7.0
|
| 15 |
+
distro-info==1.1+ubuntu0.2
|
| 16 |
+
exceptiongroup==1.3.1
|
| 17 |
+
filelock==3.31.1
|
| 18 |
+
fsspec==2026.6.0
|
| 19 |
+
h11==0.16.0
|
| 20 |
+
hf==1.24.0
|
| 21 |
+
hf-xet==1.5.2
|
| 22 |
+
httpcore==1.0.9
|
| 23 |
+
httplib2==0.20.2
|
| 24 |
+
httpx==0.28.1
|
| 25 |
+
huggingface_hub==1.24.0
|
| 26 |
+
idna==3.3
|
| 27 |
+
importlib-metadata==4.6.4
|
| 28 |
+
jeepney==0.7.1
|
| 29 |
+
keyring==23.5.0
|
| 30 |
+
language-selector==0.1
|
| 31 |
+
launchpadlib==1.10.16
|
| 32 |
+
lazr.restfulclient==0.14.4
|
| 33 |
+
lazr.uri==1.0.6
|
| 34 |
+
louis==3.20.0
|
| 35 |
+
macaroonbakery==1.3.1
|
| 36 |
+
more-itertools==8.10.0
|
| 37 |
+
netifaces==0.11.0
|
| 38 |
+
oauthlib==3.2.0
|
| 39 |
+
olefile==0.46
|
| 40 |
+
packaging==26.2
|
| 41 |
+
pexpect==4.8.0
|
| 42 |
+
Pillow==9.0.1
|
| 43 |
+
protobuf==3.12.4
|
| 44 |
+
ptyprocess==0.7.0
|
| 45 |
+
pycairo==1.20.1
|
| 46 |
+
pycups==2.0.1
|
| 47 |
+
PyGObject==3.42.1
|
| 48 |
+
PyJWT==2.3.0
|
| 49 |
+
pymacaroons==0.13.0
|
| 50 |
+
PyNaCl==1.5.0
|
| 51 |
+
pyparsing==2.4.7
|
| 52 |
+
pyRFC3339==1.1
|
| 53 |
+
python-apt==2.4.0+ubuntu4.1
|
| 54 |
+
python-dateutil==2.8.1
|
| 55 |
+
python-debian==0.1.43+ubuntu1.1
|
| 56 |
+
pytz==2022.1
|
| 57 |
+
pyxdg==0.27
|
| 58 |
+
PyYAML==5.4.1
|
| 59 |
+
reportlab==3.6.8
|
| 60 |
+
requests==2.25.1
|
| 61 |
+
screen-resolution-extra==0.0.0
|
| 62 |
+
SecretStorage==3.3.1
|
| 63 |
+
six==1.16.0
|
| 64 |
+
ssh-import-id==5.11
|
| 65 |
+
systemd-python==234
|
| 66 |
+
tqdm==4.69.0
|
| 67 |
+
typing_extensions==4.16.0
|
| 68 |
+
ubuntu-drivers-common==0.0.0
|
| 69 |
+
ubuntu-pro-client==8001
|
| 70 |
+
ufw==0.36.1
|
| 71 |
+
unattended-upgrades==0.1
|
| 72 |
+
urllib3==1.26.5
|
| 73 |
+
wadllib==1.3.6
|
| 74 |
+
xdg==5
|
| 75 |
+
xkit==0.0.0
|
| 76 |
+
zipp==1.0.0
|
test/wit396_pdf545/images/1.jpg
ADDED
|
Git LFS Details
|
test/wit396_pdf545/images/2.jpg
ADDED
|
Git LFS Details
|
test/wit396_pdf545/labels/1.txt
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
0 0.147896 0.791200 0.285891 0.377600
|
| 2 |
+
0 0.145111 0.482800 0.290223 0.219200
|
| 3 |
+
0 0.622215 0.795000 0.249381 0.329200
|
| 4 |
+
0 0.873762 0.796800 0.158416 0.332000
|
| 5 |
+
0 0.387376 0.791000 0.252475 0.362800
|
test/wit396_pdf545/labels/2.txt
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
0 0.742793 0.071200 0.268418 0.139200
|
| 2 |
+
0 0.459321 0.074000 0.284433 0.148000
|
| 3 |
+
0 0.497438 0.698000 0.269699 0.235200
|
| 4 |
+
0 0.759129 0.261600 0.298527 0.227200
|
| 5 |
+
0 0.760090 0.488400 0.331198 0.227200
|
| 6 |
+
0 0.450673 0.257000 0.319667 0.243600
|
| 7 |
+
0 0.797566 0.902200 0.248559 0.195600
|
| 8 |
+
0 0.539398 0.898400 0.171685 0.200000
|
| 9 |
+
0 0.466368 0.487000 0.288277 0.211600
|
| 10 |
+
0 0.241512 0.881800 0.137092 0.199600
|
| 11 |
+
0 0.791480 0.697600 0.255605 0.216800
|
| 12 |
+
0 0.198911 0.072400 0.254324 0.143200
|
| 13 |
+
0 0.169122 0.258800 0.317745 0.237600
|
| 14 |
+
0 0.188981 0.483600 0.312620 0.220000
|
| 15 |
+
0 0.191544 0.744600 0.258808 0.178800
|