Skip to content

Instantly share code, notes, and snippets.

Avatar
🐙
octopus

D Bersan dhiegomaga

🐙
octopus
View GitHub Profile
@dhiegomaga
dhiegomaga / coco format example
Last active Sep 23, 2020
coco format example for object detection and semantic segmentation
View coco format example
{
"info": {
"description": "COCO 2017 Dataset",
"url": "http://cocodataset.org",
"version": "1.0",
"year": 2017,
"contributor": "COCO Consortium",
"date_created": "2017/09/01"
},
@dhiegomaga
dhiegomaga / savedmodel-tensorflow-2.py
Created Jun 14, 2020
Tensorflow 2 Keras API SavedModel example
View savedmodel-tensorflow-2.py
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
View basic stripe table scheme
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,
You can’t perform that action at this time.