Shad0wKillar commited on
Commit
eaa4650
·
verified ·
1 Parent(s): 14cb994

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -70,7 +70,7 @@ class ResNet18_CRNN(torch.nn.Module):
70
  CHARACTERS = ['<BLANK>', ' ', '!', '"', '#', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '?', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
71
 
72
  def load_ocr_model():
73
- weights_path = hf_hub_download(repo_id="Shad0wKillar/resnet18-crnn-ocr", filename="ResNet18_CRNN.pth")
74
 
75
  model = ResNet18_CRNN(
76
  input_height=96,
 
70
  CHARACTERS = ['<BLANK>', ' ', '!', '"', '#', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '?', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
71
 
72
  def load_ocr_model():
73
+ weights_path = hf_hub_download(repo_id="Shad0wKillar/resnet18-crnn-ocr", filename="model18_crnn_ocr.pth")
74
 
75
  model = ResNet18_CRNN(
76
  input_height=96,