Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to download vila weights #280

Open
msaoudallah opened this issue Nov 7, 2023 · 1 comment
Open

how to download vila weights #280

msaoudallah opened this issue Nov 7, 2023 · 1 comment

Comments

@msaoudallah
Copy link

i'm trying to use section nesting example , but i'm getting this error

$ python examples/section_nesting_prediction/main.py
Traceback (most recent call last):
  File "D:\CARDs\segmentation v10\mmda\mmda\examples\section_nesting_prediction\main.py", line 91, in <module>
    main()
  File "D:\CARDs\segmentation v10\mmda\mmda\examples\section_nesting_prediction\main.py", line 28, in main
    layout_predictor = LayoutParserPredictor.from_pretrained(
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\synth\anaconda3\Lib\site-packages\mmda\predictors\lp_predictors.py", line 34, in from_pretrained
    model = lp.AutoLayoutModel(
            ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\synth\anaconda3\Lib\site-packages\layoutparser\models\auto_layoutmodel.py", line 64, in AutoLayoutModel
    return ALL_AVAILABLE_BACKENDS[backend_name](
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\synth\anaconda3\Lib\site-packages\layoutparser\models\effdet\layoutmodel.py", line 138, in __init__
    self._initialize_model(config_path, model_path, label_map, extra_config)
  File "C:\Users\synth\anaconda3\Lib\site-packages\layoutparser\models\effdet\layoutmodel.py", line 164, in _initialize_model
    model_path = PathManager.get_local_path(model_path)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\synth\anaconda3\Lib\site-packages\iopath\common\file_io.py", line 1251, in get_local_path
    bret = handler._get_local_path(path, force=force, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\synth\anaconda3\Lib\site-packages\layoutparser\models\effdet\catalog.py", line 64, in _get_local_path
    return PathManager.get_local_path(model_url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\synth\anaconda3\Lib\site-packages\iopath\common\file_io.py", line 1251, in get_local_path
    bret = handler._get_local_path(path, force=force, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\synth\anaconda3\Lib\site-packages\iopath\common\file_io.py", line 835, in _get_local_path
    with file_lock(cached):
  File "C:\Users\synth\anaconda3\Lib\site-packages\portalocker\utils.py", line 163, in __enter__
    return self.acquire()
           ^^^^^^^^^^^^^^
  File "C:\Users\synth\anaconda3\Lib\site-packages\portalocker\utils.py", line 258, in acquire
    fh = self._get_fh()
         ^^^^^^^^^^^^^^
  File "C:\Users\synth\anaconda3\Lib\site-packages\portalocker\utils.py", line 307, in _get_fh
    return open(  # noqa: SIM115
           ^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 22] Invalid argument: 'C:\\Users\\synth/.torch/iopath_cache\\s/ukbw5s673633hsw\\publaynet-tf_efficientdet_d0.pth.tar?dl=1.lock'

i saw that in this readme https://github.com/allenai/mmda/tree/main/examples/vila_for_scidoc_parsing#installation you mention to contact @shannons , but i can't find this contributor anywhere :]

@soldni
Copy link
Member

soldni commented Nov 10, 2023

@lolipopshock any suggestion on how to improve instructions here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants