Skip to content
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

train.py文件的第98行代码的疑惑 #228

Open
hpc203 opened this issue Aug 4, 2020 · 1 comment
Open

train.py文件的第98行代码的疑惑 #228

hpc203 opened this issue Aug 4, 2020 · 1 comment

Comments

@hpc203
Copy link

hpc203 commented Aug 4, 2020

看train.py文件的第98行代码:
image = torch.FloatTensor(opt.batchSize, 3, opt.imgH, opt.imgH)
按照常理来说,应该是image = torch.FloatTensor(opt.batchSize, 3, opt.imgH, opt.imgW)
可是我改成这样之后重新训练,不收敛的。请问作者,这里的image为什么要定义成torch.FloatTensor(opt.batchSize, 3, opt.imgH, opt.imgH)而不是torch.FloatTensor(opt.batchSize, 3, opt.imgH, opt.imgW)呢?

@lmw0320
Copy link

lmw0320 commented Aug 17, 2020

我也很奇怪。。。这里不应该是imgH, imgW么,为什么会是两个imgH呢??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants