Error. Maybe missing file?
os.system("curl -LJ -o publaynet_dit-b_cascade.pth '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'")
Hi. Maybe the error is beacuse this file it´s not there???
Yes, the main problem is this. The file is not found.
The links have been fixed in the repo!!! :)
In order to this sample to work again is needed to update the line '''os.system("curl -LJ -o publaynet_dit-b_cascade.pth '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'")''' with the new link.
Hi, what's the new link?
Hi!
I talked with the authors and they re-uploaded the weights here:
https://mail2sysueducn-my.sharepoint.com/personal/huangyp28_mail2_sysu_edu_cn/_layouts/15/onedrive.aspx?ga=1&id=%2Fpersonal%2Fhuangyp28%5Fmail2%5Fsysu%5Fedu%5Fcn%2FDocuments%2Frelease%2Fdit%2Fdit%2Dfts
Thanks. Do you have a Microsoft account? Could you host it in a repository on the hub?
This way I could use hf_hub_download
inside this Space.
Sure, here you go:
https://huggingface.co/Sebas6k/DiT_weights/tree/main
Hope you find it useful. I just uploaded the weights you were using in your original code