nicetoolbox.detectors.method_detectors.py_feat.py_feat.PyFeat¶
- class nicetoolbox.detectors.method_detectors.py_feat.py_feat.PyFeat(io: SequenceIO, data: SequenceData, sequence_context: SequenceRuntimeConfig, algorithm_instance: str)[source]¶
Bases:
BaseMethodThe Python - Facial Expression Analysis Toolbox (Py-feat) is a method detector that computes emotion_individual component.
Initialize base method detector with references.
Methods
Compute extra output folders for all components.
Compute result folders for all components.
Compute visualization folders for all components.
Post processing after inference.
Execute method detector: run subprocess inference + post_inference.
Visualizes the processed frames of the pyfeat algorithm as a video.
Attributes
algorithm_typecomponentsinference_package_nameAccess predictions mapping from runtime config.
runtimeos_typeconda_pathvenvenv_namescript_pathvisualizerequires_out_folderout_foldersresult_foldersviz_foldersconfig_pathsdataiosequence_contextdetector_configalgorithm_instanceinference_config- compute_output_folders(requires_out_folder: bool) Dict[str, str]¶
Compute extra output folders for all components.
- compute_result_folders() Dict[str, str]¶
Compute result folders for all components.
- compute_viz_folders(visualize: bool) Dict[str, str]¶
Compute visualization folders for all components.
- property predictions_mapping¶
Access predictions mapping from runtime config.
- run() None¶
Execute method detector: run subprocess inference + post_inference.
Returns None - visualization uses external data.