abdur75648 / UTRNet-High-Resolution-Urdu-Text-Recognition

UTRNet: High-Resolution Urdu Text Recognition In Printed Documents (ICDAR'23)
https://abdur75648.github.io/UTRNet/
Other
43 stars 11 forks source link

Issue in read.py #6

Closed JehanzaibJ closed 1 month ago

JehanzaibJ commented 4 months ago

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
YaqoobIlyas commented 4 months ago

@JehanzaibJ Hi there, can you please tell me how you have run this project, as I am getting the below error:

error
Bilal143260 commented 1 month ago

@JehanzaibJ I am having the same issue. Were you able to find any solution?

YaqoobIlyas commented 1 month ago

nope

abdur75648 commented 1 month ago

Hi @YaqoobIlyas, I just checked it's working. You can also try this simple Colab Demo (Working as of 19/07/2024) - https://colab.research.google.com/drive/1cxctKu_geFjfm8wptDBIPwbhWPO2_7EY

Bilal143260 commented 1 month ago

image (43)

It never works on custom images

abdur75648 commented 1 month ago

Dear @Bilal143260 - It's not about 'custom images'. It's about printed vs hand-written! The title of our paper is High-Resolution Urdu Text Recognition In "Printed" Documents. Hope this explains.