Skip to content

Instantly share code, notes, and snippets.

@hgaiser
hgaiser / oid-classes-segmentable.csv
Last active Nov 4, 2019
List of classes from the OpenImages dataset that are segmentable.
View oid-classes-segmentable.csv
/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 Aug 15, 2019
MNIST CNN code using tf.keras
View mnist_cnn.py
'''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
View flow.cpp
#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();
View train.py
#!/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
View ResNet-18.prototxt
name: "ResNet-18"
layer {
name: 'input-data'
type: 'Python'
top: 'data'
top: 'im_info'
top: 'gt_boxes'
python_param {
module: 'roi_data_layer.layer'
@hgaiser
hgaiser / batch_size.ipynb
Last active Feb 14, 2018
keras retinanet batch size test
View batch_size.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View transform.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View ResNet50RetinaNet - Malaria.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View TwoClass.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View ResNet50RetinaNet - Toy.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.