awei669

Results 22 comments of awei669

Maybe this can help you. https://github.com/kuanghuei/SCAN. Can you download the Pretrained Model?

Who can provide pre training download model? I can't download according to the link!

> FileNotFoundError: [Errno 2] No such file or directory: 'data\CASIA_CHINESE\Chinese_content.pkl' 大佬这又是因为什么a 需要重新给data重新设置一个软链接,原repo作者是链接到了他的data,首先使用命令移除掉这个软链接,```unlink data ```,然后使用命令```ln -s 被链接的文件或目录名称 链接名称```将data链接到你下载数据的地方,这样做可以避免移动数据集。 以下以我的机器为例子。

这个问题一般是lmdb根据key找不到对应的值,可以deubg看看是哪个键值对空了。 仔细检查lmdb和生成的train.json以及其它几个json文件是否正确。

检查train.json是否正确:

> 我也是这个问题,但是我的train下的数据不是稳定3000个,请问是不是这个的问题 最好保证所有的字体文件下的字符数量一致,你可以debug看看缺了哪些字符。如果数量不一致可能需要在生成lmdb时做相应的修改。

你好,有许多方式可以得到。 文字4.2.1中介绍过,通过计算码本向量与内容特征图的相似性,随后resize并叠加到到原图上。

content_font-内容字符图像所在路径,img_path-风格字符图像所在路径。

FID::参考论文-Gans trained by a two time-scale update rule converge to a nash equilibrium. In NeurIPS, 2017. LPIPS:参考论文-The unreasonable effectiveness of deep features as a perceptual metric. In CVPR, 2018. 计算方法均可以在网络上找到,这个repo没有提供评价指标部分的代码。

指定以下参数路径:模型参数weight、内容字体content_font、参考字符img_path、结果存储位置saving_root 随后运行 ```inference.sh``` 或 ``` python3 inference.py ./cfgs/custom.yaml \ --weight \path\to\saved_model.pdparams \ --content_font \path\to\content_imgs \ --img_path \path\to\test_imgs \ --saving_root ./infer_res ```