question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to replace the best_accuracy.pth with arabic.pth ?

See original GitHub issue

I finetuned the Arabic model on my dataset : image and this is my config file:

number: '1234567890١٢٣٤٥٦٧٨٩٠'
symbol: ''
character:  "0123456789!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ٠١٢٣٤٥٦٧٨٩«»؟،؛ءآأؤإئااًبةتثجحخدذرزسشصضطظعغفقكلمنهوىيٱٹپچڈڑژکڭگںھۀہۂۃۆۇۈۋیېےۓە"
experiment_name: 'arabic' 
train_data: 'all_data/en_train_filtered'
valid_data: 'all_data/en_val'
manualSeed: 1111
workers: 6
batch_size: 2 
num_iter: 15
valInterval: 5
saved_model: '/content/drive/MyDrive/OCR Data/arabic.pth' 
FT: False
optim: False # default is Adadelta
lr: 1.
beta1: 0.9
rho: 0.95
eps: 0.00000001
grad_clip: 5
#Data processing
select_data: 'all_data/en_train_filtered' # this is dataset folder in train_data
batch_ratio: '1' 
total_data_usage_ratio: 1.0
batch_max_length: 34 
imgH: 64
imgW: 600
rgb: False
contrast_adjust: False
sensitive: True
PAD: True
contrast_adjust: 0.0
data_filtering_off: False
# Model Architecture
Transformation: 'None'
FeatureExtraction: 'ResNet'
SequenceModeling: 'BiLSTM'
Prediction: 'CTC'
num_fiducial: 20
input_channel: 1
output_channel: 512
hidden_size: 512
decode: 'greedy'
new_prediction: False
freeze_FeatureFxtraction: False
freeze_SequenceModeling: False

I go to the originally downloaded model here and replace it with my model : image

when i try to initialize the reader again i got this error: image

What is the correct way to replace the original model with my fine-tuned model?

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
amroghoneimcommented, Nov 29, 2022

@rkcosmos can you please check this out and give us any advice?

1reaction
amroghoneimcommented, Nov 29, 2022

Facing the same issue too still.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Measuring Parathyroid Hormone (PTH) in Patients with ... - NCBI
In some patients only 7% of traditionally measured PTH was free of oxidation, ... The mass accuracy was better than 5 ppm for...
Read more >
Parathyroid Hormone Test - Endocrine Surgery - UCLA Health
PTH is a test that measures the amount of PTH (parathormone) in blood. Alternative Names: Parathormone; Parathormone (PTH) intact molecule; Parathyroid hormone.
Read more >
Parathyroid hormone results interpretation in the background ...
In this paper, we highlight the importance of PTH standardization and the impact of establishing robust reference ranges for the accurate ...
Read more >
Hypoparathyroidism - Symptoms and causes - Mayo Clinic
Sometimes parathyroid hormone replacement is needed if supplements alone are not enough to bring levels into a normal range.
Read more >
Intraoperative Parathyroid Hormone (PTH) Testing
This was also a revolutionary change in parathyroid surgery, because with rapid PTH testing you didn't have to inject a foreign radioactive material...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found