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

regarding the dice_loss and the image shape #5

Closed
huaiyanggongzi opened this issue Nov 12, 2016 · 2 comments
Closed

regarding the dice_loss and the image shape #5

huaiyanggongzi opened this issue Nov 12, 2016 · 2 comments

Comments

@huaiyanggongzi
Copy link

Hi Edward,

When reading the code, I can see you use dice_coef for the performance metric. But I am not very clear why you need to setup dice_loss as -dice_coef.
Is that because the higher dice_coef is, the better is performance. As a result, you try to minimize its opposite, dice_loss. Is my understanding correct?

Secondly, why you setup IMG_ROWS, IMG_COLS = 80, 112. It seems to me the training set has rows=480,and cols=520.

Thanks,

@EdwardTyantov
Copy link
Owner

Hi huaiyanggongzi,

  1. The higher dice_coeff is - the better. Usually we need to minimize a loss function, which is in this case "-dice coeff" (so it's minimum is -1.0).
  2. to fit neural network in memory (with considerable batch_size) and reduce the computations. I simply resize the input images.

@huaiyanggongzi
Copy link
Author

Thanks.

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