Skip to content

TestPretrainedModel.md detectron2  #26

Open

Description

@kbrajwani

please make TestPretrainedModel.md as per detectron2 and i think you have upload the weights of detectron2 with detectron1 config. correct me if i am worng.

Activity

  1. liminghao1630 commented on Oct 19, 2020

    @liminghao1630
    Collaborator

    Please refer to the detectron2 for inferring instructions. Which config do you think is detecton's?

  2. kbrajwani commented on Oct 19, 2020

    @kbrajwani
    Author

    Hi thanks for reply
    Actually i am not friendlier with detectron so it can be wrong.

    when i use you config All_X101.yaml and its load model from bucket it gives result.
    cfg = get_cfg()
    cfg.merge_from_file("/content/All_X101.yaml")
    cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.5 # set threshold for this model
    predictor = DefaultPredictor(cfg)
    outputs = predictor(im)

    but when i use you config All_X101.yaml with model_final.pth its not gives any result.
    cfg = get_cfg()
    cfg.merge_from_file("/content/All_X101.yaml")
    cfg.MODEL.ROI_HEADS.SCORE_THRESH_TEST = 0.5 # set threshold for this model
    cfg.MODEL.WEIGHTS = "/content/model_final.pth"
    predictor = DefaultPredictor(cfg)
    outputs = predictor(im)

  3. kbrajwani commented on Oct 26, 2020

    @kbrajwani
    Author
  4. liminghao1630 commented on Oct 26, 2020

    @liminghao1630
    Collaborator

    @kbrajwani
    Here is a copy of your notebook, which I modified to work well.
    https://colab.research.google.com/drive/1lmcdDNHjEia9l1-3SA4iTXAS1hF1_6X2?usp=sharing
    I notice that you comment the line "cfg.MODEL.WEIGHTS = '/content/model_final.pth'" which will make the predictor use the ImageNetPretrained model instead of our fine-tuned model. The ImageNetPretrained model has no knowledge about table detection.

  5. kbrajwani commented on Oct 26, 2020

    @kbrajwani
    Author

    Thanks @liminghao1630 now i want to do table Recognition. so how can i use pretrained model.

  6. kbrajwani commented on Oct 26, 2020

    @kbrajwani
    Author

    i read you have trained using OpenNMT. so can you please create readme about inference.

  7. DuckJ commented on Oct 29, 2020

    @DuckJ

    can you tell me detectron or detectron2 should be installed? According to the TestPretrainedModel.md, detectron should be installed, but the model provided from detectron2.

  8. DuckJ commented on Oct 29, 2020

    @DuckJ

    Did you forget to update the estPretrainedModel.md @liminghao1630

  9. liminghao1630 commented on Oct 29, 2020

    @liminghao1630
    Collaborator

    @DuckJ We have no plan to update the TestPretrainedModel.md for now, please refer to the detectron2 for inferring instructions.

  10. DuckJ commented on Oct 29, 2020

    @DuckJ

    @liminghao1630 .OK,Thanks, That's means I should install detectron2. right?
    TestPretrainedModel.md mislead me, I think you should add some information in it

  11. liminghao1630 commented on Oct 29, 2020

    @liminghao1630
    Collaborator

    @DuckJ Thanks for your suggestions. I have updated the TestPretrainedModel.md and add a reminder.

  12. DuckJ commented on Oct 29, 2020

    @DuckJ

    The detect model unzip error? should I use other tools?
    Archive: data.zip End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central dire

  13. DuckJ commented on Oct 29, 2020

    @DuckJ

    @kbrajwani hi, which tools did you use to unzip the model.zip. I used the unzip and 7-zip, always failed

  14. DuckJ commented on Oct 30, 2020

    @DuckJ

    I I solved this problem by downloading each file separately. Thanks

  15. alongadotvatbox commented on Nov 17, 2020

    @alongadotvatbox

    Hey @liminghao1630 , I'd like to run your pretrained models using the colab notebook you've modified for this issue:
    https://colab.research.google.com/drive/1lmcdDNHjEia9l1-3SA4iTXAS1hF1_6X2?usp=sharing
    It seems to fail on:
    predictor = DefaultPredictor(cfg)
    Due to
    UnpicklingError: invalid load key, '\x0d'.
    Would you perhaps know why & how to correct this behavior?

  16. raghavnprasad commented on Jan 11, 2021

    @raghavnprasad

    @alongadotvatbox did u find a solution for UnpicklingError: invalid load key, '\x0d'. ?

  17. alongadotvatbox commented on Jan 11, 2021

    @alongadotvatbox
  18. debparth commented on Apr 23, 2021

    @debparth

    @alongadotvatbox If you don't mind then can you share the recognition model here?

  19. omrastogi commented on Aug 31, 2021

    @omrastogi

    @alongadotvatbox did u find a solution for UnpicklingError: invalid load key, '\x0d'. ?

    The curl request is wrong and the downloaded file is wrongly uploaded. Where file size should've been more than 700MB, it was just 147KB. So something wrong there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions