SDT icon indicating copy to clipboard operation
SDT copied to clipboard

测试论文中中文6763个以外汉字生成效果,需要重新训练模型吗?

Open yanziwu621 opened this issue 2 years ago • 5 comments

如题。

yanziwu621 avatar Dec 05 '23 02:12 yanziwu621

不需要重新训练,我们的内容引导是基于图像的,只需要替换内容输入即可。

dailenson avatar Dec 05 '23 06:12 dailenson

您好,我想测试一下'䶭'这个字生成效果,在数据加载那里把这个汉字的dict和content img(64*64)更新进去了, self.content['䶭']=img_array self.char_dict=self.char_dict+'䶭'

但是出来的结果,不是这个字,出来结果如下: 36_䶭 46_䶭

yanziwu621 avatar Dec 08 '23 06:12 yanziwu621

self.content['䶭']=img_array 图64*64 如下 䶭

yanziwu621 avatar Dec 08 '23 06:12 yanziwu621

如果效果不好的话可以考虑fine-tune一下

dailenson avatar Dec 08 '23 08:12 dailenson

想問一下究竟是如何生成這些結果的呢?我嘗試了在 loader.py 加了 self.content['䶭']=img_array self.char_dict=self.char_dict+'䶭' 但在執行 test.py 的時候並沒有出現這個新字的圖像。

brianyuastri avatar Dec 20 '23 02:12 brianyuastri