how to download this model,anyone can tell me details,thanks lots
#8
by
okgood2023
- opened
how to download this model,anyone can tell me details,thanks lots
processor = TrOCRProcessor.from_pretrained('microsoft/trocr-base-printed')
model = VisionEncoderDecoderModel.from_pretrained('microsoft/trocr-base-printed').to(device)
or
go to https://huggingface.co/microsoft/trocr-base-printed/tree/main and download the safetensor along with config file