Skip to content

Instantly share code, notes, and snippets.

Ted Xiao txizzle

Block or report user

Report or block txizzle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@txizzle
txizzle / debug_tf_vs_cv2.ipynb
Created Aug 4, 2017
kratzert_finetune_tf_vs_cv2
View debug_tf_vs_cv2.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@txizzle
txizzle / demo.py
Last active Jan 19, 2020
Demonstrating the difference between cv2 and tf.image for reading an image
View demo.py
import cv2
import matplotlib.pyplot as plt
import numpy as np
import tensorflow as tf
# %matplotlib inline # this was originally a Jupyter Notebook
filepath = '<home directory>/imagenet/ilsvrc2012-val/n02397096/ILSVRC2012_val_00046916.JPEG'
##########################
# Approach 1: Using cv2 #
########################
You can’t perform that action at this time.