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

Model not training with resnet101 and resnet34 #4

Open
nys09 opened this issue Feb 8, 2020 · 0 comments
Open

Model not training with resnet101 and resnet34 #4

nys09 opened this issue Feb 8, 2020 · 0 comments

Comments

@nys09
Copy link

nys09 commented Feb 8, 2020

When I am trying to train the model with resnet101, I am getting the following error. Please help me figure this out.

0%| | 0/14848 [00:00<?, ?it/s]
Epoch 0: 0%| | 0/14848 [00:00<?, ?it/s]total images = 17469
create resnet101 model
Started training model from epoch 0
Traceback (most recent call last):
File "train_unet.py", line 251, in
train(train_loader, model, criterion, optimizer, validate, args)
File "train_unet.py", line 118, in train
masks_pred = model(input_var)
File "/opt/apps/Anaconda3/2019.03/envs/powerai16_ibm/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "/home/nys09/unet/unet_transfer.py", line 233, in forward
dec5 = self.dec5(torch.cat([center, conv5], 1))
RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1. Got 7 and 6 in dimension 2 at /opt/anaconda/conda-bld/pytorch_1551416914958/work/aten/src/THC/generic/THCTensorMath.cu:83

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

1 participant