UTRNet-High-Resolution-Urdu-Text-Recognition icon indicating copy to clipboard operation
UTRNet-High-Resolution-Urdu-Text-Recognition copied to clipboard

Issue in read.py

Open JehanzaibJ opened this issue 2 months ago • 1 comments

Hello, Thankyou for the code. I have tried to run this line to read image and get output in a .txt file, but I didnt get any text urdu output.

CUDA_VISIBLE_DEVICES=0 python3 read.py --image_path path/to/image.png --FeatureExtraction HRNet --SequenceModeling DBiLSTM --Prediction CTC --saved_model saved_models/UTRNet-Large/best_norm_ED.pth

This is the output I received:


CUDA_VISIBLE_DEVICES=0 python3 read.py --image_path images/page_2.png --FeatureExtraction HRNet --SequenceModeling DBiLSTM --Prediction CTC  --saved_model saved_models/best_norm_ED.pth
Device :  cuda
model input parameters 32 400 20 1 32 256 182 100 HRNet DBiLSTM CTC
Loaded pretrained model from saved_models/best_norm_ED.pth
5

JehanzaibJ avatar Apr 17 '24 07:04 JehanzaibJ