Sfoglia il codice sorgente

Add warning about usecase of labelme_json_to_dataset

Kentaro Wada 7 anni fa
parent
commit
85e3928dd2
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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')