predict failed for DAN model
Johnson-yue opened this issue · 4 comments
hi, I trained the DAN model and got good performance , but when I predicted with pretrained model
there is a error :
forward() missing 1 required positional augument: 'text'
And I check it in networks/DAN.py in line 42 :
why perdict need target text ??
Hi, I think the code for testing part have some bugs
such as :
- not set num_step variable in Line 298
- not used one_hot variable in Line 301
- not set prev_emb variable in Line 302
- fail to get one_hot variable in Line 301
hi, I trained the DAN model and got good performance , but when I predicted with pretrained model
there is a error :
forward() missing 1 required positional augument: 'text'
And I check it in networks/DAN.py in line 42 :
why perdict need target text ??
The predict.py has only been tested on CRNN and FAN, you can read DAN source code and make some modifications.
where is source code for DAN ?
did you reference here :https://github.com/Wang-Tianwei/Decoupled-attention-network
you don‘t have this parameter self.char_embeddings in training, maybe I have to training again。。。
where is source code for DAN ?
did you reference here :https://github.com/Wang-Tianwei/Decoupled-attention-networkyou don‘t have this parameter self.char_embeddings in training, maybe I have to training again。。。
where is source code for DAN ?
did you reference here :https://github.com/Wang-Tianwei/Decoupled-attention-networkyou don‘t have this parameter self.char_embeddings in training, maybe I have to training again。。。
The predict script for DAN has been implemented, please try again.