dailenson / SDT

This repository is the official implementation of Disentangling Writer and Character Styles for Handwriting Generation (CVPR 2023)
MIT License
968 stars 82 forks source link

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

Open yanziwu621 opened 9 months ago

yanziwu621 commented 9 months ago

如题。

dailenson commented 9 months ago

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

yanziwu621 commented 9 months ago

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

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

yanziwu621 commented 9 months ago

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

dailenson commented 9 months ago

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

brianyuastri commented 8 months ago

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