Skip to content

Instantly share code, notes, and snippets.

@hgaiser
hgaiser / oid-classes-segmentable.csv
Last active September 2, 2023 07:48
List of classes from the OpenImages dataset that are segmentable.
/m/01bms0 Screwdriver
/m/03jbxj Light switch
/m/0jy4k Doughnut
/m/09gtd Toilet paper
/m/01j5ks Wrench
/m/01k6s3 Toaster
/m/05ctyq Tennis ball
/m/015x5n Radish
/m/0jwn_ Pomegranate
/m/02zt3 Kite
@hgaiser
hgaiser / mnist_cnn.py
Created August 15, 2019 10:01
MNIST CNN code using tf.keras
'''Trains a simple convnet on the MNIST dataset.
Gets to 99.25% test accuracy after 12 epochs
(there is still a lot of margin for parameter tuning).
16 seconds per epoch on a GRID K520 GPU.
'''
from __future__ import print_function
import tensorflow as tf
from tensorflow.keras.datasets import mnist
#include "fizyr_flow.hpp"
void Variable::operator=(std::any v) {
// Copy the new value.
value = v;
// Check if we can run ops that haven't been executed yet.
for (auto const & op: operators)
if (op->inputsReady() && !op->executed()) {
op->_execute();
#!/usr/bin/env python
"""
Copyright 2017-2018 Fizyr (https://fizyr.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@hgaiser
hgaiser / batch_size.ipynb
Last active February 14, 2018 16:11
keras retinanet batch size test
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.
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.
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.