Răsfoiți Sursa

Add warning about usecase of labelme_json_to_dataset

Kentaro Wada 7 ani în urmă
părinte
comite
85e3928dd2
1 a modificat fișierele cu 5 adăugiri și 0 ștergeri
  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')