<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mohamed Mohamed Farag</title>
    <description>The latest articles on DEV Community by Mohamed Mohamed Farag (@mohamedfarag21).</description>
    <link>https://dev.to/mohamedfarag21</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F765156%2F8c0832d6-5173-46e5-9b88-ffba7618b5d8.jpeg</url>
      <title>DEV Community: Mohamed Mohamed Farag</title>
      <link>https://dev.to/mohamedfarag21</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mohamedfarag21"/>
    <language>en</language>
    <item>
      <title>Slicing Pre-Trained models in Keras. Part (I)</title>
      <dc:creator>Mohamed Mohamed Farag</dc:creator>
      <pubDate>Mon, 25 Apr 2022 15:46:27 +0000</pubDate>
      <link>https://dev.to/mohamedfarag21/slicing-pre-trained-models-in-keras-part-i-ee2</link>
      <guid>https://dev.to/mohamedfarag21/slicing-pre-trained-models-in-keras-part-i-ee2</guid>
      <description>&lt;p&gt;Today we will discuss how to slice the pre-trained models provided by the &lt;strong&gt;Keras&lt;/strong&gt; framework for deep learning(DL) implementation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Deep learning foundations&lt;/li&gt;
&lt;li&gt;Intermediate level regarding keras.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To try a new thing or to invent something, there should be a motive to do so. I was motivated during my MSc. study by the idea that we can split vision pre-trained models such as &lt;strong&gt;DenseNet&lt;/strong&gt;, &lt;strong&gt;Inception&lt;/strong&gt;, and &lt;strong&gt;ResNet&lt;/strong&gt; models, to get a certain block inside the model and re-use it again. Furthermore, I searched a lot for such a thing at different reputable websites such as &lt;strong&gt;Stackoverflow&lt;/strong&gt; and &lt;strong&gt;Github&lt;/strong&gt; without getting an answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Motivation
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;What if we can remove a block from the pre-trained model such as &lt;strong&gt;Residual block&lt;/strong&gt;, &lt;strong&gt;Inception block&lt;/strong&gt;, etc, to use it in our own architecture?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What if we are able to merge a lot of foundational blocks together to create a new model for our task?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;During the research for a better model, what if we need just a part of the architecture that offers good performance without high complexity?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;What if we need to add another component between two blocks in the pre-trained network such as the inception blocks to try new ideas?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This will be a series of two articles:&lt;/p&gt;

&lt;p&gt;Article (I): we will discuss why do we need to do it?&lt;br&gt;
Article (II): we will see an example by applying the idea to the &lt;strong&gt;DenseNet&lt;/strong&gt; architecture.&lt;/p&gt;

&lt;p&gt;Thank you!❤&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>deeplearning</category>
    </item>
  </channel>
</rss>
