Преглед на файлове

Add warning about usecase of labelme_json_to_dataset

Kentaro Wada преди 7 години
родител
ревизия
85e3928dd2
променени са 1 файла, в които са добавени 5 реда и са изтрити 0 реда
  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')