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

error #14

Open
lajiji opened this issue Jul 4, 2021 · 1 comment
Open

error #14

lajiji opened this issue Jul 4, 2021 · 1 comment

Comments

@lajiji
Copy link

lajiji commented Jul 4, 2021

Hi, I used my own dataset for training, and the following error occurred.

Traceback (most recent call last):
File "train.py", line 138, in
trainer.train(generator, discriminator, int(config['trainer']['epochs']), args.data_root, args_config, 0) #训练策略
File "/home/lina/style/fewshot/FSPB/trainers.py", line 153, in train
self.test_on_full_image(generator, batch_num, data_root, config_yaml_name)
File "/home/lina/style/fewshot/FSPB/trainers.py", line 214, in test_on_full_image
0, 0, 0, 0, 0, generator(batch['pre'])
File "/home/lina/miniconda3/envs/fewshot/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/lina/style/fewshot/FSPB/models.py", line 123, in forward
output = self.upconv1(torch.cat((output, output_1), dim=1))
RuntimeError: Sizes of tensors must match except in dimension 2. Got 401 and 402 (The offending index is 0)

@coskuturhan
Copy link

I had the same error. Any recommendations on how to fix this?

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