<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://sepideh.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://sepideh.io/" rel="alternate" type="text/html" /><updated>2026-11-27T14:02:59+01:00</updated><id>https://sepideh.io/feed.xml</id><title type="html">Sepideh Shamsizadeh</title><subtitle>Physical AI and robotics engineer in Zurich: robot perception, multimodal sensor fusion and edge AI.</subtitle><author><name>Sepideh Shamsizadeh</name></author><entry><title type="html">Designing a Self-Driving Car: From Sensors to Autonomous Navigation</title><link href="https://sepideh.io/designing-a-self-driving-car/" rel="alternate" type="text/html" title="Designing a Self-Driving Car: From Sensors to Autonomous Navigation" /><published>2026-11-24T00:00:00+01:00</published><updated>2026-11-24T00:00:00+01:00</updated><id>https://sepideh.io/designing-a-self-driving-car</id><content type="html" xml:base="https://sepideh.io/designing-a-self-driving-car/"><![CDATA[]]></content><author><name>Sepideh Shamsizadeh</name></author><summary type="html"><![CDATA[A system design walkthrough for Level 4 autonomous driving, from cameras, LiDAR, and radar to sensor fusion, path planning, and vehicle control.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://sepideh.io/images/blog/designing-a-self-driving-car.png" /><media:content medium="image" url="https://sepideh.io/images/blog/designing-a-self-driving-car.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Part III — Composing Rotations: Euler Angles and Roll–Pitch–Yaw</title><link href="https://sepideh.io/composing-rotations-euler-angles-roll-pitch-yaw/" rel="alternate" type="text/html" title="Part III — Composing Rotations: Euler Angles and Roll–Pitch–Yaw" /><published>2025-12-14T00:00:00+01:00</published><updated>2025-12-14T00:00:00+01:00</updated><id>https://sepideh.io/composing-rotations-euler-angles-roll-pitch-yaw</id><content type="html" xml:base="https://sepideh.io/composing-rotations-euler-angles-roll-pitch-yaw/"><![CDATA[]]></content><author><name>Sepideh Shamsizadeh</name></author><summary type="html"><![CDATA[Kinematics series, part III. Composing rotations, Euler angles and roll–pitch–yaw, and recovering the angles from a rotation matrix.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://sepideh.io/images/blog/kinematics-part-3.jpg" /><media:content medium="image" url="https://sepideh.io/images/blog/kinematics-part-3.jpg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Part II — Inside Rotation Matrices: Axes, Frames, and Coordinate Transformations</title><link href="https://sepideh.io/inside-rotation-matrices/" rel="alternate" type="text/html" title="Part II — Inside Rotation Matrices: Axes, Frames, and Coordinate Transformations" /><published>2025-11-27T00:00:00+01:00</published><updated>2025-11-27T00:00:00+01:00</updated><id>https://sepideh.io/inside-rotation-matrices</id><content type="html" xml:base="https://sepideh.io/inside-rotation-matrices/"><![CDATA[]]></content><author><name>Sepideh Shamsizadeh</name></author><summary type="html"><![CDATA[Kinematics series, part II. Rotations about the axes, change of basis, and the difference between rotating a frame and rotating a vector.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://sepideh.io/images/blog/kinematics-part-2.jpg" /><media:content medium="image" url="https://sepideh.io/images/blog/kinematics-part-2.jpg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Part I — How Robots Understand Space: Kinematics and Rotation Matrices</title><link href="https://sepideh.io/robot-kinematics-rotation-matrices/" rel="alternate" type="text/html" title="Part I — How Robots Understand Space: Kinematics and Rotation Matrices" /><published>2025-11-10T00:00:00+01:00</published><updated>2025-11-10T00:00:00+01:00</updated><id>https://sepideh.io/robot-kinematics-rotation-matrices</id><content type="html" xml:base="https://sepideh.io/robot-kinematics-rotation-matrices/"><![CDATA[]]></content><author><name>Sepideh Shamsizadeh</name></author><summary type="html"><![CDATA[Kinematics series, part I. Position, orientation and reference frames, and how rotation matrices transform coordinates between frames.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://sepideh.io/images/blog/kinematics-part-1.jpg" /><media:content medium="image" url="https://sepideh.io/images/blog/kinematics-part-1.jpg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Setup and Troubleshooting of Raspberry Pi Camera Module v2.1 (IMX219) on Ubuntu 24.04 LTS</title><link href="https://sepideh.io/raspberry-pi-camera-ubuntu/" rel="alternate" type="text/html" title="Setup and Troubleshooting of Raspberry Pi Camera Module v2.1 (IMX219) on Ubuntu 24.04 LTS" /><published>2025-10-25T00:00:00+02:00</published><updated>2025-10-25T00:00:00+02:00</updated><id>https://sepideh.io/raspberry-pi-camera-ubuntu</id><content type="html" xml:base="https://sepideh.io/raspberry-pi-camera-ubuntu/"><![CDATA[]]></content><author><name>Sepideh Shamsizadeh</name></author><summary type="html"><![CDATA[Getting the Raspberry Pi Camera Module v2.1 (IMX219) to work on Ubuntu 24.04 LTS: setup steps and fixes for common problems.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://sepideh.io/images/blog/raspberry-pi-camera.jpg" /><media:content medium="image" url="https://sepideh.io/images/blog/raspberry-pi-camera.jpg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">ROS 2 Humble in Docker: Setup Commands</title><link href="https://sepideh.io/blog-post-5/" rel="alternate" type="text/html" title="ROS 2 Humble in Docker: Setup Commands" /><published>2023-11-24T00:00:00+01:00</published><updated>2023-11-24T00:00:00+01:00</updated><id>https://sepideh.io/blog-post-5</id><content type="html" xml:base="https://sepideh.io/blog-post-5/"><![CDATA[<p>mkdir ~/docker_rosHum</p>

