<?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: Bilal Khan</title>
    <description>The latest articles on DEV Community by Bilal Khan (@bkkaggle).</description>
    <link>https://dev.to/bkkaggle</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%2F393157%2Fb98ca2b2-5a4d-4ac3-ac02-243df8e29846.png</url>
      <title>DEV Community: Bilal Khan</title>
      <link>https://dev.to/bkkaggle</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bkkaggle"/>
    <language>en</language>
    <item>
      <title>PyTorch Zoo</title>
      <dc:creator>Bilal Khan</dc:creator>
      <pubDate>Fri, 22 May 2020 20:19:14 +0000</pubDate>
      <link>https://dev.to/bkkaggle/pytorch-zoo-4nj4</link>
      <guid>https://dev.to/bkkaggle/pytorch-zoo-4nj4</guid>
      <description>&lt;h2&gt;
  
  
  My Final Project
&lt;/h2&gt;

&lt;p&gt;My project was PyTorch Zoo, a PyTorch library that I made that contains a collection of useful libraries and tools to help reduce the amount of time people spend searching for high-quality implementations of commonly used machine learning modules and utilities. &lt;/p&gt;

&lt;h2&gt;
  
  
  Link to Code
&lt;/h2&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vWogaON8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/github-logo-28d89282e0daa1e2496205e2f218a44c755b0dd6536bbadf5ed5a44a7ca54716.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/bkkaggle"&gt;
        bkkaggle
      &lt;/a&gt; / &lt;a href="https://github.com/bkkaggle/pytorch_zoo"&gt;
        pytorch_zoo
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      A collection of useful modules and utilities (especially helpful for kaggling) not available in Pytorch
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
    Pytorch Zoo
&lt;/h1&gt;
&lt;h4&gt;
    A collection of useful modules and utilities (especially helpful for kaggle) not available in &lt;a href="https://pytorch.org" rel="nofollow"&gt;Pytorch&lt;/a&gt;
&lt;/h4&gt;
&lt;p&gt;
    &lt;a href="https://forthebadge.com" rel="nofollow"&gt;
        &lt;img src="https://camo.githubusercontent.com/2fb0723ef80f8d87a51218680e209c66f213edf8/68747470733a2f2f666f7274686562616467652e636f6d2f696d616765732f6261646765732f6d6164652d776974682d707974686f6e2e737667" alt="forthebadge"&gt;
    &lt;/a&gt;
    &lt;a href="https://lgtm.com/projects/g/bkkaggle/pytorch_zoo/context:python" rel="nofollow"&gt;
        &lt;img alt="Language grade: Python" src="https://camo.githubusercontent.com/f2b8b6b9bae0099518af271e09606465b4af58c7/68747470733a2f2f696d672e736869656c64732e696f2f6c67746d2f67726164652f707974686f6e2f672f626b6b6167676c652f7079746f7263685f7a6f6f2e7376673f6c6f676f3d6c67746d266c6f676f57696474683d3138"&gt;
    &lt;/a&gt;
    &lt;a href="https://lgtm.com/projects/g/bkkaggle/pytorch_zoo/alerts/" rel="nofollow"&gt;
        &lt;img alt="Total alerts" src="https://camo.githubusercontent.com/64b7abbbb69f47b1829cabe68828138601596b6f/68747470733a2f2f696d672e736869656c64732e696f2f6c67746d2f616c657274732f672f626b6b6167676c652f7079746f7263685f7a6f6f2e7376673f6c6f676f3d6c67746d266c6f676f57696474683d3138"&gt;
    &lt;/a&gt;
    &lt;a href="https://github.com/prettier/prettier"&gt;
        &lt;img src="https://camo.githubusercontent.com/687a8ae8d15f9409617d2cc5a30292a884f6813a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64655f7374796c652d70726574746965722d6666363962342e7376673f7374796c653d666c61742d737175617265" alt="code style: prettier"&gt;
    &lt;/a&gt;
    &lt;a href="https://opensource.org/licenses/MIT" rel="nofollow"&gt;
        &lt;img src="https://camo.githubusercontent.com/3ccf4c50a1576b0dd30b286717451fa56b783512/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667" alt="License: MIT"&gt;
    &lt;/a&gt;
    &lt;a href="http://makeapullrequest.com" rel="nofollow"&gt;
        &lt;img src="https://camo.githubusercontent.com/a34cfbf37ba6848362bf2bee0f3915c2e38b1cc1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265" alt="PRs Welcome"&gt;
    &lt;/a&gt;
    &lt;a href="https://github.com/bkkaggle/pytorch_zoo/issues"&gt;
        &lt;img alt="GitHub issues" src="https://camo.githubusercontent.com/ed25d93579d8fa6825e38b8f41479485fa5af941/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f626b6b6167676c652f7079746f7263685f7a6f6f2e7376673f7374796c653d666c6174"&gt;
    &lt;/a&gt;
    &lt;a href="https://github.com/bkkaggle/pytorch_zoo/pulls"&gt;
        &lt;img alt="GitHub pull requests" src="https://camo.githubusercontent.com/390314d48b76a2bca1de773fcdd1c9c6e46c532c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722f626b6b6167676c652f7079746f7263685f7a6f6f2e737667"&gt;
    &lt;/a&gt;
    &lt;a href="https://github.com/bkkaggle/pytorch_zoo/issues"&gt;
        &lt;img alt="GitHub last commit" src="https://camo.githubusercontent.com/32d65677fd917148d6530485c8b907473a7a3c74/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f626b6b6167676c652f7079746f7263685f7a6f6f2e737667"&gt;
    &lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
    &lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#overview"&gt;Overview&lt;/a&gt; •
    &lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#installation"&gt;Installation&lt;/a&gt; •
    &lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#documentation"&gt;Documentation&lt;/a&gt; •
    &lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#contributing"&gt;Contributing&lt;/a&gt; •
    &lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#authors"&gt;Authors&lt;/a&gt; •
    &lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#license"&gt;License&lt;/a&gt; •
    &lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#acknowledgements"&gt;Acknowledgements&lt;/a&gt;
&lt;/p&gt;

&lt;div&gt;
    &lt;a rel="noopener noreferrer" href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/./screenshot.png"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3FR4GpDn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/./screenshot.png"&gt;&lt;/a&gt;
&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Made by &lt;a href="https://github.com/bkkaggle"&gt;Bilal Khan&lt;/a&gt; • &lt;a href="https://bilal.software" rel="nofollow"&gt;https://bilal.software&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#installation"&gt;Installation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#documentation"&gt;Documentation&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#notifications"&gt;Notifications&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#sending-yourself-notifications-when-your-models-finish-training"&gt;Sending yourself notifications when your models finish training&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#viewing-training-progress-with-tensorboard-in-a-kaggle-kernel"&gt;Viewing training progress with tensorboard in a kaggle kernel&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#data"&gt;Data&lt;/a&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#dynamicsamplersampler-batch_size32"&gt;DynamicSampler(sampler, batch_size=32)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#trim_tensorstensors"&gt;trim_tensors(tensors)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#loss"&gt;Loss&lt;/a&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#lovasz_hingelogits-labels-per_imagetrue"&gt;lovasz_hinge(logits, labels, per_image=True)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#diceloss"&gt;DiceLoss()&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#metrics"&gt;Metrics&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#modules"&gt;Modules&lt;/a&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#squeezeandexcitationin_ch-r16"&gt;SqueezeAndExcitation(in_ch, r=16)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#channelsqueezeandspatialexcitationin_ch"&gt;ChannelSqueezeAndSpatialExcitation(in_ch)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#concurrentspatialandchannelsqueezeandchannelexcitationin_ch"&gt;ConcurrentSpatialAndChannelSqueezeAndChannelExcitation(in_ch)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#gaussiannoise01"&gt;GaussianNoise(0.1)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#schedulers"&gt;Schedulers&lt;/a&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#cyclicalmomentumoptimizer-base_momentum08-max_momentum09-step_size2000-modetriangular"&gt;CyclicalMomentum(optimizer, base_momentum=0.8, max_momentum=0.9, step_size=2000, mode="triangular")&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#utils"&gt;Utils&lt;/a&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#notifyvalue1-notification-title-value2-notification-body-key"&gt;notify({'value1': 'Notification title', 'value2': 'Notification body'}, key)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#seed_environmentseed42"&gt;seed_environment(seed=42)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#gpu_usagedevice-digits4"&gt;gpu_usage(device, digits=4)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#n_paramsmodel"&gt;n_params(model)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#save_modelmodel-fold0"&gt;save_model(model, fold=0)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#load_modelmodel-fold0"&gt;load_model(model, fold=0)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#saveobj-objpkl"&gt;save(obj, 'obj.pkl')&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#loadobjpkl"&gt;load('obj.pkl')&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#masked_softmaxlogits-mask-dim-1"&gt;masked_softmax(logits, mask, dim=-1)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#masked_log_softmaxlogits-mask-dim-1"&gt;masked_log_softmax(logits, mask, dim=-1)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#contributing"&gt;Contributing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#authors"&gt;Authors&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#license"&gt;License&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/bkkaggle/pytorch_zoo/master/#acknowledgements"&gt;Acknowledgements&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
Installation&lt;/h2&gt;
&lt;p&gt;pytorch_zoo can be installed from pip&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;pip install pytorch_zoo
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;
Documentation&lt;/h2&gt;
&lt;h3&gt;
Notifications&lt;/h3&gt;
&lt;h4&gt;
Sending yourself notifications when your models finish training&lt;/h4&gt;
&lt;p&gt;IFTTT allows you to easily do this. Follow &lt;a href="https://medium.com/datadriveninvestor/monitor-progress-of-your-training-remotely-f9404d71b720" rel="nofollow"&gt;https://medium.com/datadriveninvestor/monitor-progress-of-your-training-remotely-f9404d71b720&lt;/a&gt; to setup an IFTTT webhook and get a secret key.&lt;/p&gt;
&lt;p&gt;Once you have a…&lt;/p&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/bkkaggle/pytorch_zoo"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;h2&gt;
  
  
  How I built it (what's the stack? did I run into issues or discover something new along the way?)
&lt;/h2&gt;

&lt;p&gt;I built this project using Python and Pytorch, a commonly used library used for training neural networks. I open-sourced the project on GitHub and you can download it from PyPi by running the command &lt;code&gt;pip install pytorch_zoo&lt;/code&gt;&lt;/p&gt;

</description>
      <category>octograd2020</category>
    </item>
  </channel>
</rss>
