wai.annotations module to make it easier to plugin custom code into a wai.annotations pipeline.
The manual is available here:
https://ufdl.cms.waikato.ac.nz/wai-annotations-manual/
Generic audio classification source.
- Audio classification domain
usage: generic-source-ac [-c USER_CLASS] [-o USER_OPTIONS]
optional arguments:
-c USER_CLASS, --class USER_CLASS
the user class to wrap (dot notation) (default: None)
-o USER_OPTIONS, --options USER_OPTIONS
the options for the user class to parse (default: None)
Generic image classification source.
- Image Classification Domain
usage: generic-source-ic [-c USER_CLASS] [-o USER_OPTIONS]
optional arguments:
-c USER_CLASS, --class USER_CLASS
the user class to wrap (dot notation) (default: None)
-o USER_OPTIONS, --options USER_OPTIONS
the options for the user class to parse (default: None)
Generic image segmentation source.
- Image Segmentation Domain
usage: generic-source-is [-c USER_CLASS] [-o USER_OPTIONS]
optional arguments:
-c USER_CLASS, --class USER_CLASS
the user class to wrap (dot notation) (default: None)
-o USER_OPTIONS, --options USER_OPTIONS
the options for the user class to parse (default: None)
Generic object detection source.
- Image Object-Detection Domain
usage: generic-source-od [-c USER_CLASS] [-o USER_OPTIONS]
optional arguments:
-c USER_CLASS, --class USER_CLASS
the user class to wrap (dot notation) (default: None)
-o USER_OPTIONS, --options USER_OPTIONS
the options for the user class to parse (default: None)
Generic spectrum classification source.
- Spectrum Classification Domain
usage: generic-source-sc [-c USER_CLASS] [-o USER_OPTIONS]
optional arguments:
-c USER_CLASS, --class USER_CLASS
the user class to wrap (dot notation) (default: None)
-o USER_OPTIONS, --options USER_OPTIONS
the options for the user class to parse (default: None)
Generic speech source.
- Speech Domain
usage: generic-source-sp [-c USER_CLASS] [-o USER_OPTIONS]
optional arguments:
-c USER_CLASS, --class USER_CLASS
the user class to wrap (dot notation) (default: None)
-o USER_OPTIONS, --options USER_OPTIONS
the options for the user class to parse (default: None)
Generic audio classification ISP.
- Audio classification domain
usage: generic-isp-ac [-c USER_CLASS] [-o USER_OPTIONS]
optional arguments:
-c USER_CLASS, --class USER_CLASS
the user class to wrap (dot notation) (default: None)
-o USER_OPTIONS, --options USER_OPTIONS
the options for the user class to parse (default: None)
Generic image classification ISP.
- Image Classification Domain
usage: generic-isp-ic [-c USER_CLASS] [-o USER_OPTIONS]
optional arguments:
-c USER_CLASS, --class USER_CLASS
the user class to wrap (dot notation) (default: None)
-o USER_OPTIONS, --options USER_OPTIONS
the options for the user class to parse (default: None)
Generic image segmentation ISP.
- Image Segmentation Domain
usage: generic-isp-is [-c USER_CLASS] [-o USER_OPTIONS]
optional arguments:
-c USER_CLASS, --class USER_CLASS
the user class to wrap (dot notation) (default: None)
-o USER_OPTIONS, --options USER_OPTIONS
the options for the user class to parse (default: None)
Generic object detection ISP.
- Image Object-Detection Domain
usage: generic-isp-od [-c USER_CLASS] [-o USER_OPTIONS]
optional arguments:
-c USER_CLASS, --class USER_CLASS
the user class to wrap (dot notation) (default: None)
-o USER_OPTIONS, --options USER_OPTIONS
the options for the user class to parse (default: None)
Generic spectrum classification ISP.
- Spectrum Classification Domain
usage: generic-isp-sc [-c USER_CLASS] [-o USER_OPTIONS]
optional arguments:
-c USER_CLASS, --class USER_CLASS
the user class to wrap (dot notation) (default: None)
-o USER_OPTIONS, --options USER_OPTIONS
the options for the user class to parse (default: None)
Generic speech ISP.
- Speech Domain
usage: generic-isp-sp [-c USER_CLASS] [-o USER_OPTIONS]
optional arguments:
-c USER_CLASS, --class USER_CLASS
the user class to wrap (dot notation) (default: None)
-o USER_OPTIONS, --options USER_OPTIONS
the options for the user class to parse (default: None)
Generic audio classification sink.
- Audio classification domain
usage: generic-sink-ac [-c USER_CLASS] [-o USER_OPTIONS]
optional arguments:
-c USER_CLASS, --class USER_CLASS
the user class to wrap (dot notation) (default: None)
-o USER_OPTIONS, --options USER_OPTIONS
the options for the user class to parse (default: None)
Generic image classification sink.
- Image Classification Domain
usage: generic-sink-ic [-c USER_CLASS] [-o USER_OPTIONS]
optional arguments:
-c USER_CLASS, --class USER_CLASS
the user class to wrap (dot notation) (default: None)
-o USER_OPTIONS, --options USER_OPTIONS
the options for the user class to parse (default: None)
Generic image segmentation sink.
- Image Segmentation Domain
usage: generic-sink-is [-c USER_CLASS] [-o USER_OPTIONS]
optional arguments:
-c USER_CLASS, --class USER_CLASS
the user class to wrap (dot notation) (default: None)
-o USER_OPTIONS, --options USER_OPTIONS
the options for the user class to parse (default: None)
Generic object detection sink.
- Image Object-Detection Domain
usage: generic-sink-od [-c USER_CLASS] [-o USER_OPTIONS]
optional arguments:
-c USER_CLASS, --class USER_CLASS
the user class to wrap (dot notation) (default: None)
-o USER_OPTIONS, --options USER_OPTIONS
the options for the user class to parse (default: None)
Generic spectrum classification sink.
- Spectrum Classification Domain
usage: generic-sink-sc [-c USER_CLASS] [-o USER_OPTIONS]
optional arguments:
-c USER_CLASS, --class USER_CLASS
the user class to wrap (dot notation) (default: None)
-o USER_OPTIONS, --options USER_OPTIONS
the options for the user class to parse (default: None)
Generic speech sink.
- Speech Domain
usage: generic-sink-sp [-c USER_CLASS] [-o USER_OPTIONS]
optional arguments:
-c USER_CLASS, --class USER_CLASS
the user class to wrap (dot notation) (default: None)
-o USER_OPTIONS, --options USER_OPTIONS
the options for the user class to parse (default: None)
The following examples have the test classes linked for guidance on developing your own plugins.
-
wai-annotations convert \ generic-source-ac \ -c wai.annotations.generic.source.audio_classification.test.TestAC \ -o "--dir /some/where/" \ # dir with .wav files generic-sink-ac \ -c wai.annotations.generic.sink.audio_classification.test.TestAC \ -o "--output label"
-
wai-annotations convert \ from-audio-files-ac \ -i "/some/where/*.wav" \ generic-isp-ac \ -c wai.annotations.generic.isp.audio_classification.test.TestAC \ -o "--output filename" \ to-void-ac
-
wai-annotations convert \ from-audio-files-ac \ -i "/some/where/*.wav" \ generic-sink-ac \ -c wai.annotations.generic.sink.audio_classification.test.TestAC \ -o "--output filename"
-
wai-annotations convert \ generic-source-ic \ -c wai.annotations.generic.source.image_classification.test.TestIC \ -o "--dir /some/where/" \ # dir with .jpg files generic-sink-ic \ -c wai.annotations.generic.sink.image_classification.test.TestIC \ -o "--output label"
-
wai-annotations convert \ from-images-ic \ -i "/some/where/*.jpg" \ generic-isp-ic \ -c wai.annotations.generic.isp.image_classification.test.TestIC \ -o "--output dimensions" \ to-void-ic
-
wai-annotations convert \ from-images-ic \ -i "/some/where/*.jpg" \ generic-sink-ic \ -c wai.annotations.generic.sink.image_classification.test.TestIC \ -o "--output dimensions"
-
wai-annotations convert \ generic-source-is \ -c wai.annotations.generic.source.image_segmentation.test.TestIS \ -o "--labels A B C --dir /some/where/" \ # dir with .jpg files generic-sink-is \ -c wai.annotations.generic.sink.image_segmentation.test.TestIS \ -o "--output dimensions"
-
wai-annotations convert \ from-images-is \ -i "/some/where/*.jpg" \ generic-isp-is \ -c wai.annotations.generic.isp.image_segmentation.test.TestIS \ -o "--output dimensions" \ to-void-is
-
wai-annotations convert \ from-images-is \ -i "/some/where/*.jpg" \ generic-sink-is \ -c wai.annotations.generic.sink.image_segmentation.test.TestIS \ -o "--output dimensions"
-
wai-annotations convert \ generic-source-od \ -c wai.annotations.generic.source.object_detection.test.TestOD \ -o "--dir /some/where/" \ # dir with .jpg files generic-sink-od \ -c wai.annotations.generic.sink.object_detection.test.TestOD \ -o "--output num_objects"
-
wai-annotations convert \ from-images-od \ -i "/some/where/*.jpg" \ generic-isp-od \ -c wai.annotations.generic.isp.object_detection.test.TestOD \ -o "--output dimensions" \ to-void-od
-
wai-annotations convert \ from-images-od \ -i "/some/where/*.jpg" \ generic-sink-od \ -c wai.annotations.generic.sink.object_detection.test.TestOD \ -o "--output dimensions"
-
wai-annotations convert \ generic-source-sc \ -c wai.annotations.generic.source.spectrum_classification.test.TestSC \ -o "--dir /some/where/" \ # dir with .spec files generic-sink-sc \ -c wai.annotations.generic.sink.spectrum_classification.test.TestSC \ -o "--output label"
-
wai-annotations convert \ from-spectra-sc \ -i "/some/where/*.spec" \ generic-isp-sc \ -c wai.annotations.generic.isp.spectrum_classification.test.TestSC \ -o "--output filename" \ to-void-sc
-
wai-annotations convert \ from-spectra-sc \ -i "/some/where/*.spec" \ generic-sink-sc \ -c wai.annotations.generic.sink.spectrum_classification.test.TestSC \ -o "--output filename"
-
wai-annotations convert \ generic-source-sp \ -c wai.annotations.generic.source.speech.test.TestSP \ -o "--dir /some/where/" \ # dir with .wav files generic-sink-ac \ -c wai.annotations.generic.sink.speech.test.TestSP \ -o "--output label"
-
wai-annotations convert \ from-audio-files-sp \ -i "/some/where/*.wav" \ generic-isp-sp \ -c wai.annotations.generic.isp.speech.test.TestSP \ -o "--output filename" \ to-void-sp
-
wai-annotations convert \ from-audio-files-sp \ -i "/some/where/*.wav" \ generic-sink-sp \ -c wai.annotations.generic.sink.speech.test.TestSP \ -o "--output filename"