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 my own data #20

Closed
justinner opened this issue Jan 11, 2019 · 1 comment
Closed

train my own data #20

justinner opened this issue Jan 11, 2019 · 1 comment

Comments

@justinner
Copy link

Hi,DrSleep,
I want to train model using my own dataset,and I just want to 2 number class,when I changed the parameters in config.py,an error occured as flowing:

size mismatch for module.clf_conv.bias: copying a param with shape torch.Size([40]) from checkpoint, the shape in current model is torch.Size([2]).

in addition,when my label image is  binarized image,is the reason that the error occured?

ValueError: operands could not be broadcast together with remapped shapes [original->remapped]: (2,2) and requested shape (3,2).

hope your help,thanks very much.
@DrSleep
Copy link
Owner

DrSleep commented Jan 15, 2019

size mismatch for module.clf_conv.bias: copying a param with shape torch.Size([40]) from checkpoint, the shape in current model is torch.Size([2]).

this indicates that you are trying to load in the checkpoint pre-trained on NYU (with 40 classes).

in addition,when my label image is binarized image,is the reason that the error occured?
ValueError: operands could not be broadcast together with remapped shapes [original->remapped]: (2,2) and requested shape (3,2).

What do you mean by binarised label image? This should not affect anything as long as your masks are of the shape HxW.
Knowing where the ValueError is coming from would be helpful

@DrSleep DrSleep closed this as completed Feb 10, 2019
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