Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when trying “Run demo.m” #1

Open
JoshonSmith opened this issue May 15, 2021 · 6 comments
Open

error when trying “Run demo.m” #1

JoshonSmith opened this issue May 15, 2021 · 6 comments

Comments

@JoshonSmith
Copy link

Calculating the model of the 1th frame
Warm-start...
preAlignment...
initializing U...
引用了不存在的字段 'frame'。

出错 warmstart_trans (line 21)
if model.frame == 1

出错 run_video (line 46)
model = warmstart_trans(X_warm,model);

出错 demo (line 40)
[t, sigma, b] = run_video(video_path,param,model);

@JoshonSmith
Copy link
Author

将第五十行 model.frame = i 移动到22行

@JoshonSmith
Copy link
Author

Calculating the model of the 1th frame
Warm-start...
preAlignment...
initializing U...
Warm start is over.
尝试将 SCRIPT mexTrainDL 作为函数执行:
E:\G\Derain\OTMSCSC_matlab_2020-master\spams-matlab\build\mexTrainDL.m

出错 UpFilter_online (line 21)
[D,Fmodel]= mexTrainDL(X,param,Fmodel);

出错 OnlineMSCSC_trans (line 151)
[Filters,model]=UpFilter_online(reshape(R-T,[height,wide]), model, FInd);

出错 run_video (line 65)
[model,param,DerainY, Rain, Rains, omega] = OnlineMSCSC_trans(X, param, model);

出错 demo (line 40)
[t, sigma, b] = run_video(video_path,param,model);

@JoshonSmith JoshonSmith reopened this May 30, 2021
@JoshonSmith
Copy link
Author

我自己下载 spams-matlab-v2.6 编译之后,这个问题就可以解决了。

然后在我自己的数据集上进行测试,640x480
报错:

Calculating the model of the 1th frame
Warm-start...
preAlignment...
initializing U...
错误使用 -
矩阵维度必须一致。

出错 warmstart_trans>InitDictNN (line 42)
Patches = Patches- mean(Patches,2);

出错 warmstart_trans (line 26)
model.D = InitDictNN(reshape(noi(:,2), [height,wide,1]), model); % [f_size,f_size,K]

出错 run_video (line 47)
model = warmstart_trans(X_warm,model);

出错 demo (line 40)
[t, sigma, b] = run_video(video_path,param,model);

@booker-max
Copy link

您好,这个是只能在windows上编译么,ubuntu上可以么

@lumiaxth
Copy link

我自己下载 spams-matlab-v2.6 编译之后,这个问题就可以解决了。

然后在我自己的数据集上进行测试,640x480 报错:

Calculating the model of the 1th frame Warm-start... preAlignment... initializing U... 错误使用 - 矩阵维度必须一致。

出错 warmstart_trans>InitDictNN (line 42) Patches = Patches- mean(Patches,2);

出错 warmstart_trans (line 26) model.D = InitDictNN(reshape(noi(:,2), [height,wide,1]), model); % [f_size,f_size,K]

出错 run_video (line 47) model = warmstart_trans(X_warm,model);

出错 demo (line 40) [t, sigma, b] = run_video(video_path,param,model);

你好,我也遇到这个问题了,请问你是怎么解决的?

@lumiaxth
Copy link

lumiaxth commented Apr 11, 2023

我自己下载 spams-matlab-v2.6 编译之后,这个问题就可以解决了。
然后在我自己的数据集上进行测试,640x480 报错:
Calculating the model of the 1th frame Warm-start... preAlignment... initializing U... 错误使用 - 矩阵维度必须一致。
出错 warmstart_trans>InitDictNN (line 42) Patches = Patches- mean(Patches,2);
出错 warmstart_trans (line 26) model.D = InitDictNN(reshape(noi(:,2), [height,wide,1]), model); % [f_size,f_size,K]
出错 run_video (line 47) model = warmstart_trans(X_warm,model);
出错 demo (line 40) [t, sigma, b] = run_video(video_path,param,model);

你好,我也遇到这个问题了,请问你是怎么解决的?

我之前用的MATLAB版本太低了,我改用了2017版本就可以了。
用了2017版本之后,还是会报错,说是没有权限保存。把绝对路径改成相对路径,保证该路径存在,就可以正常保存了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants