concept boundary in category deep learning

appears as: boundaries, boundary
Deep Learning for Vision Systems

This is an excerpt from Manning's book Deep Learning for Vision Systems.

To answer this question, let’s first define the bounding box. It is the box that surrounds the object and is identified by the following tuple (x, y, w, h). Where the x and y are the coordinates in the image that describes the center of the bounding box and the h and w are the height and width of the bounding box. Researchers found that defining the (x, y) coordinates of the center point could be challenging because we have to enforce some rules to make sure that the network predicts values inside the boundaries of the image. Instead, we can create reference boxes called anchor boxes in the image and make the regression layer predict the offsets from these boxes called deltas  (Δx,Δy,Δw,Δh)  to adjust the anchor boxes to better fit the object to get the final proposals.

In the next section we will explore some example applications of using visual embeddings for large scale query-retrieval systems. Then we will dive deeper into the different components of the visual embedding systems: loss functions, mining informative data, training and testing the embedding network. Subsequently we will use these concepts to solve our chapter project on building visual embedding based query-retrieval systems. Thereafter we will even explore approaches to push the boundaries of your project's network accuracy. By the end of this chapter, you will be able to train a CNN to obtain a reliable and meaningful embedding and use it in real-world applications.

Deep Learning with PyTorch

This is an excerpt from Manning's book Deep Learning with PyTorch.

8.2.1 Padding the boundary

The fact that our output image is smaller than the input is a side effect of deciding what to do at the boundary of the image. Applying a convolution kernel as a weighted sum of pixels in a 3 × 3 neighborhood requires that there are neighbors in all directions. If we are at i00, we only have pixels to the right of and below us. By default, PyTorch will slide the convolution kernel within the input picture, getting width - kernel_width + 1 horizontal and vertical positions. For odd-sized kernels, this results in images that are one-half the convolution kernel’s width (in our case, 3//2 = 1) smaller on each side. This explains why we’re missing two pixels in each dimension.