<p>cd ~/docker_rosHum</p>

<p>touch Dockerfile</p>

<p>echo ‘FROM osrf/ros:humble-desktop-full\nARG USER=user\nARG DEBIAN_FRONTEND=noninteractive\nRUN apt-get update &amp;&amp; apt-get install -y \\n    &amp;&amp; apt-get update \\n    &amp;&amp; apt-get upgrade -y \\n    &amp;&amp; apt-get install -y python3-pip \\n    &amp;&amp; apt-get install -y terminator \n\nENV SHELL /bin/bash\nUSER $USERNAME’ &gt; Dockerfile</p>

<p>docker build ~/docker_rosHum ros-humble-container</p>

<p>mkdir ~/Volumes</p>

<p>docker run -it –privileged –rm –user=$(id -u $USER):$(id -g $USER) –env=”DISPLAY” –volume=”/etc/group:/etc/group:ro” –volume=”/etc/passwd:/etc/passwd:ro” –volume=”/etc/shadow:/etc/shadow:ro” –volume=”/etc/sudoers.d:/etc/sudoers.d:ro” –net host -v /home:/home -v ~/Volumes:/home/usr/ ros-humble-container</p>

<p>mkdir -p robot_ws/src</p>

<p>cd robot_ws</p>

<p>colcon build #(build log install)</p>

<p>cd src 
ros2 pkg create –build-type ament_python robot_py_codes
ros2 pkg create –build-type ament_cmake robot_cpp_codes</p>

<p>cd ..</p>

<p>colcon build</p>

<p>#in a new terminal to source the environment to recognize our packages
. install/setup.bash</p>

<h2 id="simple-publisher-python">Simple Publisher Python</h2>

<h1 id="create-a-new-file-simple_publisherpy-inside-srcrobot_py_codesrobot_py_codes">create a new file simple_publisher.py inside src/robot_py_codes/robot_py_codes</h1>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>import rclpy
from rclpy.node import Node
from std_msgs.msg import String 

class SimplePublisher(Node):
    def __init__(self):
        super().__init__('simple_publisher')

        self.pub_ = self.create_publisher(String , "chatter", 10)

        self.counter_ = 0
        self.frequency_ = 1.0
        self.get_logger().info("Publishing at %d Hz" % self.frequency_)

        self.timer = self.create_timer(self.frequency_, self.timerCallback)
    

    def timerCallback(self):
        msg = String()
        msg.data = "Hello ROS 2 - counter: %d" % self.counter_

        self.pub_.publish(msg)
        self.counter_ += 1

def main():
    rclpy.init()
    simple_publisher = SimplePublisher()
    rclpy.spin(simple_publisher)
    simple_publisher.destroy_node()
    rclpy.shutdown()

if __name__ == '__main__':
    main()

</code></pre></div></div>

<h1 id="to-execute-the-code">To execute the code</h1>
<p>inside src/robot_py_codes/setup.py
change   <br />
entry_points={
        ‘console_scripts’: [
            ],
    },
to 
    entry_points={
        ‘console_scripts’: [
            ‘simple_publisher = bumperbot_py_examples.simple_publisher:main’
],
    },</p>

<p>and</p>

<p>add the following lines to package.xml</p>
<exec_depend>rclpy</exec_depend>
<exec_depend>std_msgs</exec_depend>

<p>then in terminal 
cd /robot_ws
colcon build</p>

<p>new terminal
. install/setup.bash</p>

<p>then
ros2 run robot_py_codes simple_publisher</p>

<p>on another terminal 
ros2 topic echo /chatter</p>]]></content><author><name>Sepideh Shamsizadeh</name></author><summary type="html"><![CDATA[Commands to build a ROS 2 Humble Docker image and create a first workspace with Python and C++ packages.]]></summary></entry><entry><title type="html">Semantic Segmentation: A TensorFlow Exploration of FCN and Transfer Learning</title><link href="https://sepideh.io/semantic-segmentation-tensorflow-fcn/" rel="alternate" type="text/html" title="Semantic Segmentation: A TensorFlow Exploration of FCN and Transfer Learning" /><published>2023-11-02T00:00:00+01:00</published><updated>2023-11-02T00:00:00+01:00</updated><id>https://sepideh.io/semantic-segmentation-tensorflow-fcn</id><content type="html" xml:base="https://sepideh.io/semantic-segmentation-tensorflow-fcn/"><![CDATA[]]></content><author><name>Sepideh Shamsizadeh</name></author><summary type="html"><![CDATA[Fully convolutional networks in TensorFlow: FCN-8, FCN-16 and FCN-32 on a VGG16 encoder, evaluated with IoU and Dice score.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://sepideh.io/images/blog/semantic-segmentation-fcn.jpg" /><media:content medium="image" url="https://sepideh.io/images/blog/semantic-segmentation-fcn.jpg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">Image Segmentation</title><link href="https://sepideh.io/blog-post-3/" rel="alternate" type="text/html" title="Image Segmentation" /><published>2023-10-18T00:00:00+02:00</published><updated>2023-10-18T00:00:00+02:00</updated><id>https://sepideh.io/blog-post-3</id><content type="html" xml:base="https://sepideh.io/blog-post-3/"><![CDATA[<p>Image segmentation is a sophisticated technique in computer vision that involves partitioning an image into distinct, meaningful regions. Its primary objective is to analyze and understand the visual content within an image by assigning specific labels to different parts of the scene. This process aids in extracting valuable information for various applications, such as object recognition, scene understanding, and autonomous navigation.</p>

<h2 id="types-of-image-segmentation">Types of Image Segmentation:</h2>

<ol>
  <li><strong>Semantic Segmentation:</strong>
    <ul>
      <li><strong>Definition:</strong> Semantic segmentation entails the classification of each pixel in an image, assigning it to a predefined class. This approach offers a fine-grained understanding of the visual content by associating distinct labels with different objects or regions within the scene.</li>
      <li><strong>Application:</strong> Ideal for tasks where a comprehensive understanding of object boundaries and categories is essential, such as in medical image analysis or scene parsing.</li>
    </ul>
  </li>
  <li><strong>Instance Segmentation:</strong>
    <ul>
      <li><strong>Definition:</strong> Building upon semantic segmentation, instance segmentation not only classifies pixels but also discriminates between individual instances of the same class. This means that each occurrence of an object is uniquely identified and labeled.</li>
      <li><strong>Application:</strong> Particularly useful in scenarios where distinguishing between multiple instances of objects is crucial, such as in robotics, surveillance, or any application requiring precise object localization.</li>
    </ul>
  </li>
  <li><strong>Panoptic Segmentation:</strong>
    <ul>
      <li><strong>Definition:</strong> Panoptic segmentation is a holistic approach that combines elements of both semantic and instance segmentation. Its goal is to cover the entire scene by assigning a unique label to each pixel, whether it belongs to a “thing” (an object with a distinct instance) or “stuff” (background elements).</li>
      <li><strong>Application:</strong> Offers a comprehensive understanding of the entire visual scene, making it beneficial for applications like autonomous driving, where recognizing both objects and the surrounding environment is vital.</li>
    </ul>
  </li>
</ol>

<p>These segmentation techniques play a pivotal role in advancing computer vision capabilities, enabling machines to perceive and interpret visual information with a level of sophistication akin to human understanding.</p>

<h2 id="high-level-architecture-of-image-segmentation-breaking-itdown">High-Level Architecture of Image Segmentation: Breaking it Down</h2>
<p>In the realm of image segmentation, we follow a high-level architecture known as an encoder-decoder structure.</p>
<h3 id="encoder-unveiling-features">Encoder - Unveiling Features:</h3>
<p>The encoder acts as a feature extractor, usually implemented with a Convolutional Neural Network (CNN). This part extracts features from the image, forming what we call a “feature map.” The initial layers focus on low-level features like lines, gradually aggregating them into more complex features like eyes and ears. This aggregation is facilitated by downsampling, akin to reducing pixel representation - like when your video chat gets a bit grainy but still allows you to recognize your friend through those key features.</p>

<h3 id="decoder-crafting-predictions">Decoder - Crafting Predictions: </h3>
<p>Now, let’s move to the decoder. Its role is to take these extracted features and generate the model’s output or prediction. Like the encoder, the decoder is also a convolutional neural network. It assigns intermediate class labels to each pixel in the downsized feature map. Then, it begins the intricate task of upsampling, gradually reintroducing the fine-grained details of the original image. This process continues until the image is restored to its original dimensions.</p>

<h3 id="final-touch-pixel-wise-labels">Final Touch - Pixel-Wise Labels:</h3>
<p>The ultimate result is a pixel-wise labeled map. Each pixel is assigned a final class label, capturing the essence of what that pixel represents in the broader context of the image.</p>

<p>In simpler terms, think of the encoder as an investigator, diligently extracting clues (features) from the image. The decoder is the storyteller, piecing together these clues to reveal the complete narrative - pixel by pixel. This architecture, with its encoder and decoder dance, forms the backbone of image segmentation algorithms, providing us with detailed, pixel-level insights into visual data.</p>

<h2 id="popular-architectures-for-image-segmentation">Popular Architectures for Image Segmentation</h2>
<h3 id="fully-convolutional-neural-networks-fcn">Fully Convolutional Neural Networks (FCN):</h3>
<p><img src="/images/FCN.png" alt="alt text" height="400" /></p>

<ul>
  <li><strong>Definition:</strong> FCNs are neural networks designed for semantic segmentation. The key innovation is replacing fully-connected layers with convolutional layers acting as both encoder and decoder. Encoder layers detect features and downscale the image, while the decoder layers upscale the image, creating a pixel-wise labeled map.
    <ul>
      <li><strong>Encoder:</strong> Feature extractors, such as VGG16, ResNet 50, or MobileNet, are used in the encoder part. These layers can be pre-trained and reused.</li>
      <li><strong>Decoder:</strong> The decoder is denoted as FCN-32, FCN-16, or FCN-8, indicating the stride size during upsampling. Smaller stride sizes result in more detailed processing.
        <h3 id="stride-in-convolutional-layer">Stride in Convolutional Layer:</h3>
      </li>
    </ul>
  </li>
  <li><strong>Definition:</strong> Stride determines how many pixels the sliding window shifts as it traverses the image during convolution. Smaller strides lead to more detailed processing.
    <h3 id="segnet">SegNet:</h3>
    <p><img src="/images/segnet.png" alt="alt text" height="400" /></p>
  </li>
  <li><strong>Definition:</strong> SegNet is a network for image segmentation similar to FCN but with symmetric encoder and decoder layers. Each pooling layer in the encoder has a corresponding upsampling layer in the decoder, creating a mirrored structure.
    <h3 id="u-net">U-Net:</h3>
    <p><img src="/images/U-net.png" alt="alt text" height="400" /></p>
  </li>
  <li><strong>Definition:</strong> U-Net is another architecture for semantic segmentation with a symmetric design. It has an equal number of stages for upsampling and downsampling. The name “U-Net” reflects the architecture’s U-shaped structure.</li>
</ul>

<h3 id="mask-r-cnn">Mask R-CNN:</h3>
<p><img src="/images/maskRCNN.png" alt="alt text" height="400" /></p>

<ul>
  <li><strong>Definition:</strong> Mask R-CNN is an architecture for instance segmentation, building upon Faster R-CNN used in object detection. It adds an additional branch for upsampling after feature extraction to produce pixel-wise segmentation masks, transforming the object detection model into an image segmentation model.</li>
</ul>]]></content><author><name>Sepideh Shamsizadeh</name></author><summary type="html"><![CDATA[An introduction to image segmentation: dividing an image into meaningful regions for recognition, scene understanding and navigation.]]></summary></entry><entry><title type="html">Summary of Fully Convolutional Networks for Semantic Segmentation</title><link href="https://sepideh.io/blog-post-4/" rel="alternate" type="text/html" title="Summary of Fully Convolutional Networks for Semantic Segmentation" /><published>2023-10-18T00:00:00+02:00</published><updated>2023-10-18T00:00:00+02:00</updated><id>https://sepideh.io/blog-post-4</id><content type="html" xml:base="https://sepideh.io/blog-post-4/"><![CDATA[<p>The paper discusses “<a href="https://arxiv.org/pdf/1411.4038.pdf">Fully Convolutional Networks for Semantic Segmentation”</a> by Jonathan Long, Evan Shelhamer, and Trevor Darrell from UC Berkeley. The authors introduce fully convolutional networks (FCNs) as a powerful approach for semantic segmentation, surpassing existing methods in pixel-wise prediction. The key innovation is to replace fully-connected layers with convolutional layers, allowing for end-to-end training and efficient inference on arbitrary-sized inputs. The FCN architecture incorporates both deep, coarse semantic information and shallow, fine appearance information for accurate segmentations. The paper reviews related work, emphasizes the efficiency of fully convolutional training over patchwise methods, and demonstrates state-of-the-art results on various datasets. The authors compare their approach to adaptations of deep classification nets for semantic segmentation, highlighting the end-to-end learning capability of FCNs.</p>

<h2 id="fully-convolutional-networks-summary">Fully convolutional networks Summary</h2>
<p>In Section 3, the paper introduces fully convolutional networks (FCNs) and their key components. Each layer in a convolutional network is a 3D array, and FCNs are built on translation invariance, utilizing convolution, pooling, and activation functions. FCNs naturally operate on inputs of any size and produce corresponding spatial outputs.</p>

<p>The paper explains how to adapt typical classifiers for dense prediction, transforming fully connected layers into convolutional layers. This allows the network to output classification maps for inputs of any size, providing efficiency advantages.</p>

<p>Shift-and-stitch is introduced as a trick for dense predictions without interpolation, but the paper prefers in-network upsampling using deconvolution layers. Upsampling with factor f is described as convolution with a fractional input stride of 1/f.</p>

<p>Patchwise training, a form of loss sampling in stochastic optimization, is discussed. Both patchwise and fully-convolutional training can produce any distribution, but their computational efficiency depends on factors like overlap and minibatch size. The paper explores the use of sampling in patchwise training to address class imbalance and spatial correlation but finds that, in their experiments, whole image training remains effective and efficient for dense prediction.</p>

<h3 id="31-adapting-classifiers-for-dense-prediction">3.1 Adapting classifiers for dense prediction</h3>

<p><img src="/images/FCN2.png" alt="alt text" height="400" /></p>

<p>Figure 2, Transforming fully connected layers into convolution layers enables a classification net to output a heatmap.</p>

<p>In section 3.1, the paper discusses the adaptation of typical recognition networks, such as LeNet, AlexNet, and their successors, for dense prediction tasks. The fully connected layers in these networks, originally designed for fixed-sized inputs, can be viewed as convolutions covering their entire input regions. This transformation turns them into fully convolutional networks capable of taking inputs of any size and producing classification maps.</p>

<p>The illustration in Figure 2 depicts the convolutionalization process, showing how fully connected layers can output heatmaps. This adaptation allows classification nets to efficiently produce dense predictions. The computational efficiency is highlighted by comparing the processing times of the original net and its fully convolutional version.</p>

<h3 id="32-shift-and-stitch-is-filter-rarefaction">3.2 Shift-and-stitch is filter rarefaction</h3>
<p>In section 3.2, the paper discusses the “shift-and-stitch” technique, a method to obtain dense predictions without interpolation. It involves shifting the input for each value of (x, y) in a specific range. While it achieves denser outputs, it comes with trade-offs, including longer computation times.</p>

<h3 id="33-upsampling-is-backwards-strided-convolution">3.3 Upsampling is backwards strided convolution</h3>
<p>In section 3.3, the paper discusses the concept of upsampling in the context of connecting coarse outputs to dense pixels. Upsampling is likened to backwards strided convolution, where the fractional input stride of 1/f is achieved through convolution with a fractional output stride of f. When f is integral, upsampling can be effectively performed using backwards convolution (or deconvolution), which reverses the forward and backward passes of convolution.</p>

<h3 id="34-patchwise-training-is-loss-sampling">3.4 Patchwise training is loss sampling</h3>
<p>In section 3.4, the paper discusses patchwise training as a form of loss sampling in stochastic optimization. Both patchwise and fully-convolutional training can produce various distributions, with computational efficiency influenced by factors like overlap and minibatch size.</p>

<h2 id="segmentation-architecture-summary">Segmentation Architecture Summary</h2>

<p>In section 4, the paper discusses the segmentation architecture, focusing on adapting ILSVRC classifiers into FCNs for dense prediction. The authors fine-tune the networks for segmentation and introduce a novel skip architecture that combines coarse and local information to refine predictions. The experiments are conducted on the PASCAL VOC 2011 segmentation challenge, and the performance is evaluated using per-pixel multinomial logistic loss and mean pixel intersection over union.</p>

<h3 id="41-from-classifier-to-dense-fcn">4.1 From Classifier to Dense FCN:</h3>
<p>The paper convolutionalizes classification architectures such as AlexNet, VGG, and GoogLeNet, converting fully connected layers into convolutions. They append a 1 × 1 convolution to predict scores for PASCAL classes and use deconvolution layers for upsampling. Results show reasonable performance after fine-tuning for segmentation.</p>

<h3 id="42-combining-what-and-where">4.2 Combining What and Where:</h3>
<p>A new FCN for segmentation, FCN-16s, is introduced, combining predictions from different layers to enhance spatial precision. The authors experiment with a skip architecture, fusing predictions from various layers to refine the output. This fusion improves segmentation detail, and FCN-8s further incorporates predictions from lower layers.</p>

<h3 id="43-experimental-framework">4.3 Experimental Framework:</h3>
<p>The optimization involves SGD with momentum, fine-tuning of all layers, and patch sampling for efficient training. The paper compares the effectiveness of whole image training versus patch sampling and finds that whole image training is as effective but converges faster. Class balancing, dense prediction through deconvolution layers, and augmentation experiments are also discussed. The models are implemented using Caffe on an NVIDIA Tesla K40c.</p>

