import tensorflow as tf
import Image
import os
import subprocess
def main(argv):
folder = argv[0]
if (len(argv) > 1):
if tf.gfile.Exists(argv[1]):
folder = argv[1]
else:
print ('%s not existed' % argv[1])
return
else:
print ("please input training image data folder path")
return
for f in tf.gfile.ListDirectory(folder):
filepath = os.path.join(folder, f)
try:
im = Image.open(filepath)
p = subprocess.Popen(["display", filepath])
label = raw_input("please label the image, 0 means cat, 1 means dog:")
p.kill()
except Exception, e:
print (e)
Subscribe to:
Post Comments (Atom)
fixed: embedded-redis: Unable to run on macOS Sonoma
Issue you might see below error while trying to run embedded-redis for your testing on your macOS after you upgrade to Sonoma. java.la...
-
Refer: https://github.com/bazelbuild/bazel/wiki/Building-with-a-custom-toolchain https://www.tensorflow.org/tutorials/image_recognition
-
Solution react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android...
-
F:\webrowser>react-native run-android Scanning folders for symlinks in F:\webrowser\node_modules (73ms) Starting JS server... Buildin...
No comments:
Post a Comment