Skip to content

Instantly share code, notes, and snippets.

View avik-pal's full-sized avatar
😃
Focusing

Avik Pal avik-pal

😃
Focusing
View GitHub Profile
@avik-pal
avik-pal / benchmarks.md
Last active May 30, 2018 04:25
Benchmarks for Seperable Convolutions in NNlib.jl

Benchmarks for Separable Convolutions in NNlib.jl

NOTE: All the times mentioned are in seconds and only the forward passes are being considered. The reported time is the mean of time for ten iterations.
NOTE: Separable Convolutions => Depthwise Convolution --> Pointwise Convolution. The reverse is also a popular alternative but it might end up taking more time
Input Dimensions Output Dimensions Separable Convolutions Convolutions
32x32x3x1 32x32x32x1 0.000673 0.000910
32x32x64x1 0.001390 0.001698
@avik-pal
avik-pal / cnnvisualize.ipynb
Created August 18, 2018 09:13
Demo showing the use of CNNVisualize.jl
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@avik-pal
avik-pal / triangle_coordinates.jl
Last active May 15, 2019 07:38
Optimizing the triangle coordinates using RayTracer.jl
using RayTracer, Zygote, Flux, Images, Statistics, LinearAlgebra
# Convenience Functions
function create_and_save(color, val)
img = get_image(color, screen_size.w, screen_size.h)
save("images/triangle_$(val).jpg", img)
end
# Define the Original Scene Parameters
# This file is machine-generated - editing it directly is not advised
[[AbstractFFTs]]
deps = ["LinearAlgebra"]
git-tree-sha1 = "380e36c66edfa099cd90116b24c1ce8cafccac40"
uuid = "621f4979-c628-5d54-868e-fcf4e3e8185c"
version = "0.4.1"
[[AbstractTrees]]
deps = ["Markdown", "Test"]

Keybase proof

I hereby claim:

  • I am avik-pal on github.
  • I am avikpal (https://keybase.io/avikpal) on keybase.
  • I have a public key ASAO4jnq8NTkcyXfyHvWCEeTYsU1k9NlfhG7eSFCz5MVbgo

To claim this, I am signing this object: