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)
@qzl/typed-i18n — Our Open-Source Typed i18n Project is Gaining Traction
Hello everyone! 👋 We are excited to share an update about one of our open-source projects , @qzl/typed-i18n , created by the QZ-L.com team...
-
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...
-
Introduction In distributed systems, maintaining context across microservices is crucial for effective logging and tracing. The Mapped Di...
-
If you do not config mail up for your ghost blog, it maybe a big problem once you lost your user password. however, methods are always mor...
No comments:
Post a Comment