Skip to content
Discussion options

You must be logged in to vote

As expected the solution is trivial.

The training script expects the name of the vocabulary e.g. "polish"

The parameter vocab= expects not the name of the language but the actual string containing vocabulary. In my case VOCAB["polish"].

So the working code looks like:

reco_model = vitstr_base(pretrained=False, vocab="polish")
reco_model.from_pretrained(
    f"{model_root_folder}FirstTrain.vl.0.0515268.pt", 
    map_location="cpu", 
    vocab=VOCAB["polish"], 
)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by neojg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant