Skip to content

Instantly share code, notes, and snippets.

View shakes76's full-sized avatar

Shakes shakes76

View GitHub Profile
@Chris-hughes10
Chris-hughes10 / timm.ipynb
Last active June 22, 2024 02:22
timm.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gabrieleangeletti
gabrieleangeletti / autoencoder.py
Last active October 15, 2019 15:16
Denoising Autoencoder implementation using TensorFlow.
import tensorflow as tf
import numpy as np
import os
import zconfig
import utils
class DenoisingAutoencoder(object):
""" Implementation of Denoising Autoencoders using TensorFlow.
@shakes76
shakes76 / imageio.py
Last active August 29, 2015 14:14
Simple Image IO Module for Python and the Finite Transform Library (FTL)
'''
This module extends scipy modules for saving and loading images losslessly.
It ensures files are written and arrays returned are in 32-bit integer format
PIL Modes: L - 8 bit, I - 32 bit, RGB, RGBA, 1 - 1 bit
@author: Shekhar S. Chandra
'''
import Image #PIL
import numpy as np
import scipy.misc
@bellbind
bellbind / complex.py
Last active March 10, 2023 19:14
[python3] Calc Riemann Zeta function
# complex arith for programming with other languages
# - required functions: exp(f), log(f), sin(f), cos(f), atan2(f), pow(f1, f2)
import math
# [equality for complex]
def ceq(a, b):
return a.real == b.real and a.imag == b.imag
# [add, sub, mul for complex]