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

predict failed for DAN model #8

Open
Johnson-yue opened this issue Feb 22, 2021 · 4 comments
Open

predict failed for DAN model #8

Johnson-yue opened this issue Feb 22, 2021 · 4 comments

Comments

@Johnson-yue
Copy link

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 ??

@Johnson-yue
Copy link
Author

Hi, I think the code for testing part have some bugs
such as :

  1. not set num_step variable in Line 298
  2. not used one_hot variable in Line 301
  3. not set prev_emb variable in Line 302
  4. fail to get one_hot variable in Line 301

@chibohe
Copy link
Owner

chibohe commented Feb 22, 2021

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.

@Johnson-yue
Copy link
Author

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。。。

@chibohe chibohe closed this as completed Jul 14, 2021
@chibohe
Copy link
Owner

chibohe commented Aug 17, 2021

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-network

you 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.

@chibohe chibohe reopened this Aug 17, 2021
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