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

OSError: vikp/surya_det3 does not appear to have a file named pytorch_model.bin... #516

Closed
menezes- opened this issue Jan 30, 2025 · 1 comment

Comments

@menezes-
Copy link

Hi!

After updating to version 1.3.3, when trying to use the library from Python code (as the docs suggest) I keep getting this error:

   File "/python3.13/site-packages/marker/models.py", line 18, in create_model_dict
     "detection_model": DetectionPredictor(device=device, dtype=dtype),
                        ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/python3.13/site-packages/surya/common/predictor.py", line 23, in __init__
     self.model = loader.model(device, dtype)
                  ~~~~~~~~~~~~^^^^^^^^^^^^^^^
   File "/python3.13/site-packages/surya/detection/loader.py", line 33, in model
     model = EfficientViTForSemanticSegmentation.from_pretrained(
         self.checkpoint,
     ...<2 lines>...
         revision=self.revision
     )
   File "/python3.13/site-packages/transformers/modeling_utils.py", line 3880, in from_pretrained
     raise EnvironmentError(
     ...<3 lines>...
     )
 OSError: vikp/surya_det3 does not appear to have a file named pytorch_model.bin, model.safetensors, tf_model.h5, model.ckpt or flax_model.msgpack.

Any suggestions on how to fix this? Thanks!

@menezes-
Copy link
Author

This was an issue on my setup

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

1 participant