Comments (3)
你在推断的时候out = wnet(src_tensor, target_tensor),输入了target的tensor,这是不是影响结果了。
正常推断不是只有src么
推断的时候,需要提供两个信息,一个是字体,一个是字,所以是两个输入
from w-net-pytorch.
你的target_tensor是
target_img = generate_img(target_word, target_font_file, font_size=60)
target_tensor = totensor(target_img).unsqueeze(0)
这么得到的,送入到网络forward
def forward(self, lx, rx):
rout = self.right(rx)
...
de_0 = self.deconv1(torch.cat([lout_5, rout_5], dim=1))
...
return de...
这里网络就加载了tgt_tensor
from w-net-pytorch.
你的target_tensor是
target_img = generate_img(target_word, target_font_file, font_size=60) target_tensor = totensor(target_img).unsqueeze(0)
这么得到的,送入到网络forward
def forward(self, lx, rx): rout = self.right(rx) ... de_0 = self.deconv1(torch.cat([lout_5, rout_5], dim=1)) ... return de...
这里网络就加载了tgt_tensor
对,这个地方确实写错了,谢谢指正
from w-net-pytorch.
Related Issues (14)
- 大佬麻烦补充一下开发环境,用到的模块的版本。 HOT 1
- 关于原文中的oft,ttf文件的转换
- ValueError: Using a target size (torch.Size([46])) that is different to the input size (torch.Size([46, 1])) is deprecated. Please ensure they have the same size. HOT 1
- 询问图片问题
- 请问训练数据怎么获取?
- 你好 缺少model_epoch_50_loss_0.3724613007571962.pth 文件,请问在哪里可以找到? HOT 1
- 如果想把不同人抄写的同一句话产生的字全部转成标准的宋体该怎么处理训练数据呢?
- 请问有没有和zi2zi的比较过 HOT 1
- 请问原论文是..... HOT 1
- 后续还会更新么 HOT 1
- 微调/重新训练 HOT 1
- 请教 HOT 4
- 关于论文中的vgg HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from w-net-pytorch.