-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Changing kernel_size in the Segmentation example produce a crash #989
Comments
Hello, are you referring to the binary segmentation example (segmentation of the inside of triangles) or the more complete semantic segmentation example on #961? Are you using Caffe or Torch? Either way, if you change the kernel size (especially if you increase it) you need to make sure there are enough pixels in the input image to "survive" the successive convolutional layers. Review the formulas there to make sure your kernel size makes sense. |
Thanks for the quick reply. Yes it is the binary example, I was trying to take it apart to learn about it. Thanks for the link for the formulas, I do have to have a good read of it. Also, re-reading your comment, do you mean in the successive layers the image sizes have to be larger than the kernel size (which would make sense in my mind)? And it might be a very elementary question, but how do I know the images sizes in the successive layers? |
You would do this by applying the formulas. As explained on the example the first layer produces an output that has identical width/height as the input image. That is because we have I am closing the issue now. |
@gheinrich - Thanks for the detailed explanation, this is exactly what I was looking for. |
@gheinrich - one more thing while we're on this topic (and I promise I'll drop the subject) - are you aware of any link that addresses designing network architectures? |
You can check one of the online resources such as http://cs231n.stanford.edu/ or http://www.deeplearningbook.org/. I don't know of a guide to designing networks though. Like coding, it teaches a lot to understand how other people have solved their own problems so I recommend reviewing standard network architectures. If you're interested in image segmentation in DIGITS, have a look at this doc. |
@gheinrich - thanks again! |
Has anyone had this issue before? I get a crash every time I change the kernel size in the segmentation example. But it runs when defaults left as is.
thanks,
The text was updated successfully, but these errors were encountered: