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

Unknown model (kat_tiny_patch16_224) #5

Open
Rooike111 opened this issue Sep 22, 2024 · 2 comments
Open

Unknown model (kat_tiny_patch16_224) #5

Rooike111 opened this issue Sep 22, 2024 · 2 comments

Comments

@Rooike111
Copy link

import timm

model = timm.create_model("hf_hub:adamdad/kat_tiny_patch16_224.vitft", pretrained=True)

RuntimeError: Unknown model (kat_tiny_patch16_224)
sorry,when i want download your model then ,can you help me?

@Adamdad
Copy link
Owner

Adamdad commented Sep 22, 2024

Hello @Rooike111,

Thank you for your question. Please follow the steps below:

  1. First, clone the repository using the following command:
git clone https://github.com/Adamdad/kat.git

and install the envs as required

  1. After cloning, navigate to the repository and use the example.py script to get started.

Reasons

The issue arises because the katransformer module needs to be imported for the model kat_tiny_patch16_224 to be registered in timm. Without this import, the model won't be recognized. Make sure to import katransformer before creating the model:

import katransformer
import timm

model = timm.create_model("hf_hub:adamdad/kat_tiny_patch16_224.vitft", pretrained=True)

If you have any further questions or run into issues, feel free to ask!

@afifahossain
Copy link

afifahossain commented Sep 26, 2024

Hello @Adamdad I followed your instructions and still getting the error 'RuntimeError: Unknown model (kat_tiny_patch16_224)'. Can you please kindly help me?

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

3 participants