Ver Fonte

Add warning about usecase of labelme_json_to_dataset

Kentaro Wada há 7 anos atrás
pai
commit
85e3928dd2
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      scripts/labelme_json_to_dataset

+ 5 - 0
scripts/labelme_json_to_dataset

@@ -13,6 +13,11 @@ import yaml
 from labelme import utils
 
 
+warnings.warn("This script is aimed to demonstrate how to convert the\n"
+              "JSON file to a single image dataset, and not to handle\n"
+              "multiple JSON files to generate a real-use dataset.")
+
+
 def main():
     parser = argparse.ArgumentParser()
     parser.add_argument('json_file')