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

some problems #14

Open
sunhan1997 opened this issue Oct 18, 2024 · 1 comment
Open

some problems #14

sunhan1997 opened this issue Oct 18, 2024 · 1 comment

Comments

@sunhan1997
Copy link

hello, I try to run this code by hugeface,but get some error:

UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
  return self.fget.__get__(instance, owner)()
Some weights of ViTModel were not initialized from the model checkpoint at facebook/deit-base-patch16-224 and are newly initialized: ['vit.pooler.dense.bias', 'vit.pooler.dense.weight']
You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
Fast image processor class <class 'transformers.models.vit.image_processing_vit_fast.ViTImageProcessorFast'> is available for this model. Using slow image processor class. To use the fast image processor class set `use_fast=True`.

In addition, how can i get the checkpoint?

@elicassion
Copy link
Contributor

Hi @sunhan1997

The TypedStorage thing is a warning and you can ignore it.

The Fast image processor is a new feature from huggingface and is optional. In the current code release we don’t use it.

To get pre-trained checkpoints, you can follow our quick start guide or visit https://huggingface.co/collections/theaiinstitute/theia-66a7a6ae80a707547c358cce

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