Skip to content

Instantly share code, notes, and snippets.

View leanderme's full-sized avatar

Leander Melms leanderme

  • UKE
  • Hamburg, Germany
  • 07:03 (UTC +02:00)
View GitHub Profile
@Qfl3x
Qfl3x / week3.md
Last active May 30, 2023 07:31
MLOps-Zoomcamp: Workflow Orchestration - Prefect

NOTE: commands and UI are deprecated

Content:

  • Negative Engineering
  • What is workflow orchestration?
  • Introduction to Prefect 2.0
  • First Prefect flow and Basics

Workflow Orchestration

@aquadzn
aquadzn / video_inference.ipynb
Last active November 25, 2023 20:47
DINO Video inference
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sandys
sandys / Fastapi-sqlalchemy-pydantic-dataclasses-reloadable-logging.md
Last active April 12, 2024 01:38
fastapi with python 3.10 dataclasses - used to create both sqlalchemy and pydantic models simultaneously. And setting up sqlalchemy the right way (without deadlocks or other problems). Additionally, this also takes care of unified logging when running under gunicorn..as well as being able to run in restartable mode.
@nuzrub
nuzrub / tensorflow2_customloops.py
Created April 30, 2020 20:54
Writing TensorFlow 2 Custom Loops: A step-by-step guide from Keras to TensorFlow 2
# Author: Ygor Rebouças
#
### The Training Loop
#
# 0) Imports
import tensorflow as tf
import numpy as np
@mats-claassen
mats-claassen / convert_mnist.py
Last active July 29, 2023 21:51
Source code used in the blog at [blog.xmartlabs.com]
import numpy as np
import tensorflow as tf
from PIL import Image
from tensorflow import keras
import coremltools
import tfcoreml as tf_converter
import tensorflow.keras.backend as K
import datetime
import os
from tensorflow.python.framework import graph_io
@dkohlsdorf
dkohlsdorf / convnet.ipynb
Created August 26, 2019 14:28
ConvNet.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leonid-s-usov
leonid-s-usov / RecordAudio.swift
Last active March 20, 2024 09:12 — forked from hotpaw2/RecordAudio.swift
Swift Audio Recording class. Reads buffers of input samples from the microphone using the iOS RemoteIO Audio Unit API
//
// RecordAudio.swift
//
// This is a Swift class (updated for Swift 5)
// that uses the iOS RemoteIO Audio Unit
// to record audio input samples,
// (should be instantiated as a singleton object.)
//
// Created by Ronald Nicholson on 10/21/16.
// Copyright © 2017,2019 HotPaw Productions. All rights reserved.
@dkohlsdorf
dkohlsdorf / triplet.py
Last active July 1, 2021 22:50
Triplet Loss Experiments For Audio Data with Tensorflow 2.0
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
import tensorflow.keras.layers as layers
import tensorflow.keras.losses as loss
import tensorflow_datasets.public_api as tfds
from sys import argv
from random import Random
from os import walk
@chaohuang
chaohuang / WRWD.py
Last active August 11, 2019 13:01
Keras warm restart callback for optimizers with decoupled weight decay (SGDWR, AdamWR)
from collections import defaultdict
from keras.callbacks import Callback
class WRWDScheduler(Callback):
"""Warm restart scheduler for optimizers with decoupled weight decay
This Keras callback should be used with TensorFlow optimizers
with decoupled weight decay, such as tf.contrib.opt.AdamWOptimizer
or tf.contrib.opt.MomentumWOptimizer. Warm restarts include
cosine annealing with periodic restarts for both learning rate
@caisq
caisq / custom-layers-in-tensorflow-js-stateful-configurable-and-serializable.markdown
Last active May 8, 2023 00:46
Custom Layers in TensorFlow.js (Stateful, Configurable, and Serializable)