layout-parser icon indicating copy to clipboard operation
layout-parser copied to clipboard

OS error on Detectron2LayoutModel

Open MarouaneZ1 opened this issue 2 years ago • 4 comments

erreurDetectron erreurDetectronn

i'm trying to use detectron2 model for extraction information but i got this problem, i tried many ways but i failed to solve it, i tried to use google collab but it throws me :"ImportError: you cannot import is_directory", does anyone know how can i fix it ? any help would be appreciated

MarouaneZ1 avatar Sep 23 '22 18:09 MarouaneZ1

meet same things

ws719547997 avatar Oct 20 '22 15:10 ws719547997

me too

alexHxun avatar Oct 24 '22 05:10 alexHxun

I fixed it: download the config file and open it ,find the line like "WEIGHTS: https://www.dropbox.com/s/d9fc9tahfzyl6df/model_final.pth?dl=1" copy the link and open it on your browser, download the model file , modify the path of weight in config file 'WEIGHTS: path to your model file', and runing your demo file

alexHxun avatar Oct 24 '22 07:10 alexHxun

I fixed it: download the config file and open it ,find the line like "WEIGHTS: https://www.dropbox.com/s/d9fc9tahfzyl6df/model_final.pth?dl=1" copy the link and open it on your browser, download the model file , modify the path of weight in config file 'WEIGHTS: path to your model file', and runing your demo file

Cool, but what if we donot want to download a model manually, like for one case - during deployment with docker?

Dkdatavid avatar Sep 20 '23 09:09 Dkdatavid