<h2 id="results-summary">Results Summary</h2>

<p>The paper evaluates the Fully Convolutional Network (FCN) on semantic segmentation and scene parsing tasks using PASCAL VOC, NYUDv2, and SIFT Flow datasets. The authors employ various metrics including pixel accuracy, mean accuracy, mean intersection over union (IU), and frequency-weighted IU.</p>

<p><strong>PASCAL VOC:</strong>
FCN-8s outperforms the previous state-of-the-art SDS and R-CNN on the PASCAL VOC 2011 and 2012 test sets, achieving a 20% relative improvement in mean IU. The inference time is significantly reduced compared to previous methods.</p>

<p><strong>NYUDv2:</strong>
Results on the NYUDv2 dataset, which includes RGB-D information, demonstrate the effectiveness of the FCN. The late fusion of RGB and HHA (depth encoding) outperforms other variations in terms of pixel accuracy, mean accuracy, mean IU, and frequency-weighted IU.</p>

<p><strong>SIFT Flow:</strong>
For the SIFT Flow dataset, FCN-16s achieves state-of-the-art performance on both semantic and geometric segmentation tasks. The joint model for semantic and geometric predictions performs as well as independently trained models for each task, showcasing the versatility of the FCN architecture.</p>

<h2 id="conclusion-summary">Conclusion Summary</h2>

<p>The conclusion emphasizes the significance of fully convolutional networks (FCNs) as a versatile class of models, highlighting their broader applicability beyond modern classification convolutional networks. By extending these classification networks to segmentation tasks and enhancing the architecture with multi-resolution layer combinations, the authors have achieved substantial advancements in state-of-the-art results. This improvement is not only evident in performance metrics but also in the simplification and acceleration of both learning and inference processes. The conclusion underscores the transformative impact of FCNs on various computer vision tasks, showcasing their effectiveness in addressing segmentation challenges.</p>

<h2 id="additional-knowledge">Additional Knowledge</h2>

<p><strong>Patchwise Method</strong></p>

<p>Patchwise training in computer vision involves training a model on smaller patches or sub-regions of an image rather than the entire image. Instead of feeding the entire image into the model during training, the image is divided into patches, and the model is trained on these smaller patches.</p>

<p>This approach has several advantages. It allows the model to focus on local features and details within an image, which can be particularly useful for tasks where local information is crucial, such as object recognition or segmentation. Patchwise training also enables the model to be more robust to variations within an image, as it learns to recognize patterns at a more granular level.</p>

<p>Additionally, patchwise training can help address challenges related to limited computational resources. Training on smaller patches reduces the input size, making it more feasible to train models on large datasets or high-resolution images.</p>

<p>Pre- and post-processing complications in the context of computer vision refer to additional steps or techniques applied before or after the main processing stages of a computer vision algorithm. Let’s break down the mentioned components:</p>

<ol>
  <li><strong>Pre-processing:</strong>
    <ul>
      <li><strong>Superpixels:</strong> Superpixels are compact and perceptually meaningful atomic regions obtained by grouping similar pixels together. They can be used as a pre-processing step to reduce the complexity of an image, making subsequent processing more efficient. Superpixels can enhance boundary information and improve segmentation results.</li>
      <li><strong>Proposals:</strong> Object proposals are candidate bounding boxes that potentially contain objects of interest. They are generated as a pre-processing step to reduce the search space for object detection tasks. Instead of exhaustively examining all possible locations, the algorithm focuses on a smaller set of proposals, improving efficiency.</li>
    </ul>
  </li>
  <li><strong>Post-processing:</strong>
    <ul>
      <li><strong>Random Fields:</strong> Random fields, particularly Markov Random Fields (MRFs), are used for post-hoc refinement in segmentation and classification tasks. They model spatial dependencies between pixels or regions and can improve the coherence of the final result. Random fields are often employed to enforce smoothness constraints in the output.</li>
      <li><strong>Local Classifiers:</strong> Post-hoc refinement using local classifiers involves using additional classifiers to fine-tune or correct the predictions made by the main model. This is often done at a more granular level, addressing specific regions or instances where the primary model may have made errors.</li>
    </ul>
  </li>
</ol>

<p>These complications are introduced to enhance the performance, robustness, and efficiency of computer vision algorithms. Superpixels and proposals help in handling complex images more effectively, while post-processing techniques like random fields and local classifiers aim to improve the precision and coherence of the final output. The goal is to address challenges such as noise, inaccuracies, or lack of global context in the initial processing stages.</p>

<p>The statement highlights a fundamental challenge in semantic segmentation, which is the task of assigning semantic labels to each pixel in an image. The tension referred to is between understanding the semantics (meaning or category) of objects in the image and precisely locating where these objects are.</p>

<ol>
  <li><strong>Semantics vs. Location:</strong>
    <ul>
      <li><strong>Semantics:</strong> This refers to the understanding of what objects or entities are present in the image. For example, recognizing that there are people, cars, or buildings.</li>
      <li><strong>Location:</strong> This involves determining where these objects are located in the image, the spatial information.</li>
    </ul>
  </li>
  <li><strong>Global Information Resolves What:</strong>
    <ul>
      <li>Global information looks at the entire context of the image. Understanding the overall scene and the types of objects present falls under global information. This helps in resolving “what” is in the image at a broader level.</li>
    </ul>
  </li>
  <li><strong>Local Information Resolves Where:</strong>
    <ul>
      <li>Local information, on the other hand, focuses on specific regions or details within the image. It helps in pinpointing “where” exactly in the image certain objects or features are located.</li>
    </ul>
  </li>
  <li><strong>Deep Feature Hierarchies:</strong>
    <ul>
      <li>Deep feature hierarchies are a part of deep learning architectures. These hierarchies consist of layers that progressively learn more abstract and complex features. In this context, these hierarchies are jointly encoding both the location and semantics.</li>
    </ul>
  </li>
  <li><strong>Local-to-Global Pyramid:</strong>
    <ul>
      <li>The local-to-global pyramid suggests that the model or algorithm incorporates information at different scales, ranging from local details to global context. This pyramid structure ensures that the model considers information at various levels of granularity.</li>
    </ul>
  </li>
</ol>

<p>In summary, the challenge in semantic segmentation is to strike a balance between understanding what is in the image (semantics) and precisely locating where these elements are situated. Deep feature hierarchies, organized in a local-to-global pyramid, are proposed to address this tension by jointly encoding both semantic and spatial information.</p>]]></content><author><name>Sepideh Shamsizadeh</name></author><summary type="html"><![CDATA[Paper notes on FCN (Long, Shelhamer, Darrell): end-to-end pixel-wise prediction by replacing fully connected layers with convolutions.]]></summary></entry><entry><title type="html">Decoding PointNet: A Practical Guide to 3D Segmentation with Python and PyTorch</title><link href="https://sepideh.io/pointnet-segmentation-python-pytorch/" rel="alternate" type="text/html" title="Decoding PointNet: A Practical Guide to 3D Segmentation with Python and PyTorch" /><published>2023-10-16T00:00:00+02:00</published><updated>2023-10-16T00:00:00+02:00</updated><id>https://sepideh.io/pointnet-segmentation-python-pytorch</id><content type="html" xml:base="https://sepideh.io/pointnet-segmentation-python-pytorch/"><![CDATA[]]></content><author><name>Sepideh Shamsizadeh</name></author><summary type="html"><![CDATA[From the PointNet architecture to working code: segmenting unordered 3D point clouds with Python and PyTorch.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://sepideh.io/images/blog/pointnet-segmentation.jpg" /><media:content medium="image" url="https://sepideh.io/images/blog/pointnet-segmentation.jpg" xmlns:media="http://search.yahoo.com/mrss/" /></entry></feed>