使用lua文件加载模型时,model:forward()显示分段错误,第一次使用lua加载模型

我是一个新手,正在尝试实现这个模型https://github.com/MLSpeech/DeepFormants 在局部myPrediction = model:forward(X)之后遇到了分段错误(请查看上面的图片) 任何帮助都将不胜感激

输入图片描述

这是formants.py

import extract_features as features import argparse from helpers.textgrid import * from helpers.utilities import * import shutil

def predict_from_times(wav_filename, preds_filename, begin, end): tmp_features_filename = tempfile._get_default_tempdir() + "/" + next(tempfile._get_candidate_names()) + ".txt" print (tmp_features_filename)

if begin > 0.0 or end > 0.0:
    features.create_features(wav_filename, tmp_features_filename, begin, end)
    easy_call("th load_estimation_model.lua " + tmp_features_filename + ' ' + preds_filename)
else:
    features.create_features(wav_filename, tmp_features_filename)
    easy_call("th load_tracking_model.lua " + tmp_features_filename + ' ' + preds_filename)

这是给定命令的执行图像 python formants.py data/Example.wav data/ExamplePredictions.csv --begin 1.2 --end 1.3 [core dumped
output 1 and 2 are due to purpose of debugging](https://i.stack.imgur.com/jdkHI.png)

点赞