Skip to content

Instantly share code, notes, and snippets.

View Snixells's full-sized avatar
💭
Working on Mindura

Sebastian Schäfer Snixells

💭
Working on Mindura
View GitHub Profile
@ZachisGit
ZachisGit / ExportModel.py
Last active January 6, 2023 13:51
Make your model Tensorflow Serving compatible and modify it to accept png encoded images as input and return png encoded images as output.
''' ExportModel.py - TF-Serving
# Basically we are wrapping your pretrained model
# in a tensorflow serving compatible format.
# This excepts base64 encoded png images and uses
# them as input to your model. Then we convert
# your models output into a png encoded image and
# it gets returned by tensorflow serving base64 encoded.
'''
import tensorflow as tf
@1papaya
1papaya / gdal_ecw.sh
Last active November 5, 2021 22:21
Install GDAL 2.3 with ECW support on Ubuntu 18.04
#!/bin/bash
##
## Tested on: Ubuntu 18.04 & ECW 5.4 & GDAL 2.3.1
##
## Download the ERDAS ECW JP2 SDK v5.4 Linux
## https://download.hexagongeospatial.com/downloads/ecw/erdas-ecw-jp2-sdk-v5-4-linux
## Download GDAL v2.3 Source (ex. 2.3.1)