Layout-Parser / layout-parser

A Unified Toolkit for Deep Learning Based Document Image Analysis
https://layout-parser.github.io/
Apache License 2.0
4.75k stars 456 forks source link

Model download hangs #84

Open jerniem opened 2 years ago

jerniem commented 2 years ago

When I try to download a layout model, at some point of the download (usually around 20 %), the download speed goes from 5 mb/s to close to zero. Then at some point the download stops and gives "connection reset by peer" error. What could be the reason for this?

To Reproduce Steps to reproduce the behavior:

  1. What command or script did you run?
    model = lp.Detectron2LayoutModel('lp://PubLayNet/faster_rcnn_R_50_FPN_3x/config',
                                 extra_config=["MODEL.ROI_HEADS.SCORE_THRESH_TEST", 0.8],
                                 label_map={0: "Text", 1: "Title", 2: "List", 3:"Table", 4:"Figure"})

Environment

  1. Please describe your Platform [Windows/MacOS/Linux]: Mac
  2. Please show the Layout Parser version: 0.2.0
yangxiaomin08 commented 2 years ago

I have the same issue which blocks me to use layout-parser.

geek8565 commented 2 years ago

I also have the same issue (Detectron2). only paddle model can download.