Dimitri Korsch преди 1 година
родител
ревизия
ddcabd395c
променени са 1 файла, в които са добавени 39 реда и са изтрити 0 реда
  1. 39 0
      README.md

+ 39 - 0
README.md

@@ -134,3 +134,42 @@ def main(args):
 
 main(parser.parse_args())
 ```
+This example can be run with
+```bash
+python example.py data.yml CUB200 GLOBAL -mt cvmodelz.ResNet50 -g0 --input_size infer_big --batch_size 24
+```
+using this data config (`data.yml`):
+
+```yaml
+BASE_DIR: /home/korsch_data/
+
+DATA_DIR: datasets
+MODEL_DIR: models
+
+MODELS:
+  cvmodelz.InceptionV3:     &inception
+    folder: inception
+    weights:
+      inat: model.inat.ckpt.npz
+      imagenet: model.imagenet.ckpt.npz
+
+  cvmodelz.ResNet50:     &resnet50
+    folder: resnet
+    weights:
+      imagenet: model.npz
+
+DATASETS:
+  CUB200:         &cub200
+    folder: birds/cub200
+    annotations: "ORIGINAL"
+    annotation_type: FILE_LIST
+    n_classes: 200
+
+PART_TYPES:
+  GLOBAL:         &parts_global
+    feature_suffix: ""
+
+PARTS: {}
+```
+
+