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

Problem in training with 'channels_first' mode #184

Open
biswa-iitg opened this issue Aug 21, 2019 · 3 comments
Open

Problem in training with 'channels_first' mode #184

biswa-iitg opened this issue Aug 21, 2019 · 3 comments

Comments

@biswa-iitg
Copy link

Is UNET model training using ResNet backbone is possible with 'channels_first' (3,H,W) mode? I am trying and the model is not learning. The same system trains well with 'channels_last' and input shape (H,W,3).

@qubvel
Copy link
Owner

qubvel commented Aug 21, 2019

Please provide a code example

@biswa-iitg
Copy link
Author

@qubvel Please find the code
train_aug_py.txt

@qubvel
Copy link
Owner

qubvel commented Aug 27, 2019

I have never try to train network with channels_first
You can do next:

  1. train network with channels_last and save weights
  2. create same network, but with channels_first and load weights

If an output is the same from both networks, the problem might be in loss function

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