cutcutcodec.core.analysis.video.quality.vmaf_torch.svm_predict.SVMPredict¶
- class cutcutcodec.core.analysis.video.quality.vmaf_torch.svm_predict.SVMPredict(model_json_path=None, clip_score=False)[source]¶
Initialize internal Module state, shared by both nn.Module and ScriptModule.
- forward(x)[source]¶
Define the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Moduleinstance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
- get_default_model()[source]¶
Load parameters of default VMAF SVM model corresponding to https://github.com/Netflix/vmaf/blob/master/model/vmaf_v0.6.1.json
- get_model_from_json(model_json_path)[source]¶
Load parameters for VMAF model from json file e.g. one of the files from https://github.com/Netflix/vmaf/tree/master/model (not guaranteed to work with every model since they have slightly different formats)