Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CTC error #34

Open
LeeBronOff23 opened this issue Oct 23, 2022 · 1 comment
Open

CTC error #34

LeeBronOff23 opened this issue Oct 23, 2022 · 1 comment

Comments

@LeeBronOff23
Copy link

LeeBronOff23 commented Oct 23, 2022

Hi. Appreciate your contribution, but I have a problem When using the CTC:

CUDA_VISIBLE_DEVICES=4 python3 train.py --batch_ratio 1 --Transformation None --FeatureExtraction None --SequenceModeling None --Prediction CTC --Transformer --TransformerModel=vitstr_tiny_patch16_224 --imgH 224 --imgW 224 --manualSeed=27720

error:
Traceback (most recent call last):
File "train.py", line 320, in
train(opt)
File "train.py", line 175, in train
preds = model(image, text)
UnboundLocalError: local variable 'text' referenced before assignment

@roatienza
Copy link
Owner

Sorry, the CTC prediction is not supported in vitstr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants