Skip to content

Instantly share code, notes, and snippets.

View dbersan's full-sized avatar
🖖
octocat

D Bersan dbersan

🖖
octocat
View GitHub Profile
@dbersan
dbersan / coco format example
Last active September 23, 2020 13:22
coco format example for object detection and semantic segmentation
{
"info": {
"description": "COCO 2017 Dataset",
"url": "http://cocodataset.org",
"version": "1.0",
"year": 2017,
"contributor": "COCO Consortium",
"date_created": "2017/09/01"
},
@dbersan
dbersan / savedmodel-tensorflow-2.py
Created June 14, 2020 13:43
Tensorflow 2 Keras API SavedModel example
import tensorflow as tf
# Define Keras model
inputs = tf.keras.Input(shape=(3,))
x = tf.keras.layers.Dense(4, activation=tf.nn.relu)(inputs)
outputs = tf.keras.layers.Dense(5, activation=tf.nn.softmax, name='output_name')(x)
model = tf.keras.Model(inputs=inputs, outputs=outputs)
# Train it
CREATE TABLE IF NOT EXISTS `transactions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`transactiontoken` varchar(200) NOT NULL,
`invoiceid` varchar(20) NOT NULL,
`itemname` varchar(100) NOT NULL,
`itemdesc` varchar(100) NOT NULL,
`itemamount` int(10) NOT NULL,
`applicationfee` varchar(11) NOT NULL,
`buyeremail` varchar(300) NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,