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
why the input image of generator contains target text ? #25
Comments
It is concatenated for the ease of processing, they are splitted before input into encoder. |
@kaonashi-tyc |
The inference still accept a 6 channel input, however the target part of will not be used or have any effect on the output, it is just easier to reuse the preprocessing code for inference as well. |
@kaonashi-tyc That's what confusing me ,in my test, the target part does make the output different, this is my code:
img is the input, you will get different result every time, but the difference was not so big. if you change the code of img_pad
you will get same result every time. |
what is your purpose of this code ? mat = misc.imread('my.jpg').astype(np.float) do you want to use "my.jpg" instead of the input font in font2img? |
@xsmxsm |
in author's code , it acquire characters from a line file, then transfer them into images , do you mean you jump the step of font2img.py , and use your own images replace the generated images ? then what the style of characters in your images? can it use someone handwriting characters make the images? then do you do the step of package.py ? and do you train them or you just use the author's trained result,and infer them? can you show me your whole code in your infer ? 作者的font2img.py文件中,获取的是中文汉字集中的汉字或者是一个文档中输入的一行汉字然后转换成图片格式,你是跳过了这一步然后用自己的图片代替了这些图片吗?那你自己的图片中的字体是什么字体呢?可以是自己手写的字体拍成照片制作的吗? 你有没有进行package.py和train.py这两步呢? 你的这段代码是添加进infer.py文件中的吗?可不可以给我看看你的整体代码是怎样的? 多谢! |
@xsmxsm |
in infer , it just has these parameters: (below is in my code , ) python infer.py --model_dir=font_27 if you do the three steps before infer.py , it already has files train.obj or val.obj , thank you so much |
@xsmxsm |
the shape of input is (batch_size,256,256,6), the first 3 chanels is image of target font, why?I thought it would make generator cheat...
In my test, if set all value of first 3 chanels to zero. the image generated was not the same, although the difference was not big as I thought, that is not what we expect,right?
The text was updated successfully, but these errors were encountered: