Code Monkey home page Code Monkey logo

gif_convolutions's Introduction

GIF_convolutions

Full explanation of the Conv2D : Conv2d: Finally Understand What Happens in the Forward Pass GIF CONV2D

Make your own gifs of Conv2d forward pass

Download or clone the folder

Requirements

Run in your bash

pip install -r requirements.txt

or

pip install numpy opencv-python scikit-image imageio

Customize your GIF

if you want to customize your GIF : all the arguments are written at the top of the main.py script. You can change with the values you want :

  • Height of input channels
  • Width of input channels
  • Number of input channels
  • Number of output channels
  • Kernel size
  • Padding
  • Strides
  • Dilations
  • Groups

If you also want to change the colors. Go to the pixel.py script at the top of the Pixel class. And if you want to change the padding of the image and the margins between Inputs, Kernels and Outputs, you can refer to line 80 of the conv2d.py script where the renderer.get_full_image() method is called.

Test the impact of the arguments with Pytorch

You will of course need Pytorch for this part. Every script is in the folder run_test/. It is highly recommended to have the GPU drivers. If not, the tests will run on the CPU instead of the GPU.

gif_convolutions's People

Contributors

axelthevenot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.