style-transformer icon indicating copy to clipboard operation
style-transformer copied to clipboard

ValueError: E:\style-transformer\evaluator\acc_yelp.bin has wrong file format!

Open zhunipingan opened this issue 5 years ago • 3 comments

hi! Thanks for your code and paper, I get a lot from it. But when I run the code,I met the error ValueError: E:\style-transformer\evaluator\acc_yelp.bin has wrong file format! in the line self.classifier_yelp = fasttext.load_model(yelp_acc_file.name) , I know that you don't provide a file named ppl_yelp.binary, I just commented related code. I think maybe the file acc_yelp.bin has some format error? But I am not sure, looking forward to your reply, thanks!

zhunipingan avatar Dec 17 '19 02:12 zhunipingan

Hi! It seems that the fasttext changed their model configuration, so our model parameters cannot be loaded by the new version of the fasttext. To solve this issue, you can degrade your fasttext to 0.8.3, which is the version we used before.

KuNyaa avatar Dec 17 '19 11:12 KuNyaa

Thanks! I solved this problem successfully using your solution. Looking forward to your new work~

zhunipingan avatar Dec 19 '19 01:12 zhunipingan

can you tell me how to degrade fasttext to 0.8.3? thank u

HeyixInn avatar Jan 01 '24 09:01 HeyixInn