pdf_translator icon indicating copy to clipboard operation
pdf_translator copied to clipboard

Model does not download.

Open pedrovily1 opened this issue 10 months ago • 5 comments

When running Make build I get the following error.

sudo make build mkdir -p models/unilm if [ ! -f models/unilm/publaynet_dit-b_cascade.pth ]; then
wget "https://layoutlm.blob.core.windows.net/dit/dit-fts/publaynet_dit-b_cascade.pth?sv=2022-11-02&ss=b&srt=o&sp=r&se=2033-06-08T16:48:15Z&st=2023-06-08T08:48:15Z&spr=https&sig=a9VXrihTzbWyVfaIDlIT1Z0FoR1073VB0RLQUMuudD4%3D" -P models/unilm -O publaynet_dit-b_cascade.pth;
fi --2024-04-24 12:48:01-- https://layoutlm.blob.core.windows.net/dit/dit-fts/publaynet_dit-b_cascade.pth?sv=2022-11-02&ss=b&srt=o&sp=r&se=2033-06-08T16:48:15Z&st=2023-06-08T08:48:15Z&spr=https&sig=a9VXrihTzbWyVfaIDlIT1Z0FoR1073VB0RLQUMuudD4%3D Resolving layoutlm.blob.core.windows.net (layoutlm.blob.core.windows.net)... 20.150.78.68 Connecting to layoutlm.blob.core.windows.net (layoutlm.blob.core.windows.net)|20.150.78.68|:443... connected. HTTP request sent, awaiting response... 403 Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. 2024-04-24 12:48:01 ERROR 403: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature..

make: *** [Makefile:8: build] Error 8

I tried using another model for layout analysis, but down the line I get conflict errors, so if anyone can help out with a solution id appreciate it a lot

pedrovily1 avatar Apr 24 '24 16:04 pedrovily1

I have the same exact issues while on step 5 "make get_models"

Wilsonqwx avatar Apr 25 '24 06:04 Wilsonqwx

you can find the pth file here :https://huggingface.co/Sebas6k/DiT_weights/tree/main

cherwinsd avatar May 16 '24 07:05 cherwinsd

you can find the pth file here :https://huggingface.co/Sebas6k/DiT_weights/tree/main

Thanks for your helpful advice!

zzw1123 avatar May 29 '24 08:05 zzw1123

ok i have different problem , when i say make get_models :

C:\Users\username\Documents\pdf_translator>get_models.py make get_models is not recognized as an internal or external command, operable program or batch file.

i tried :

C:\Users\Black Fox\Documents\pdf_translator>python make get_models.py python: can't open file 'C:\Users\username\Documents\pdf_translator\make': [Errno 2] No such file or directory

, how to get model guys and which folder should i put it , i tried the link above , and i got the file but same error , can you help me

SNAKEIX avatar May 31 '24 22:05 SNAKEIX

Created PR to resolve the dead link: https://github.com/ppisljar/pdf_translator/pull/16

Josanshuo avatar Sep 06 '24 14:09 Josanshuo