Skip to content

Instantly share code, notes, and snippets.

View gbildson's full-sized avatar

Greg Bildson gbildson

View GitHub Profile
@gbildson
gbildson / test_images.py
Created September 15, 2023 11:53
Scan a directory of images to ensure that they are not corrupt for training purposes. Can swap load_image to your local version.
import os
import argparse
import tensorflow as tf
parser = argparse.ArgumentParser()
parser.add_argument("-d", "--directory", dest='directory', required=True, help="the base directory for training data")
args = parser.parse_args()
directory = args.directory

Keybase proof

I hereby claim:

  • I am gbildson on github.
  • I am gbildson (https://keybase.io/gbildson) on keybase.
  • I have a public key whose fingerprint is 1F49 5ACA 7841 D07F 9F27 A2BC A980 904C 7D89 8600

To claim this, I am signing this object: